BTW, I think what we though tiles:attribute would be, is actually
tiles:put and tiles:putList. You'd think that I'd remember that.
I'd propose we:
1) rename tiles:attribute to tiles:insertAttribute
2) rename tiles:put to tiles:putAttribute
I don't really like the sounds of tiles:putAttributeList, and since it
has nested putAttribute elements in it, I'm ok with leaving it alone.
Either way is ok with me.
David
David H. DeWolf wrote:
that's what I would have thought too :), I think we definately need a
rename. I was looking for the insertAttribute tag in the tld when I found:
<name>attribute</name>
<tag-class>org.apache.tiles.taglib.AttributeTag</tag-class>
<body-content>JSP</body-content>
<description>
<![CDATA[
<p><strong>Defines an attribute.</strong></p>
<p>An attribute can be seen as a parameter in a method signature.
You can
define attributes in "template" pages. You can then insert
template pages
by:</p>
And sure enough, when you look at the code, it looks like it's rending
the attribute - appropriately based on the attribute type.
David
Greg Reddin wrote:
On 1/11/07, David H. DeWolf <[EMAIL PROTECTED]> wrote:
have you tried:
<tiles:attribute name="head">
Wow, I thought (from looking at the FAQ) that this defined a *new*
attribute, not inserted one already defined.
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]