On 11/05/2013 05:04 PM, Mick Semb Wever wrote:
Any reason why useAttribute was put by itself in a tilesx taglib
instead of the standard tiles taglib with all the others?
It's to do with how tiles-autotag generates these taglibs.
More specifically, it's the only Tag class remaining in Tiles that isn't
automatically generated by tiles-autotag.
Tiles 3.0.1 online doc shows examples using useAttribute as well:
http://tiles.apache.org/framework/tutorial/advanced/list-attributes.html
One of the purpose of useAttribute is to read values(1) in tile.xml into
templete.jsp(2). Then based on the dynamic values assigned in (1), (2)
will show different results.
Also report a null page exception for "Struts 2":
http://tiles.apache.org/framework/tutorial/integration/frameworks.html
"Struts 2: at the time of this writing, the Struts 2 Tiles plugin still
uses Tiles version 2."
Thanks
Emi