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
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