Sergiu,
Thanks for all your help, everything is working perfectly now!
Sergiu Dumitriu-2 wrote:
Yes, I read the whole snippet again. The problem is that $object is not
an object, but a document. You must replace:
#set ($object = $xwiki.getDocument(${item}))
with
#set($object =
Hi,
See below:
BrianJones wrote:
Hi all,
I'm having trouble using Velocity to analyze the boolean value of a property
of a class.
For example, I have class X, with a property Y (I'll call this property
'example_bool' in the lower example code) which is of type 'Boolean'. I've
configured
Jerome,
Thanks for your suggestion, but it didn't seem to work...
Jerome Velociter-2 wrote:
Try to replace
#if (!$object.get(example_bool))
by
#if (!$object.getProperty(example_bool).value)
Hope this helps (haven't tested, I admit)
Jerome.
I tried using:
#if
Jerome Velociter wrote:
Hi,
See below:
BrianJones wrote:
Hi all,
I'm having trouble using Velocity to analyze the boolean value of a property
of a class.
For example, I have class X, with a property Y (I'll call this property
'example_bool' in the lower example code) which is of type