Greg Reddin ha scritto:
So are you suggesting we use 2 different tags to insert a definition as opposed to an attribute? That seems like a good idea.

I added a JIRA issue for that:
http://issues.apache.org/struts/browse/SB-55

Notice that I suggested to split <tiles:insert> into <tiles:insertDefinition>, <tiles:insertTemplate>, <tiles:insertString> and <tiles:attribute> but: * <tiles:insertString> does not make sense IMO, the "string" type has a meaning only for an attribute whose type is a string: in fact <tiles:getAsString> would be like <tiles:attribute> forcing the view as a string. There are better tags to put strings :-) * <tiles:insertDefinition> and <tiles:insertTemplate> could be a single <tiles:insert> tag since its management is very similar, or maybe they could share the same base tag (to avoid code duplication) or, alternatively, create a utility class to process templates and definitions not depending on JSP tag libraries (this way it could be ported also to FreeMarker, I suppose); * <tiles:attribute> has a different name pattern because I would like to push the idea of "defining" attributes and not "inserting" them.
What do you think?

Ciao
Antonio

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

Reply via email to