File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Drop Down Not Working" Watch "Drop Down Not Working" New topic

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 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 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

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

Any Pointers from Experts are welcome.

Puneet Vyas
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

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

An IDE is no substitute for an Intelligent Developer.
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:
subject: Drop Down Not Working
It's not a secret anymore!