tapestry-user@jakarta.apache.org
[Top] [All Lists]

Re: What's up with the Else component?

Subject: Re: What's up with the Else component?
From: "Daniel Lydiard"
Date: Wed, 8 Mar 2006 12:45:56 -0800
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Else.html

The example is correct, the way it works makes sense to me...

If you don't like using If/Else try Choose/When/Otherwise:
http://jakarta.apache.org/tapestry/tapestry-contrib/ComponentReference/Choose.html

It works well too.

----- Original Message ----- From: "Rob Dennett" <rob_dennett@xxxxxxxxx>
To: "Tapestry users" <tapestry-user@xxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 08, 2006 12:39 PM
Subject: RE: What's up with the Else component?


That needs to be fixed in the docs. How does the Else component know what If it goes with?

Thanks,
Rob

-----Original Message-----
From: Daniel Lydiard [mailto:dlydiard@xxxxxxxxxxx]
Sent: Wednesday, March 08, 2006 2:10 PM
To: Tapestry users
Subject: Re: What's up with the Else component?

Don't embed the Else inside the If

     <span jwcid="@If" condition="ognl:false">
       <span jwcid="@Insert" value="literal:inside if" />
     </span>
     <span jwcid="@Else">
       <span jwcid="@Insert" value="literal:inside else" />
     </span>



----- Original Message ----- From: "Rob Dennett" <rob_dennett@xxxxxxxxx>
To: "Tapestry users" <tapestry-user@xxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 08, 2006 12:03 PM
Subject: What's up with the Else component?


Nothing is rendered by the following code.  I think “x” should be.  What’s
going on?



     <span jwcid="@If" condition="ognl:false">

           <span jwcid="@Else"><span jwcid="@Insert" value="x" /></span>

     </span>





Thanks for your help,

Rob


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>