Is it possible to define a few base tiles definitions (loaded using TilesPlugin) and, during runtime, read in other definitions which extend these base definitions?


Here is an example use:

We have an XML file which defines a web site and used to generate the web site navigation. If we add a new page to the site we need to update this XML file to update the navigation as well. Can I add a tiles definition to this XML file and add that definition into tiles for processing?

<nav path="/events" file="events.jsp">
        <leftnav> Events &amp; Activities </leftnav>
        <breadcrumb> Events &amp; Activities </breadcrumb>
        <definition name="events.page" extends="master.page">
                <put name="body" value="/events/events.jsp" />
                ...
        </definition>
</nav>

NOTE: "master.page" is defined in the default definitions loaded at startup using TilesPlugin.

Doing it this way when I add a new file I only need to update a single XML file as opposed to several.

Thanks for your help!
 - John


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to