struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Gordon <adam.gor...@readytalk.com>
Subject Re: SimpleMenuItem and tiles/putList
Date Mon, 04 Dec 2006 23:37:34 GMT
Oh sweet!  Thanks.  That saves us a TON of potential work.

--adam

Strachan, Paul wrote:
> <putList name="menu">
>   <!-- Item 1-->
>   <bean classtype="com.example.MyMenuItem">
>     <set-property property="value" value="Maintenance" />
>     <set-property property="myproperty" value="myvalue" />
>   </bean>  
>   <!-- Item 2-->
>   <bean classtype="com.example.MyMenuItem">
>     <set-property property="value" value="Maintenance" />
>     <set-property property="myproperty" value="myvalue" />
>   </bean>
> </putList>
>
> HTH
>
> -----Original Message-----
> From: Adam Gordon [mailto:adam.gordon@readytalk.com] 
> Sent: Tuesday, 5 December 2006 10:20 AM
> To: user@struts.apache.org
> Subject: SimpleMenuItem and tiles/putList
>
> We have a home grown menu system we're using to display our web app's 
> menu system and it includes, amongst other things, a method that tells 
> whether or not the menu is visible.  SimpleMenuItem does not have this, 
> however, our menu item does and we've extended this class.
>
> We have some submenu items under a menu item that are constructed in a 
> tiles file w/ a <putList> element and the classtype is set to 
> SimpleMenuItem.  Ideally, I would love to put our class name there and 
> use custom attributes on the <item> element to construct our menu item 
> but I can't seem to find a way to achieve this.
>
> Failing that, I'm thinking we'll need to tweak the way we do the submenu
>
> items...
>
> Any ideas?
>
> -adam
>
>
> **********************************************************************
> This message is intended for the addressee named and may contain
> privileged information or confidential information or both. If you
> are not the intended recipient please delete it and notify the sender.
> **********************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>   

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


Mime
View raw message