On Oct 4, 2006, at 11:48 AM, Wendy Smoak wrote:

On 10/4/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:

I think that <tiles:insert> is the most used, even I wrote some tests
(in the test webapp) using <tiles:insert> and I am used to write only
<tiles:insert>
But we are cleaning Tiles from the unnecessary and I like <tiles:get>
more (going against my own interests :-) ), simply because it is the
opposite of <tiles:put>, I think it's more intuitive.

I'd lean towards keeping <tiles:insert> because it is widely used.
'Put'ting something in the context, then 'insert'ing it into a page
make sense to me.

Unfortunately, I don't have time right now to dig into the code and figure out what's going on internally, but at a glance I think I agree with Wendy. To me <tiles:insert> says "insert this tile or attribute right here on my page" whereas <tiles:get> would say "get a tile or attribute from context and let me do something with it later."

But don't forget about the <tiles:getAsString> tag as well. It's semantics are quite different from <tiles:insert>. How would it be affected if we removed the GetTag?

I'm sorry I haven't had any time to help out with Tiles issues lately. My day job has been in a whirl and I've been "forced" to dive into JSF, MyFaces, and Facelets. I promise I fully intend to come back, hopefully with a better understanding of where tiles fits into the JSF landscape.

Greg


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

Reply via email to