<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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to