e.g.
class TestAction
{
@Getter @Setter
Boolean enabled;// null for both
}
HTML
<input type='radio' name="enabled" value='true'> enabled
<input type='radio' name="enabled" value='false'> disabled
<input type='radio' name="enabled" value='null'> both
<!-- value=null will convert to false -->
How can I pass null for Boolean
?
UPDATE
Answer is impossible. I use another way below.