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" <[EMAIL PROTECTED]>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
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:[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]