On Fri, 12 Jul 2013 14:41:04 -0300, Barry Books <trs...@gmail.com> wrote:
I don't like it either. Perhaps it should be
<t:if test="checked'>
<p:then>
</p:then>
<p:else>
</p:else>
</t:if>
IMHO this looks way better then just <p:else>, but I still prefer the two
If instances version. Matter of taste, probably.
On Fri, Jul 12, 2013 at 7:51 AM, 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-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
For additional commands, e-mail: users-h...@tapestry.apache.org
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org