On 11/05/2013 04:36 PM, Eric B wrote:
On 13-11-05 2:39 AM, Mck wrote:
You'll find useAttribute under the tilesx taglib.
reference:
- http://tiles.apache.org/framework/tiles-jsp/tlddoc/index.html
- http://tiles.apache.org/framework/tiles-jsp/tagreference.html
Any reason why useAttribute was put by itself in a tilesx taglib instead
of the standard tiles taglib with all the others?
(1) mainLayout-page.jsp (template): SET global look & feel
<tilesx:useAttribute id="title"
name="crumb-title" classname="java.lang.String" />
......
(2) Tile1.xml
<definition name="****" template="/WEB-INF/layouts/mainLayout-page.jsp">
<put-attribute name="title" value="******" />
<put-attribute name="body" value="/WEB-INF/pages/*****.jsp" />
<put-attribute name="crumb-link" value="/Action***.action" />
<put-attribute name="crumb-title" value="Crumb Title Example" />
<put-attribute name="tabbed" value="true" />
<put-attribute name="selected" value="general_maps" />
</definition>
Dynamic crumb-title, links, etc are set through tile.xml and extends
mainlayout-page.jsp template.
Would you suggest other ways?
Thanks