This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Issue With selectOneMenu ValueChangeListener Not Firing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Issue With selectOneMenu ValueChangeListener Not Firing" Watch "Issue With selectOneMenu ValueChangeListener Not Firing" New topic
Author

Issue With selectOneMenu ValueChangeListener Not Firing

Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144
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



Never take anything for granted because you never know when you will lose it
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue With selectOneMenu ValueChangeListener Not Firing