aspose file tools*
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
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamic Ajax-like event listener" Watch "Dynamic Ajax-like event listener" New topic
Author

Dynamic Ajax-like event listener

James Greenberg
Greenhorn

Joined: Jul 09, 2008
Posts: 19
Hi,
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
Greenhorn

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
Greenhorn

Joined: Aug 19, 2008
Posts: 9
Hello

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: http://aspose.com/file-tools
 
subject: Dynamic Ajax-like event listener