Re: [xwiki-users] Is there a way to dynamically change the values on a static list or on any other property of a xwiki class?

2010-03-02 Thread Caleb James DeLisle
I can tell you that it can be done, anything which can be done by the user can be done with groovy. document.getxWikiClass().get("propertyName") returns an object of type element. http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/api/Element.html I think you need to d

[xwiki-users] Is there a way to dynamically change the values on a static list or on any other property of a xwiki class?

2010-03-02 Thread Abel Solórzano Astorga
Hi everybody, Is there a way to dynamically (through groovy code) change the values on a static list or on any other property of a xwiki class? I am using *field = document.getxWikiClass().get("propertyName")* to get the property. document is of type* com.xpn.xwiki.api.Document*. But when I try

Re: [xwiki-users] What is $xwiki.getXMLEncoded()'s purpose in url names?

2010-03-02 Thread Thomas Mortagne
On Tue, Mar 2, 2010 at 18:25, Sergiu Dumitriu wrote: > On 03/02/2010 05:01 PM, Joel Forsberg wrote: >> >> Greetings >> >> On my wiki using swedish characters for xwiki page titles give ugly but >> working entries in all panels, e.g. "Backlinks" "Recent modifications" and >> "My >> recent modifica

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Jeremie BOUSQUET
Great thank you, you were right - executing everything in onSuccess() solved my issue ! :) I'm working on integrating JavaScript InfoVis Toolkit with XWiki - at least some graphs. So now I can successfully display an hyperbolic tree in a wiki page with json data provided from a

Re: [xwiki-users] Still issues with livetables

2010-03-02 Thread Jeremie BOUSQUET
Something else : not very important maybe, but macro #grid_addcolumn seems to be duplicated in XWiki.LiveTableResultsMacro. Is there a reason ? I removed one of the duplicates, and it seems to work as expected ... 2010/3/2 Jeremie BOUSQUET > I continue with my livetables experimentation ... > >

Re: [xwiki-users] What is $xwiki.getXMLEncoded()'s purpose in url names?

2010-03-02 Thread Sergiu Dumitriu
On 03/02/2010 05:01 PM, Joel Forsberg wrote: > > Greetings > > On my wiki using swedish characters for xwiki page titles give ugly but > working entries in all panels, e.g. "Backlinks" "Recent modifications" and "My > recent modifications" > > An example is having: > "Startsidor för våra intresse

Re: [xwiki-users] Still issues with livetables

2010-03-02 Thread Jeremie BOUSQUET
I continue with my livetables experimentation ... Found an (ugly) workaround, updating XWiki.LiveTableResultsMacro and adding the following treatment : #set($fieldvalue = $xwiki.getXMLEncoded($fieldvalue)) #set($fielddisplayvalue = $xwiki.getXMLEncoded($fielddisplayvalue)) It's particularly ugly

[xwiki-users] What is $xwiki.getXMLEncoded()'s purpose in url names?

2010-03-02 Thread Joel Forsberg
Greetings On my wiki using swedish characters for xwiki page titles give ugly but working entries in all panels, e.g. "Backlinks" "Recent modifications" and "My recent modifications" An example is having: "Startsidor för våra intresseområden" ...instead of the correct: "Startsidor för våra

Re: [xwiki-users] Still issues with livetables

2010-03-02 Thread Jeremie BOUSQUET
Hi, I added a comment on issue http://jira.xwiki.org/jira/browse/XWIKI-4887, because I found another issue that relates, IMO. New problem is when some StringProperty fields contain character ' " '. In this case, JSON seems to be broken as character is not escaped, as it is in doc_title for exampl

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Jeremie BOUSQUET
Yes, the purpose was to use json var after the Ajax.Request() block ... Understood, I will make a function of the rest of the code and pass in the onSuccess, thanks. I tried the asynchronous:false with no different result, but I would have to test again to be sure. Thx, Jeremie 2010/3/2 Sergiu D

Re: [xwiki-users] Still issues with livetables - "author" property display ?

2010-03-02 Thread Jeremie BOUSQUET
Hi, I also think there might be a regression ... I moved from 2.0.3 to 2.2.1, and now my livetable remains always empty. So I checked the SQL generated by hibernate in logs, and found this (I transcoded alias names for better readability) : select distinct doc.XWD_WEB, doc.XWD_NAME, prop.XWS_VA

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Sergiu Dumitriu
On 03/02/2010 01:15 AM, Jeremie BOUSQUET wrote: > Hello, > > This is for something I'm trying to develop ... And I'm not sure it has > something to do with XWiki, but who knows ? > > In a page I call a particular init() function like this : > > Event.observe(window, "load", init); > > This init() a

Re: [xwiki-users] [Proposal] Improving the User Guide documentation

2010-03-02 Thread Jeremie BOUSQUET
Or : excellent book automatically "pdf-exported" from excellent online documentation ;-) Jeremie 2010/3/2 Andreas Hahn > Please somedbody of the long term addicts should write a book about XWiki. > > All important projects do have books and for many people the availbility > of printed literatu

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Marius Dumitru Florea
Marius Dumitru Florea wrote: > Hi Jeremie, > > Jeremie BOUSQUET wrote: >> Hello & thx Sergiu, >> >> I changed to json content-type, and responseJSON as you proposed. >> >> I checked that my GET request is 200 OK, and in the response the JSON tab in >> Firebug shows well formed JSON. But still my j

Re: [xwiki-users] Strange ajax + json issue

2010-03-02 Thread Marius Dumitru Florea
Hi Jeremie, Jeremie BOUSQUET wrote: > Hello & thx Sergiu, > > I changed to json content-type, and responseJSON as you proposed. > > I checked that my GET request is 200 OK, and in the response the JSON tab in > Firebug shows well formed JSON. But still my json variable is empty at > execution ti

Re: [xwiki-users] [Proposal] Improving the User Guide documentation

2010-03-02 Thread Andreas Hahn
Please somedbody of the long term addicts should write a book about XWiki. All important projects do have books and for many people the availbility of printed literature marks the difference between some open source project and an important open source project. Before picking up a new software