I'm writing a web application with Apache Tapestry 5.3. I use in my web application a radio group (2 radio button) which saves in a java.lang.Boolean object. I have some problems when saving the data.
Test.java ______ @Property private Boolean surgery; ..... @CommitAfter public Object onSuccess() { if(surgery!=null){ //do something } } ______ Test.tml ______ <t:radiogroup value="surgery"> <t:radio autocomplete="off" label="message:yes" t:id="yes" value="true"/> <t:label for="yes"/> <t:radio autocomplete="off" label="message:no" t:id="no" value="false"/> <t:label for="no"/> </t:radiogroup> ______ When I use the Boolean in the tml, it is a null value and so no radio button will be selected. if onSuccess() will activated (and no button is selected) and i make a check if the value is null, as it should be - it isn't. Instead its initialized Boolean with false. Can i change this behavior, so that Boolean surgery is null, if nothing clicked? Thanks for reading Patrick -- View this message in context: http://tapestry.1045711.n5.nabble.com/null-value-in-Boolean-tp5713346.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org