Re: [xwiki-users] Find all objects of a class (more than one object on a page)

2009-01-16 Thread Jean Couteau
Thanks for the hint, I did not try the getObjects method but getObject. Problem solved. Marius Dumitru Florea a écrit : Hi, See the javadoc for Document here http://tinyurl.com/9hxpot . Pay attention especially to getObject* methods. For each document retrieved with your HQL query you can

[xwiki-users] Find all objects of a class (more than one object on a page)

2009-01-14 Thread Jean Couteau
Dear all, I am a bit lost with hql requests. What I would like to do is find all the objects of Space.MyClass (even if there are more than one object on a page). I tried to play with #set ($sql = , BaseObject as obj where obj.name=doc.fullName and obj.className='Space.MyClass') and then

Re: [xwiki-users] Find all objects of a class (more than one object on a page)

2009-01-14 Thread Marius Dumitru Florea
Hi, See the javadoc for Document here http://tinyurl.com/9hxpot . Pay attention especially to getObject* methods. For each document retrieved with your HQL query you can call getObjects(Space.MyClass). Hope this helps, Marius Jean Couteau wrote: Dear all, I am a bit lost with hql