This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ajax reRender when inputText value change occurs  RSS feed

 
Javier Novoa Cata´┐Żo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to implement an Ajax reRender of some components in a JSF web page for a special situation that I haven't found a solution for...

When I press the Enter key on an InputText, I wish to reRender certain components, but ALSO, I want to enter a ValueChangeListener method in my backing bean, since the old and new values of what the InputText contains is important for me.

Previously, when I just wanted to manage Ajax reRender in an InputText, if I don't mind about new and old values of the component's text, I could use the actionListener for an Ajax commandButton associated with the InputText, which I 'clicked' via the onkeypress event in this component, but now my problem is to keep the ValueChangeListener method, OR to get around the problem, change to an ActionListener, and still manage to keep the old and new values of what my InputText holds...

Any ideas?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!