Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

ajax reRender when inputText value change occurs

 
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?
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!