On 1/26/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
2007/1/26, Joe Germuska <[EMAIL PROTECTED]>: > On 1/26/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > > > > Is that true? I'm not convinced and think this may be even more > > confusing. > > > > Not exactly: > > <tiles:insertDefinition name=""/> > > <tiles:insertTemplate name=""/> > > Eventually: <tiles:insert name="" /> (definition OR template) > > <tiles:attribute name=""/> > > > > Using "tiles:attribute" I think that people will perceive the > > necessity to fill it when they insert a template or define a > > definitions, we (me and Greg) noticed that someone used the old > > <tiles:insert attribute="..." /> incorrectly, so I decided to > > differentiate completely its name. > > But maybe it's just me :-) > > > I thought I was with you, but now I'm not so sure. > > If you're saying "let's rename <tiles:insertAttribute> to <tiles:insert>", I > can go with that. That's what I was looking for in the first place. I > strongly feel that a JSP should not need to know whether the attribute value > it is using is a JSP or a Tiles Definition; there should be complete > transparency between the two. I never wrote that! <tiles:insert> will insert a definition or a template, not an attribute!
I'm not sure what you're saying you never wrote, because it sounds like we're agreeing.
But then what is your vision for <tiles:attribute name="" /> What will that > tag do? Define and insert an attribute, that it is what exactly does. > I think having verbs in the tag names (like "put" and "insert") is > really helpful for clarification. AttributeTag was the only one whose name > didn't begin with a verb, and I think one way or another, we shouldn't > revert to having one oddball unless there's a really compelling reason for > it. <tiles:defineAndInsertAttribute> seems too long to me... It's not important, let's stick with insertAttribute :-)
Still confused. Maybe it's because I haven't spent as long in the Tiles code as some of you guys. How is <tiles:insertAttribute> defining an attribute. While I was writing this, David asked the same question! Let's make sure we're all using the same definition of "definition." (I'm starting to feel like Bill Clinton! "It depends on what your definition of 'is' is") Joe -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso
