Hi, sorry to post on Turbine-users, but I kinda need help and Velocity-users
isn't really forthcoming.

I'm experiencing difficulty getting Attribute names to be displayed when I
use $variable.AttributeName.

I've a vector of objects which I add to the context. Each object has private
String attributes and there are getter and setter methods for each attribute
in the object.

There's nothing wrong with my template code or the vector I add to the
context because when I do

#foreach ($product in $allProducts)
$product
#end

it spews out a list of my Product object references (Product@F4453D).

But when I try

#foreach ($product in $allProducts)
$product.Attribute
#end
it does not retrieve the attribute but displays $product.Attribute as a
String literal instead.

After a bit of fiddling around, I got $product.Attribute to work (I don't
know how), but when I added another $product.anotherAttribute,
$product.Attribute works but $product.anotherAttribute doesn't.

Can anyone help?



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

Reply via email to