On Thu, Jun 4, 2009 at 4:04 AM, Stefan Esterer <der.ste...@gmail.com> wrote:

> This works perfectly fine. Only if I add a additional <div> I get a
> problem.
>
> <t:if test="user">
>            Welcome back, ${user.firstName}
>            <div>
>                  <p:else>
>                     <t:pagelink name="login">Login</t:pagelink> /
>                     <t:pagelink name="register">Register</t:pagelink>
>                 </p:else>
>            </div>
> </t:if>
>


Why would you do that, just for previewability?  That structure doesn't make
a ton of sense to me.  If there's a user, should tapestry render:

> Welcome back, Stefan Esterer<div></div>
>

And if there's no user:

> <a href="login">Login</a> / <a href="register">Register</a>
>

I'm curious for the people who are getting bitten by this what they have in
mind.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

Reply via email to