UserInputPanel Check Box validator

10 views
Skip to first unread message

Marcos Luis

unread,
Sep 25, 2019, 9:00:07 AM9/25/19
to izpack-dev
Hi!

I am trying to use the UserInputPanel to create a license term panel with web links for the license terms.

I have a checkbox and i am trying to use the NotEmptyValidator to see if the user agrees with the terms , but the validator is not cathing the non-value.
the behavior I wanted is that if he does not select the checkbox he will not move forward and from what I am seeing from the NotEmptyValidator source code this should work.

This is the code:

<field type="check"  align="left" variable="checkSelection.1" id="postgresql.terms" >
<spec txt="I have read and agree to the terms of service" id="check.label.1" true="on" false="" set="">
<validator classname="com.izforge.izpack.panels.userinput.validator.NotEmptyValidator"/>
</spec>
</field>



Reply all
Reply to author
Forward
0 new messages