On Thu, 11 Jul 2013 05:12:53 -0300, newbie newbie <codehel...@gmail.com>
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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org