I saw a post on the mailing list archives regarding nested tiles. I see that they have been added over the years, and wanted to know how to implement them in the JSP page.
For example, if I have a subMenu in the Tiles, then how do I then get the contents of the subMenu in the JSP page using either the struts or jstl tag libraries? I can see the List in my jsp page if I simply say <c:out value="${item}"/>, but the question is how to expose each elemnt of the list (the subMenu) to use the links and values from the subMenu? Thanks for your help, Elie Ciment -- Here's the archive I was referring to: http://mail-archives.apache.org/mod_mbox/struts-user/200205.mbox/[EMAIL PROTECTED] From Cedric Dumoulin <[EMAIL PROTECTED]> Subject Re: Nested menu item Date Thu, 30 May 2002 09:12:00 GMT Hello, It is not possible in the actual version. The limitation comes from the parser which doesn't implement the correct rules. It will be possible in the next release. I have quickly implemented and tested the behavior, but have no time to test and release all the Tiles distribution today. So, I let you an access to the modified version : http://www.lifl.fr/~dumoulin/tiles/temp/ <http://www.lifl.fr/%7Edumoulin/tiles/temp/> . I will not be at my office until the 12 of June, so the official release will not happen before this date. Now it needs a Tiles to render the nested lists as a nested menus. If you develop a generic one and would like to donate it ... Hope this help, Cedric The nested sub menu definition will looks like : <!-- Test nested list --> <definition name="test.nested.list" path="/layouts/vboxLayout.jsp" > <putList name="list" > <item value="item1" link="/examples/tabs.jsp"/> <item value="item2" link="/examples/tabs.jsp"/> <item value="item3" link="/examples/tabs.jsp"/> <putList name="list" > <item value="nested.item1" link="/examples/tabs.jsp"/> <putList name="list" > <item value="nested.nested.item1 " link="/examples/tabs.jsp"/> <item value="nested.nested.item2" link="/examples/tabs.jsp"/> </putList> <item value="nested.item2" link="/examples/tabs.jsp"/> </putList> </putList> </definition> "Trieu, Danny" wrote:
Cedric, is there anyway to define nested menu items( meaning submenu) inside the
definition.xml file? thanks danny -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED] For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto: [EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>