selectOneMenu Process Value Change event not firing
I have a selectOneMenu dropdown list which auto submits when the value changes. But when I try to select the option "None" (like the code below):
<f:selectItem itemLabel="None" itemValue="#{loginSecuritySettings.intNoneValue}"/>
My value change event does not get called. Is there a way to force value change to happen when "None" is selected?
# 1
You might want to try the immediate property.
See the following thread.
http://forum.java.sun.com/thread.jspa?forumID=881&threadID=5055879
# 2
Thanks Rradhika but setting immediate to true doesn't help. The value change event still doesn't fire when I select a "selectItem" from the dropdown list.
I've managed a work around because the dropdown menu seems to still submit the forum when the value changes, it just doesn't call the value change function.
I can check the value of the dropdown menu in the init or prerender functions though.
# 3
Is "None" the default value? If so then selecting "None" doesn't constitute a value change, which means the value change event won't get fired.
Can you set the default value to null? If you can, then selecting "None" should fire the value change event.