[izpack-users] How to ensure that a radio button was selected
Benoitx
benoitx at yahoo.com
Sun Aug 12 17:06:33 CEST 2007
Hi *,
First of all, izPack is such a great tool! thanks!
I'm trying to ensure that the user has selected a radio button before
allowing going to the next panel:
I tried with the NotEmptyValidator like this:
<field type="radio" variable="MY_CFG">
<description align="left"
txt="Please pick one."
id="description.env"/>
<spec txt="">
<choice txt="local" value="local"/>
<choice txt="speedy" value="speedy"/>
<choice txt="uat" value="uat"/>
<choice txt="prod" value="prod"/>
<choice txt="dr" value="dr"/>
</spec>
<validator class="com.izforge.izpack.util.NotEmptyValidator"
txt="Select a value!"/>
</field>
However, this does not seem to work... how could I ensure that MY_CFG has a
value from a radio button?
Many thanks!
Benoit
--
View this message in context: http://www.nabble.com/How-to-ensure-that-a-radio-button-was-selected-tf4256776.html#a12114253
Sent from the izpack users mailing list archive at Nabble.com.
More information about the izpack-users
mailing list