On Thu, 11 Jul 2013 23:21:28 -0300, Taha Hafeez Siddiqi <[email protected]> wrote:

You can try

<t:if test='checked'>
<input type='checkbox' name='leaf' id='leaf' value='leaf' checked='checked'/>

   <p:else>
       <input type='checkbox' name='leaf' id='leaf' value='leaf'/>
   </p:else>
</t:if>

Better yet (I hate using p:else. I think it's quite confusing to have the else part inside the if part),

<t:if test='checked'>
<input type='checkbox' name='leaf' id='leaf' value='leaf' checked='checked'/>
</t:if>
<t:if test='!checked'>
     <input type='checkbox' name='leaf' id='leaf' value='leaf'/>
</t:if>

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to