Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Ajax-like event listener

 
James Greenberg
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic