File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes HtmlSelectOneMenu setValueChangeListener probem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "HtmlSelectOneMenu setValueChangeListener probem" Watch "HtmlSelectOneMenu setValueChangeListener probem" New topic
Author

HtmlSelectOneMenu setValueChangeListener probem

Nasim Salehi
Greenhorn

Joined: Oct 23, 2007
Posts: 9
Hi,
I have a PanelGrid in a jsf page which is bound to a method and components are populated dynamically via backing bean,the getGridElems() method generates my jsf components including a drop down list, I set a setValueChangeListener on this dropdown list :


The drop down list is generated like below:




I want when one of the select items is choose add another component(another drop down list) to the page.
The problem is :
When one item of drop down list is selected the handleSelectMenuValueChange is invoked but getGridElems isn't invoked,It
seems that the flow of the code bypasses the getGridElems() method after executing handleSelectMenuValueChange method.

Is there any problem with my code?
Is there any other way instead of using setValueChangeListener ?
Hiren Dutta
Greenhorn

Joined: Dec 30, 2005
Posts: 10
I have a same problem... can anyone please suggest..... its very urgent...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HtmlSelectOneMenu setValueChangeListener probem
 
Similar Threads
dynamic panel grid binding
How to add new text boxes and check boxes dynamically when clicking on button in JSF
Value change listener updating bean
My valueChangeListener is never being called...
Problem after rendering a commandButton