Well, I am using v1.0.
But I have now located the error:
If I don't uses the _avatar or _image column, it works fine.
If I look in the JSON page being used there seems to be a ',' too much. Right 
after the _avatar line.

First the faulty JSON >>>
"doc_creator" : "Administrator"
,
"_avatar" : "<img src='/xwiki/skins/albatross/noavatar.png' alt='XWiki.Admin' 
title='XWiki.Admin'/>",
,
"first_name" : "Administrator",
"first_name_value" : "Administrator",
"first_name_url" : ""
,
"last_name" : "xe.index.users.emptyvalue",
"last_name_value" : "",
"last_name_url" : ""
,
"email" : "[email protected]",
"email_value" : "[email protected]",
"email_url" : ""
}
,      {
<<<
And then the one without the _avatar
>>>
"doc_creator" : "Administrator"
,
"first_name" : "Administrator",
"first_name_value" : "Administrator",
"first_name_url" : ""
,
"last_name" : "xe.index.users.emptyvalue",
"last_name_value" : "",
"last_name_url" : ""
,
"email" : "[email protected]",
"email_value" : "[email protected]",
"email_url" : ""
}
<<<
It is easy enough to fix, in the XWiki.LiveTableResultsMacros you should remove 
the ',' after the lines actually printing the _(columnname)

I hope someone in the development team reads this and can apply this changes.

-Rune


-----Oprindelig meddelelse-----
Fra: [email protected] [mailto:[email protected]] På vegne af Oana 
Tabaranu
Sendt: 14. september 2009 14:21
Til: XWiki Users
Emne: Re: [xwiki-users] livetable broken if I use MyClas.property

Hi Rune,

Which xwiki syntax are you using? Try using 1.0 for the page which 
contains the code below.

Oana

Rune Hylleberg wrote:
> First I got in trouble using my own class, but even if I copy  the code
> from the livetable macro inline documentation :
>
>  
>
> #set($columns = [ "_avatar", "first_name", "last_name", "email"])
>
> #set($columnsProperties = {
>
>                  "first_name" : { "type" : "text" , "size" : 10, "link"
> : "view"},
>
>                  "last_name" : { "type" : "text" , "size" : 10, "link" :
> "view"},
>
>                  "email" : { "type" : "text" , "size" : 20, "link" :
> "editor"},
>
>                  "_avatar" : { "type" : "none" , "size" : 20, "link" :
> "none", "html" : "true", "sortable":false }
>
>                })
>
> #set($options = { "className":"XWiki.XWikiUsers",
>
>                    "translationPrefix" : "xe.index.users.",
>
>                    "tagCloud" : true,
>
>                    "rowCount": 15 })
>
> #livetable("userstable" $columns $columnsProperties $options)
>
>  
>
> I get a empty table.  It happens in both XE 2.0 M 4 and XE 2.0 RC 1
>
> Am I doing something wrong or is it a bug?
>
>  
>
> -Rune
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>   

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to