• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to reset pickList in JSF

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a form which has textbox,picklist and a reset button.
<h:commandButton value="Reset" type="reset" class="create"></h:commandButton>
Now on click of reset button, the textboxes gets resetted. But if I have selected any item in pickList from source to target,the picklist does not get resetted.
Can anyone help me in resetting the pickList.
 
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Better to have the button call an action event in your backing bean, and refresh the arrayList that feeds your menu. You also may need to override part of the JSF life cycle to make sure the event fires at the right time to actually update at the right point.
 
reply
    Bookmark Topic Watch Topic
  • New Topic