On Thu, 11 Jul 2013 05:12:53 -0300, newbie newbie <[email protected]>
wrote:
Hi,
I am using plain HTML checkbox(not Tapestry type). I need to set the
checkbox to checked in my java page. How do I do that?
Here is my tml code fragment
<input type="checkbox" name="leaf" id="leaf" value="leaf"/>
<input type="checkbox" name="leaf" id="leaf" value="leaf"
checked="${checked}"/>
public String getChecked() {
if (shouldBeChecked()) {
return "checked";
}
else {
return "";
}
}
Any help would be appreciated. Thanks.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]