Hi Here's MasterLayout.jsp ( abridged ) <html:html> <head> <title><tiles:getAsString name="title" /></title> <tiles:insert attribute="MenuDefinitions" /> </head> <body> <tiles:insert attribute="body" /> <tiles:insert attribute="MenuInitializer" /> </body> </html:html>
Here's FormLayout.jsp ( again very abridged ) <html:form action="/EventSearch" method="GET" onsubmit="eventSearchPreSubmit();return validateEventSearchForm(this);" > <table > <tr><td><tiles:insert attribute="SecurityFilter" /></td></tr> <tr><td><tiles:insert attribute="SourceFilter" /></td></tr> <tr><td><tiles:insert attribute="FromAndToDateFilter" /></td></tr> </table> </html:form> In tiles-defs.xml: <definition name="tile.base" path="/layout/MasterLayout.jsp"> <put name="MenuDefinitions" value="/pageComponents/MenuDefinitions.jsp" /> <put name="MenuInitializer" value="/pageComponents/MenuInitializer.jsp" /> </definition> <definition name="tile.page1" extends="tile.base"> <put name="MenuDefinitions" value="/pageComponents/MenuDefinitions.jsp" /> <put name="MenuInitializer" value="/pageComponents/MenuInitializer.jsp" /> <put name="body" value="/pageComponents/Page1Body.jsp" /> </definition> What I would like is to be able to define some form tiles like this: <definition name="tile.form1" ??? > <put name="MenuDefinitions" value="/pageComponents/MenuDefinitions.jsp" /> <put name="MenuInitializer" value="/pageComponents/MenuInitializer.jsp" /> <put name="SecurityFilter" value="/pageComponents/SecurityFilter.jsp" /> <put name="SourceFilter" value="/pageComponents/SourceFilter.jsp" /> </definition> Here I would be injecting components into gaps that are defined in two layouts. The MasterLayout defines where the menu bits go for example. The FormLayout defines where the SecurityFilter, SourceFilter etc go. Really I guess I want to 'nest' the layouts somehow. Is that possible. I really hope you get what I am trying to do? Otherwise I shall just have to live with what I'm doing now which is to reproduce the MasterLayout in the FormLayout which seems wrong to me. Thanks in advance. -----Original Message----- From: Greg Reddin [mailto:[EMAIL PROTECTED] Sent: 22 November 2005 23:21 To: Struts Users Mailing List Subject: Re: Tiles Again - Can anyone help? On Nov 22, 2005, at 5:04 PM, Leahy, Kevin wrote: > I am defining tiles in tiles-def.xml that user MasterLayout - all > working fine using the <put> tags to inject the components. > But I also want tiles where in the tiles definition file I can use the > <put> tags to add components into both the MasterLayout and the > FormLayout. I don't quite get what you mean by this. Can you post relevant portions of your tiles-defs file? Thanks, Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 -------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]