Howard Lewis Ship <hlship <at> gmail.com> writes:

> <t:comp type='If" test="loggedIn">
>   Welcome to the show, ${userName}!
>   <t:parameter name="else">
>     Click <a t:type="ActionLink" t:id="login">here</a> to log in.
>   </t:parameter>
> </t:comp>

This may sound silly, but it may look better by also accepting a 
"then" parameter:

 <t:comp type='If" test="loggedIn">
   <t:parameter name="then">
     Welcome to the show, ${userName}!
   </t:parameter>
   <t:parameter name="else">
     Click <a t:type="ActionLink" t:id="login">here</a> to log in.
   </t:parameter>
 </t:comp>

This way the two branches will get balanced.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to