It appears I was not clear enough in my original question. If you look at
the example definition I provided below, I would like to replace
"schs82DefaultDef" with one of the layouts that supposedly come with Tiles,
namely "Center". The book I am learning from indicates that several
standard layouts come packaged with Tiles, such as "Classic", "Menu",
"Tabs", "Columns", etc. However, I can't find any documentation on how to
use refer to / use these included layouts in my TilesDefinitions.xml file.
Any ideas? (Please see email below for specific questions.)
Thanks!
"McCormack, Chris"
<[EMAIL PROTECTED] To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
oods.co.uk> cc:
Subject: RE: How to use layouts
included with Tiles?
11/01/2004 10:58 AM
Please respond to
"Struts Users Mailing
List"
John -
To use the schs82DefaultDef tile layout you would need to insert that
definition in to a jsp (or forward to the tile def from an action).
<tiles:insert definition="schs82DefaultDef" />
This would insert the "/layout.jsp" as defined in the path= part of your
tiles-def.xml.
To insert the "name" attributes, within the "/layout.jsp" you would have
the relevant inserts for the put elements i.e. :
<tiles:insert attribute="masthead" />
<tiles:insert attribute="leftColumn" />
<tiles:insert attribute="rightColumn" />
<tiles:insert attribute="footer" />
etc
Hope that helps
Chris McCormack
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
>
>
> I can't find documentation on how to use the layouts included with Tiles.
> For example, here is one of my Tiles Defs:
>
> <definition name="schs82DefaultDef" path="/layout.jsp">
> <put name="masthead" value="/masthead.jsp"/>
> <put name="leftColumn" value="/columnNoNavButtons.jsp"/>
> <put name="rightColumn" value="/columnNoNavButtons.jsp"/>
> <put name="footer" value="/footer.jsp"/>
> </definition>
>
> In order to use one of the layouts included with Tiles, I tried
<definition
> name="Center"...> but this doesn't work.
> 1) How do I reference this Tiles layout?
> 2) If I can then reference it, anyone know where documentation is
available
> that would indicate what values this layout expects in the "Name"
> attributes of put elements, in order to properly insert content into the
> layout?
>
> Thanks very much for any help?
***********************************************
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please
notify the sender immediately and delete this
e-mail from your system.
You must take no action based on this, nor must
you copy or disclose it or any part of its contents
to any person or organisation.
Statements and opinions contained in this email may
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.
************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]