• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

ice:selectOneMenu not refreshing

 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to give you heads up on this. You can solve this problem with binding attribute of second dropdown.

Thanks,
Rahul
 
I found a beautiful pie. And a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic