There's two things I can chalk up from experience on this: The class/id/value seems to be hit/miss for me, but the "select doc.fullName from xyz" format works for me everytime on my local wiki. Just be wary of using it too much: you increase the time it takes to load a page noticably every time you add a db list field. So far, I have yet to get either working properly on the .org farm wiki's though; so be wary of relying on these fields. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: 26 November 2007 13:57 To: XWiki Users Subject: Re: [xwiki-users] Database List Class Hi, This is not so well documented, so it's easy to make mistakes. The main idea is that you use either the Query property, or the Class+Id+Value properties. Second, XWiki Class Name is not a java or hibernate class name, but the name of a class defined in the wiki, like XWiki.ArticleClass or XWiki.XWikiUsers. So, if you want to list all the documents, you can write in the Query field this: select doc.fullName from XWikiDocument doc and leave the Class/Id/Value fields empty. Sergiu On 11/25/07, Jan Kodera <[email protected]> wrote:
Hi All, i want use database list class as property in my class. I tried hibernate query to fill in values of property. After this, the select box was empty. I think there is no problem in query (Select doc from XWikiDocument as
doc) and I filled in value (doc.name) and id (doc.id) and also i filled in which class should hibernate use. (XWikiDocument). I dont know, what I am doing wrong. Is there some tutorial for this? There is values which i filled in Display type : select Relational Storage: yes Use Picker: yes Size : 1 Sort: value Hibernate Query:select doc from XWikiDocument as doc XWiki Class Name:
XWikiDocument Id Field Name: doc.name Value Field Name: doc.name
Thank you.
-- http://purl.org/net/sergiu _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users