aspose file tools*
The moose likes JSF and the fly likes Drop Down Not Working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Drop Down Not Working" Watch "Drop Down Not Working" New topic
Author

Drop Down Not Working

Puneet N Vyas
Ranch Hand

Joined: Sep 20, 2007
Posts: 61
Hello JSF Experts ,

I have to make dependent drop down using <h:selectOneMenu> tag,i did this.
i want whenever user picks parent drop down(country in my case),the child drop down should change(States in my case).
).
this use case is working fine using jsf 1.1 api and valuechange listener for jsf components.in addition to that what i want
is whenever user changes parent drop down the first element of child drop down should come as output text.
i tried implementing this use case with the following code.how ever it is not working as per functionality.
Please any one from JSF experts group can give me some pointers,i will be really thankful to experts.

Java Classes RegisterForm (Purpose to get registration form data)


Java enum Country(enum Country to represent country names )



Resource Bundle messages_en_US.properties


and finally UI code(index.jsp) which is having simple form elements



Any Pointers from Experts are welcome.

Thanks,
Puneet Vyas
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

http://www.coderanch.com/t/586042/JSF/java/populate-one-dropdown-options-change

Note that I did not need to bind to the JSF component tree to do this.


Customer surveys are for companies who didn't pay proper attention to begin with.
Puneet N Vyas
Ranch Hand

Joined: Sep 20, 2007
Posts: 61
Thanks a lot for your time,i have resolved it using immediate attribute .

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drop Down Not Working