There is an issue in 2.2 when sorting on a non-string property (see http://jira.xwiki.org/jira/browse/XWIKI-4973). As you don't specify a sort column, I think it sorts on first column wich is a Number, and so livetable is empty ... Waiting for 2.2.3 release, you can try this workaround : add "class":"TestSpace.TestClass" for each column in $columnsProperties Hope this helps, Jeremie 2010/3/18 Frantisek Kall <[email protected]>
Hello Jerome
We upgraded XWiki to version 2.2.2. I didn't change anything but now I have opposite problem, no one document is in livetable.
I have "TestClass" in "TestSpace", template is "TestTemplate" in TestSpace.
Class properties for TestClass ID (ID: Number) Servis Name (Name: String) Servis Description (Description: TextArea) Servis Manager (Manager: Static List)
Script for livetable:
{{velocity}} #set($columns = ["ID", "Name", "Description", "Manager"]) #set($columnsProperties = { "ID" : { "type" : "number" }, "Name" : { "type" : "text"}, "Description" : { "type" : "text" }, "Manager" : { "type" : "list"} }) #set($options = { "className":"TestSpace.TestClass", "rowCount": 15 }) #livetable("Catalog" $columns $columnsProperties $options) {{/velocity}}
I created two TestClass type documents in TestSpace (I can see them in TestSpace.TestClass page), but page with livetable script has only header row. Same script in 2.1.M1 version created table with header + rows with documents and Template document too.
Any idea what I do wrong?
Regards
Frantisek -- View this message in context: http://n2.nabble.com/Livetable-tp4744002p4756208.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users