|
Thanks Julian. I actually use this as a workaround. Each of my Actions/ActionListeners
has to call this simple but additional logic in order to replace the flag with
an empty value. I just wonder whether empty
values cannot be used inside selectOneRadios but selectOneMenu accepts them. From:
Julian Ray [mailto:[EMAIL PROTECTED] The itemValue is the value which will be
returned when the form is posted. Why not use a flag which indicates a an
impossible (null) value which will be processed and interpreted by your backing
bean. I typically use Integer returns and set Integer.MIN_VALUE as a null value
flag. From:
How can I set the value of a checkbox inside selectOneRadio
to null or empty? <h:panelGroup> <t:selectOneRadio
id="multiDraft"
value="#{DynaAnnoControllerBean.multiAttributes['multiDraft']}"
style="width:auto;" layout="spread">
<f:selectItem itemLabel="yes" itemValue="bla1"/>
<f:selectItem itemLabel="no" itemValue="bla2"/>
<f:selectItem itemLabel="untouched" itemValue=""/>
</t:selectOneRadio>
<t:radio for="" index="0"/>
<t:radio for="" index="1"/>
<t:radio for="" index="2"/> </h:panelGroup>
I got the message "Value is not a valid
option" when the 3rd option "untouched" is selected. How can I
set this value to null / empty? <f:selectItem itemLabel=""
itemValue=""/> inside a selectOneMenu is working well. Michael |

