• 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

Issue With selectOneMenu ValueChangeListener Not Firing

 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an issue with two selecOneMenu in my jsf page.

I have the following code where when I change value in first selectOneMenu, valuechangelistener fires and loads values in second selectOneMenu.

When I change a value in second selectOneMenu, its valuechangeListener is supposed to fire and populate values in other inputText. However when I change a value in second selectOneMenu, it's valuechangelistener is not firing. What could be the reason for this behavior?

My JSF version is 1.1 and page scope is request.

Any help is highly appreciable

Code


 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSF Rule #1: Whenever things don't work right, promote the backing bean to session scope (or at least View scope, where applicable).

And just in case you were wondering, Rule #2 says "the more JSF-specific code in an class, the higher the probability it was improperly designed". But you're safe on that one for the moment.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic