Forums Register Login

How to reset pickList in JSF

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
I will open the floodgates of his own worst nightmare! All in a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1681 times.
Similar Threads
reset button
rset button
reset button
selectManyPicklist
Timers
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:32:11.