This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes ice:selectOneMenu not refreshing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "ice:selectOneMenu not refreshing" Watch "ice:selectOneMenu not refreshing" New topic
Author

ice:selectOneMenu not refreshing

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Folks,

Here Is a small problem which I am facing.
I have two dropdowns, one for ID and other for NAMES. Both of them are populated from the database. I want to give a choice to the user of either selecting a name or id from either of them and other dropdown value should automatically be selected

Ex : Dropdown one has a list of Id�s say : 1,2,3,4
Dropdown two has a list of names say: John, Andrews, Sam, Amit

Suppose a user selects 1 in the first dropdown he should have John automatically selected in the second dropdown. Similarly he select Sam from the second dropdown he should have �3� automatically selected in the first dropdown.

I have this values changed by valueChangeListener="#{Bean.IdChanged}" in the bean but the new values are not reflected on the page.

Any clues or pointers are highly appreciated.

Thanks,
Rahul
[ June 20, 2008: Message edited by: Rahul Juneja ]

Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Just to give you heads up on this. You can solve this problem with binding attribute of second dropdown.

Thanks,
Rahul
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: ice:selectOneMenu not refreshing
 
Similar Threads
JSF dropdown components problem
getting this Ajax code to work with jsp
drop down box using struts
how to show same row for each click on a link
Generating chained dynamic dropdowns using JSP/Servlet and AJAX