• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ajax reRender when inputText value change occurs

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic