• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

selectOneMenu and ajax support  RSS feed

 
Karl Krasnowsky
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a selectOneMenu and have it doing some rerendering of page sections when the selection is changed.
For this I'm keying of the onchange event (makes sense) and for the most part it works.
so, like this:

However it seems to only fire an onchange event when you use the mouse to make the change.
Curiously, scrolling up and down the list with the up and down arrows doesn't fire this event, although the actual selection in the input control changes.

I'd like this to work in the same manner. If the input selection changes regardless how, so should the corresponding fields that are targeted for rerendering.

Can someone provide some assistance?

thanks!
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use 'onkeyup' event

Max
http://mkblog.exadel.com
 
Karl Krasnowsky
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Max,
Well, in fact that's it. Not sure why my prior testing didn't see the onkeyup event working.
But it is working like a champ. So not only the arrow keys, but any alpha changes as the result of pressing normal keys.

thanks.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!