I was expecting this ;)

Sent from my iPhone

On 12-Jul-2013, at 6:21 PM, "Thiago H de Paula Figueiredo" <thiag...@gmail.com> 
wrote:

> On Thu, 11 Jul 2013 23:21:28 -0300, Taha Hafeez Siddiqi 
> <tawushaf...@gmail.com> 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: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to