2015-10-21 10:41 GMT+02:00 Chris <christal...@yahoo.fr>:
> Struts 2.5 BETA2 / form-xml-validation  sample /  boolean validator /
>
> Hello,
> https://github.com/apache/struts-examples/blob/master/form-xml-validation/src/main/webapp/edit.jsp
> The edit.jsp file  contains this line <s:checkbox key="personBean.over21" />
> but the file EditAction-validation.xml doesn't contain a validation for this 
> boolean.
>
> How I could use in the EditAction-validation.xml
> the good one validation for a boolean ?Could be also very usefull with an 
> agree/disagree checkbox

PRs are always welcome :) Anyway the 'required' validator should be enough

http://struts.apache.org/docs/required-validator.html

and also I would prefer to use Radio buttons instead of the checkbox
to force user to make a choice


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to