velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Ivanov <andrei.iva...@ines.ro>
Subject Re: TilesTool problem
Date Fri, 09 Jan 2004 20:04:40 GMT


On Fri, 9 Jan 2004, Nathan Bubna wrote:

> Andrei Ivanov said:
> > Hello,
> > I seem to have some problems using TilesTool.
> ...
> > In header.vm:
> >
> > ${tiles.getString("headerPictureNo")}
> >
> > ${tiles.get("headerPictureNo")}
> >
> > In the logs I get:
> >
> > picture no: 2 (so n really contains something)
> >
> > ${tiles.getString("headerPictureNo")} is not a valid reference.
> >
> > So this means that the getString() call is wrong and the get() call is ok?
> ...
> 
> what version of VelocityTools are you using?  1.1-beta? or did you build it
> from CVS recently?
> 
> i ask because after 1.1-beta, we realized that wasn't the best method/name and
> changed it to getAttribute().

wheee... it works... thank you. I will check the sources from now on, but 
maybe the docs should be updated ?

> 
> > The first call is printed literally on the screen, but the second call
> > doesn't print anything . :(
> 
> the get() method is still there and hasn't changed, but it is for rendering a
> Tile, not for getting an attribute of a Tiles context.  so it makes sense that
> the second call prints nothing.
> 
> Nathan Bubna
> nathan@esha.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message