Problem validating radio buttons
Status: Beta
Brought to you by:
jmiguelsamper
This code
<input type="radio" name="paid" id="paid" value="true" />
<label for="paid">Paid</label>
<input type="radio" name="paid" id="unpaid" value="false" />
<label for="unpaid">Unpaid</label>
<yav:rule value="paid|required" />
does not validate on the browser side and throws a NullPointerException on the server side when none radio button is checked.
Using a default value
<input type="radio" name="paid" id="unpaid" value="false" checked="checked" />
workarounds the problem.