Re: [xwiki-users] Trouble assessing boolean property value of an object

2008-11-04 Thread BrianJones
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 =

Re: [xwiki-users] Trouble assessing boolean property value of an object

2008-11-03 Thread Jerome Velociter
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

Re: [xwiki-users] Trouble assessing boolean property value of an object

2008-11-03 Thread BrianJones
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

Re: [xwiki-users] Trouble assessing boolean property value of an object

2008-11-03 Thread Sergiu Dumitriu
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