File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Dynamic Ajax-like event listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamic Ajax-like event listener" Watch "Dynamic Ajax-like event listener" New topic

Dynamic Ajax-like event listener

James Greenberg

Joined: Jul 09, 2008
Posts: 19
perhaps this question has been asked several times, I googled but couldn't find the answer.
Say I have an <input type="text"> element and I want to register a listener that would receive events every time the user enters or deletes characters and a way to dynamically set text into some other widget all of this without the user having to hit the submit button. Sounds like Ajax, but can I avoid using Ajax directly through some abstraction layer of JSF and JavaBeans?
If that's possible a link to where I can read the details would be great.
Zack Marrapese

Joined: Jul 02, 2008
Posts: 27
Not sure why you would not want to use AJAX...check out the richFaces/ajax4jsf libraries...they really are wonderful.

They hide all the javascript and what-not involved in HTTP requests and just give an extremely easy-to-use set of tags.
Vishal V Gandhi

Joined: Aug 19, 2008
Posts: 9

I am trying to user richface a4j AJAX. I want to validate inputText filed on blur without refreshing JSF page?

Any help will be appreciated.
I agree. Here's the link:
subject: Dynamic Ajax-like event listener
It's not a secret anymore!