On Mon, 3 Feb 2003, Tim Moore wrote:

> Date: Mon, 3 Feb 2003 14:51:21 -0500
> From: Tim Moore <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: more about custam tag life cycle
>
> > Tag reuse is only allowed when the set of attributes that are
> > used, and their values, are identical.  For example, the
> > following two tags will
> > *always* use different instances:
> >
> >   <foo:bar baz="a"/>
> >   <foo:bar baz="b"/>
> >
> > because the attribute value is different.
>
> My understanding was that the same instance *could* be reused, as long
> as setBaz("b") is called between the first doEndTag and the second
> doStartTag.  Am I mistaken?
>

No, you're not mistaken -- I was confusing the two scenarios.

It's legal for the container to reuse in the case above, because it's the
same set of attribute *names*, not necessarily the same set of attribute
*names+values*".  Obviously, it will have to generate a call to
setBaz("b") in between.

Craig

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

Reply via email to