As far as I remember outputof is called by templateengine internally to
evaluate the value of an attribute (<XDtff:blabla
pp="<XDtbabab:doodoo/>"). All attribute valued are evaluated before the
call is made to your tag handler method. You should only use outputof if
you want to work on the result of the body of a block tag (and I already
discouraged you about that).

PS: It won't be far away when we support Velocity too ;-)

Ara.

> -----Original Message-----
> From: Bart Guijt [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 31, 2002 8:30 PM
> To: Ara Abrahamian; [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-devel] Creating a
<XDtType:typeWithoutDimensions>
> tag
> 
> OK.
> 
> How about the use of the 'xdoclet.template.TemplateEngine.outputOf()'
> method; is the expression already resolved in the attributes passed in
the
> tag method?
> 
> BG
> 
> ----- Original Message -----
> From: "Ara Abrahamian" <[EMAIL PROTECTED]>
> To: "'Bart Guijt'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Sunday, March 31, 2002 5:37 PM
> Subject: RE: [Xdoclet-devel] Creating a
<XDtType:typeWithoutDimensions>
> tag
> 
> 
> > > I searched the existing tags and found the following:
> > >
> > > 1) <XDtClass:classOf>...</XDtClass:classOf> which returns the
> > > not-full-qualified name of the content;
> > >
> > > 2) <XDtPackage:packageOf>...</XDtPackage:packageOf> which does the
> > same
> > > for
> > > packages;
> >
> > These are ancient tags! We lived with them for a lifetime!
> >
> > > 3) <XDtClass:pushClass value=""/> which seems to work with
> > > <XDtClass:pushClass>...</XDtClass:pushClass> as well.
> >
> > I could either create another popClass tag or create a block tag
which
> > pops current class up from the stack in </XDtClass:pushClass>.
> >
> > > All these tags make use of the
> > > 'xdoclet.template.TemplateEngine.outputOf()'
> > > method, whilst the JavaDoc of this method only mentions the conten
tag
> > as
> > > the way to do these things...
> >
> > It's in fact a bad thing. It barfs if for some reasons 'out' is
null.
> > Don't use it.
> >
> > > Right now I implemeted it as a block tag, works well, but needs to
be
> > > accepted either way. DOes it actaully matter?
> >
> > Use a content tag, no out.println.
> >
> > Ara.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to