You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by teknokrat <te...@yahoo.com> on 2003/05/21 19:29:25 UTC
defining items in tiles definition
Is there a way to define individual list items that can be reused in the
tiles-def.xml file?
something like
<definition name="item.logoff" path="" >
<item value="LOGOFF" link="/admin/logoff.do?action=logoff"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
</definition>
so that i can use it as
<definition name="menubar" path="" >
<putList name="menu" >
<item value="item.logoff" />
</putList>
</definition>
currently i get exceptions for the first definition
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: defining items in tiles definition
Posted by Cedric Dumoulin <ce...@apache.org>.
Hi,
There is no way today to use an <item> directly inside the definition.
You can open an enhancement ticket in bugzilla ...
Cedric
teknokrat wrote:
> Is there a way to define individual list items that can be reused in
> the tiles-def.xml file?
>
> something like
> <definition name="item.logoff" path="" >
> <item value="LOGOFF" link="/admin/logoff.do?action=logoff"
> classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> </definition>
>
> so that i can use it as
> <definition name="menubar" path="" >
> <putList name="menu" >
> <item value="item.logoff" />
> </putList>
> </definition>
>
> currently i get exceptions for the first definition
>
> thanks
>
>
>
> ---------------------------------------------------------------------
> 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