You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Franck <fl...@orangecaraibe.com> on 2003/12/18 15:29:21 UTC

Test tiles attribute presence

Hi,

In a tiles template I would like to test if a tiles attribute should be
inserted or not :

Example :

<td width="220" valign="top">
  <tiles:insert attribute="menu2" ignore="true"/>
</td>

I would like to code something like

<tiles:notEmpty attribute="menu2">
<td width="220" valign="top">
  <tiles:insert attribute="menu2" ignore="true"/>
</td>
</tiles:notEmpty>

Something to remplace the non-existing tiles:notEmpty ?

Thanks


--
Franck Lefebure


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Test tiles attribute presence

Posted by Ted Husted <hu...@apache.org>.
I think you would import the Tiles attribute into page scope, and then 
use the usual logic tags.

-Ted.

Franck wrote:
> Hi,
> 
> In a tiles template I would like to test if a tiles attribute should be
> inserted or not :
> 
> Example :
> 
> <td width="220" valign="top">
>   <tiles:insert attribute="menu2" ignore="true"/>
> </td>
> 
> I would like to code something like
> 
> <tiles:notEmpty attribute="menu2">
> <td width="220" valign="top">
>   <tiles:insert attribute="menu2" ignore="true"/>
> </td>
> </tiles:notEmpty>
> 
> Something to remplace the non-existing tiles:notEmpty ?
> 
> Thanks
> 
> 
> --
> Franck Lefebure
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org