tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignacio de Córdoba <icord...@skios.es>
Subject Re: How to include a SimpleMenuItem bean in tiles:addAttribute in struts2
Date Fri, 30 Jan 2009 15:22:00 GMT

Hi Antonio,
you mean that if I replace <jsp:useProperty...> with:

<s:bean name="org.apache.tiles.beans.SimpleMenuItem" var='item'>
			<s:param name="link" value="%{folderName}" />
			<s:param name="value"

There is no way to insert objects in the ValueStack to a tile list with a
tiles:addAttribute tag or anyother way?
I hate mixing both "EL's" in the same page. I am using ONGL for the rest of
the code: as I am using struts2 now, I must use % ONGL syntax to access
Action properties, so it is tedious to make them visible to JSTL EL using
<s:property /> every time I have to add a Tile (in every page, as I use a
Tile for breadcrums!) 

Thanks for your help :-)

Antonio Petrelli-3 wrote:
> 2009/1/30 Nicolas LE BAS <mail@nlebas.net>:
>> But IMHO it won't work: <tiles:addAttribute> can only add strings,
>> definitions or templates.
> Nope, you can also add simple "objects". The only problem is that you
> have to import them, through <tiles:importAttribute>.
> Antonio

View this message in context: http://www.nabble.com/How-to-include-a-SimpleMenuItem-bean-in-tiles%3AaddAttribute-in-struts2-tp21739816p21749231.html
Sent from the tiles users mailing list archive at Nabble.com.

View raw message