aspose file tools
The moose likes JSF and the fly likes ajax reRender when inputText value change occurs Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "ajax reRender when inputText value change occurs" Watch "ajax reRender when inputText value change occurs" New topic
Author

ajax reRender when inputText value change occurs

Javier Novoa Cata�o
Greenhorn

Joined: Jul 02, 2008
Posts: 4
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?


---<br />Eru kaluva tielyanna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ajax reRender when inputText value change occurs
 
Similar Threads
AJAX with JSF issues on selectone menu
valueChangeListener behavior
jsf page that does not update values according to the model
jsf ajax rerender inputText
Issue With selectOneMenu ValueChangeListener Not Firing