tiles putList bean Attribute

M

martin

hello out there,
i want to submit a list as a parameter specified in a tile definition,
but not with simpleMenuItem element like when i would do if i used the
"add" or "item" elements. i read the tiles.dtd and i found a bean
element can be put into the putList element. so i wrote a new
beanClass Navigation Element and wrote the definition like below.
unfortunatelly when i am in navigationHome.jsp after i imported
tile-attributes with <tiles-el:importAttribute /> the
navigationElements object can`t be found. i tried everything but
didn`t succeed.
anybody knows who tho submit beans ind putList in tiles and make them
available in the page ??

<definition name="navigationHome"
path="/WEB-INF/jsp/navigationHome.jsp">
putList name="navigationElements">
<bean classtype="net.remotedjs.NavigationElement">
<set-property property="name" value="home"/>
<set-property property="url" value="/home.jsp" />
<set-property property="role" value="Guest" />
</bean>
<bean classtype="net.remotedjs.NavigationElement">
<set-property property="name" value="broadcasts"/>
<set-property property="url" value="/Broadcasts.do" />
<set-property property="role" value="Guest" />
</bean>
</putList>
</definition>

thanks for any help !!!
best
martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top