Hi again, It's not I have any problem with preparers. I've developed a quite complex preparer to override standard template configurations with user uploaded configurations.
You mean a preparer for my path/breadcrums Tile? The preparer whon't have information about path as everything related to breadcrums/path depends on the Tiles configuration. I so don't figure out what to "prepare" in the preparer. Thanks, Ignacio Antonio Petrelli-3 wrote: > > 2009/1/30 Ignacio de Córdoba <[email protected]>: >> >> Oh, no rude at all. I am using Tiles for all the page composition in my >> projects. > > I feel better now :-D > >> <tiles:insertDefinition name="breadcrumsTile"> >> <tiles:putListAttribute name="breadcrums"> >> <jsp:useBean id="item" >> class="org.apache.tiles.beans.SimpleMenuItem" >> scope="page"/> >> <c:set var='folderName'><s:property >> value="#folderName"/></c:set> >> <jsp:setProperty name="item" property="link" >> value="Actions_folder.action?folderName=${folderName}"/> >> <jsp:setProperty name="item" property="value" >> value="${folderName}"/> >> <tiles:addAttribute value="${item}"/> >> </tiles:putListAttribute> >> </tiles:insertDefinition> >> >> I find this a bit complex and that is why I am looking for a way to get >> rid >> of jsp tags and EL and only use struts2 ONGL + Tiles2, but if Tiles2 only >> accepts EL to get an object (SimpleMenuItem) I guess what I want to do is >> not possible. > > Why don't you use a preparer for your definition? I think you will get > a cleaner code: > http://tiles.apache.org/framework/tutorial/advanced/preparer.html > > Antonio > > -- View this message in context: http://www.nabble.com/How-to-include-a-SimpleMenuItem-bean-in-tiles%3AaddAttribute-in-struts2-tp21739816p21778289.html Sent from the tiles users mailing list archive at Nabble.com.
