You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Travis Reeder <tr...@ecommstats.com> on 2004/03/05 07:40:15 UTC
Conditional with invalid html
How can I accomplish this without having the parser throw an exception
like:
Closing tag </td> on line 80 is improperly nested with tag <span> on
line 78.
This is in a border component:
<span jwcid="@Conditional" condition="ognl:page.loggedIn">
<!-- Start Main Layout Table -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="200" class="menuBg">
<!-- menu stuff here -->
</td><td valign="top">
</span>
<span jwcid="@RenderBody">Page content goes here.</span>
<span jwcid="@Conditional" condition="ognl:page.loggedIn">
</td>
</tr>
</table>
<!-- End main layout table -->
</span>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Conditional with invalid html
Posted by Richard Kirby <rb...@capdm.com>.
On 5 Mar 2004, at 06:40, Travis Reeder wrote:
> How can I accomplish this without having the parser throw an exception
> like:
> Closing tag </td> on line 80 is improperly nested with tag <span> on
> line 78.
>
> This is in a border component:
>
> <span jwcid="@Conditional" condition="ognl:page.loggedIn">
> <!-- Start Main Layout Table -->
> <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
> <td width="200" class="menuBg">
> <!-- menu stuff here -->
> </td><td valign="top">
> </span>
> <span jwcid="@RenderBody">Page content goes here.</span>
> <span jwcid="@Conditional" condition="ognl:page.loggedIn">
> </td>
> </tr>
> </table>
> <!-- End main layout table -->
> </span>
>
Something like this:
<span jwcid="@Conditional" condition="ognl:page.loggedIn">
<table ...>
<span jwcid="@RenderBody">Page content</span>
</table ...>
</span>
<span jwcid="@Conditional" condition="! ognl:page.loggedIn">
<span jwcid="@RenderBody">Page content</span>
</span>
Richard.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org