[xwiki-devs] JSON with XWiki/2.0 ???
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0... * when you write this in a page MySpace.MyPage: [ { "field" : "value" } ] you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p> this is not good for the JSON parser... * So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}} and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre> Ok for the JSON data but the <pre></pre> is not good also for JSON parser... * If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity} I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML... not good for the JSON parser also... What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution. thanks Pascal
Hi Pascal, See http://jira.xwiki.org/jira/browse/XWIKI-3413 Thanks -Vincent On Jun 2, 2009, at 12:37 AM, Pascal Voitot wrote:
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0...
* when you write this in a page MySpace.MyPage: [ { "field" : "value" } ]
you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p>
this is not good for the JSON parser...
* So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}}
and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre>
Ok for the JSON data but the <pre></pre> is not good also for JSON parser...
* If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity}
I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML...
not good for the JSON parser also...
What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution.
thanks Pascal
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
Hi Pascal,
See http://jira.xwiki.org/jira/browse/XWIKI-3413
Thanks -Vincent
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain) Pascal
On Jun 2, 2009, at 12:37 AM, Pascal Voitot wrote:
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0...
* when you write this in a page MySpace.MyPage: [ { "field" : "value" } ]
you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p>
this is not good for the JSON parser...
* So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}}
and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre>
Ok for the JSON data but the <pre></pre> is not good also for JSON parser...
* If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity}
I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML...
not good for the JSON parser also...
What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution.
thanks Pascal
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
Hi Pascal,
See http://jira.xwiki.org/jira/browse/XWIKI-3413
Thanks -Vincent
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain)
see http://markmail.org/thread/bao6nn5qgmo7w45j -Vincent
On Jun 2, 2009, at 12:37 AM, Pascal Voitot wrote:
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0...
* when you write this in a page MySpace.MyPage: [ { "field" : "value" } ]
you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p>
this is not good for the JSON parser...
* So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}}
and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre>
Ok for the JSON data but the <pre></pre> is not good also for JSON parser...
* If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity}
I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML...
not good for the JSON parser also...
What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution.
thanks Pascal
On Tue, Jun 2, 2009 at 9:23 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
Hi Pascal,
See http://jira.xwiki.org/jira/browse/XWIKI-3413
Thanks -Vincent
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain)
It is quite strange to speak with someone quoting Jira :) Ok Mr. Jira and do you confirm that nobody coded this part which routes the renderer to the plain text renderer when syntax is 2.0?
-Vincent
On Jun 2, 2009, at 12:37 AM, Pascal Voitot wrote:
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0...
* when you write this in a page MySpace.MyPage: [ { "field" : "value" } ]
you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p>
this is not good for the JSON parser...
* So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}}
and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre>
Ok for the JSON data but the <pre></pre> is not good also for JSON parser...
* If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity}
I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML...
not good for the JSON parser also...
What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution.
thanks Pascal
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Jun 2, 2009, at 10:21 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:23 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
Hi Pascal,
See http://jira.xwiki.org/jira/browse/XWIKI-3413
Thanks -Vincent
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain)
It is quite strange to speak with someone quoting Jira :)
That was a mail thread, not jira. I'm sorry but I don't have the time to copy paste all past discussions just for your pleasure or not having to read an email thread... ;)
Ok Mr. Jira and do you confirm that nobody coded this part which routes the renderer to the plain text renderer when syntax is 2.0?
Hmm... why don't you look at the jira issue? There's a field named "status" which shows if the issue has been implemented or not... Hint: it says "open". So yes it's not been done... Thanks -Vincent
On Jun 2, 2009, at 12:37 AM, Pascal Voitot wrote:
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0...
* when you write this in a page MySpace.MyPage: [ { "field" : "value" } ]
you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p>
this is not good for the JSON parser...
* So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}}
and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre>
Ok for the JSON data but the <pre></pre> is not good also for JSON parser...
* If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity}
I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML...
not good for the JSON parser also...
What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution.
thanks Pascal
On Tue, Jun 2, 2009 at 10:43 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 10:21 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:23 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
Hi Pascal,
See http://jira.xwiki.org/jira/browse/XWIKI-3413
Thanks -Vincent
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain)
It is quite strange to speak with someone quoting Jira :)
That was a mail thread, not jira. I'm sorry but I don't have the time to copy paste all past discussions just for your pleasure or not having to read an email thread... ;)
Really sorry about that but I'm also in a hurry looking at several things at the same time and I just thought I was still in JIRA without looking at the mail thread behind...For my (p)leasure, I will read it because it seems to answer my question...
Ok Mr. Jira and do you confirm that nobody coded this part which routes the renderer to the plain text renderer when syntax is 2.0?
Hmm... why don't you look at the jira issue? There's a field named "status" which shows if the issue has been implemented or not... Hint: it says "open". So yes it's not been done...
I can see that but this status doesn't mean that anybody has never tried to code it... but you're a bad guy making me a fool like that because you've just modified the JIRA in the meantime to add the mail thread in case anybody thought I was not silly enough :):):):)
Thanks -Vincent
On Jun 2, 2009, at 12:37 AM, Pascal Voitot wrote:
Hello, I try to create a page in XWiki/2.0 generating some JSON data but I have some problems and I have to go back to XWiki/1.0...
* when you write this in a page MySpace.MyPage: [ { "field" : "value" } ]
you call MySpace.MyPage?xpage=plain and you get some HTML code: <p><br/>.{ "field" : "value"...<br/></p>
this is not good for the JSON parser...
* So I try using the verbatim {{{}}} {{{ [ { "field" : "value" } ] }}}
and I call again MySpace.MyPage?xpage=plain and I get: <pre> [ { "field" : "value" } ] </pre>
Ok for the JSON data but the <pre></pre> is not good also for JSON parser...
* If I write some velocity inside: {{velocity}} #doit() [ { "field" : "${value}" } ] {{/velocity}
I get some <!-- velocity-macros --> comments or something like that before my json encoded into HTML...
not good for the JSON parser also...
What's the solution in XWiki/2.0 to make a page generate JSON? For the time being, I use XWiki/1.0 but this is not a viable solution.
thanks Pascal
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Jun 2, 2009, at 11:00 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 10:43 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 10:21 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:23 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
Hi Pascal,
See http://jira.xwiki.org/jira/browse/XWIKI-3413
Thanks -Vincent
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain)
It is quite strange to speak with someone quoting Jira :)
That was a mail thread, not jira. I'm sorry but I don't have the time to copy paste all past discussions just for your pleasure or not having to read an email thread... ;)
Really sorry about that but I'm also in a hurry looking at several things at the same time and I just thought I was still in JIRA without looking at the mail thread behind...For my (p)leasure, I will read it because it seems to answer my question...
Ok Mr. Jira and do you confirm that nobody coded this part which routes the renderer to the plain text renderer when syntax is 2.0?
Hmm... why don't you look at the jira issue? There's a field named "status" which shows if the issue has been implemented or not... Hint: it says "open". So yes it's not been done...
I can see that but this status doesn't mean that anybody has never tried to code it... but you're a bad guy making me a fool like that because you've just modified the JIRA in the meantime to add the mail thread in case anybody thought I was not silly enough :):):):)
No I did that before you answered just because I noticed that the thread was not referenced from the jira issue. I'm not a bad guy, unless you consider that the following is bad: - trying to help you - answering quickly to your questions - answering even though you didn't search the mail archives before asking ;) [snip] Thanks -Vincent
On Tue, Jun 2, 2009 at 11:12 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 11:00 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 10:43 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 10:21 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:23 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol <[email protected]> wrote:
> Hi Pascal, > > See http://jira.xwiki.org/jira/browse/XWIKI-3413 > > Thanks > -Vincent >
Ok I see! And has anyone tried to hook the text renderer or at least chosen the URL? :) (?xpage=text) (?xpage=plaintext) or simply replace (?xpage=plain)
It is quite strange to speak with someone quoting Jira :)
That was a mail thread, not jira. I'm sorry but I don't have the time to copy paste all past discussions just for your pleasure or not having to read an email thread... ;)
Really sorry about that but I'm also in a hurry looking at several things at the same time and I just thought I was still in JIRA without looking at the mail thread behind...For my (p)leasure, I will read it because it seems to answer my question...
Ok Mr. Jira and do you confirm that nobody coded this part which routes the renderer to the plain text renderer when syntax is 2.0?
Hmm... why don't you look at the jira issue? There's a field named "status" which shows if the issue has been implemented or not... Hint: it says "open". So yes it's not been done...
I can see that but this status doesn't mean that anybody has never tried to code it... but you're a bad guy making me a fool like that because you've just modified the JIRA in the meantime to add the mail thread in case anybody thought I was not silly enough :):):):)
No I did that before you answered just because I noticed that the thread was not referenced from the jira issue.
I'm not a bad guy, unless you consider that the following is bad: - trying to help you - answering quickly to your questions - answering even though you didn't search the mail archives before asking
;)
ok i give up, you are too strong :) I'm just a fool because I was searching in xwiki.org about it and not in the mails:) Ok joking is enough :) When somebody knowing it will have time, it would be fine to put in a small page in xwiki.org the different options for xpage and the behavior between xwiki/1.0 and 2.0... might be useful... The same for the jsfx module (one can find some little info about jsx or ssx but not jsfx or the search engine doesn't index it well) This is not a critic because I know how difficult it is to keep doc alive... but for new modules like that, just a small page giving the role and the options would be useful... thanks anyway Pascal
[snip]
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Jun 2, 2009, at 11:25 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 11:12 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 11:00 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 10:43 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 10:21 AM, Pascal Voitot wrote:
On Tue, Jun 2, 2009 at 9:23 AM, Vincent Massol <[email protected]> wrote:
On Jun 2, 2009, at 9:12 AM, Pascal Voitot wrote:
> On Tue, Jun 2, 2009 at 9:01 AM, Vincent Massol > <[email protected]> > wrote: > >> Hi Pascal, >> >> See http://jira.xwiki.org/jira/browse/XWIKI-3413 >> >> Thanks >> -Vincent >> > > Ok I see! > And has anyone tried to hook the text renderer or at least > chosen > the URL? > :) > (?xpage=text) > (?xpage=plaintext) > or simply replace (?xpage=plain)
It is quite strange to speak with someone quoting Jira :)
That was a mail thread, not jira. I'm sorry but I don't have the time to copy paste all past discussions just for your pleasure or not having to read an email thread... ;)
Really sorry about that but I'm also in a hurry looking at several things at the same time and I just thought I was still in JIRA without looking at the mail thread behind...For my (p)leasure, I will read it because it seems to answer my question...
Ok Mr. Jira and do you confirm that nobody coded this part which routes the renderer to the plain text renderer when syntax is 2.0?
Hmm... why don't you look at the jira issue? There's a field named "status" which shows if the issue has been implemented or not... Hint: it says "open". So yes it's not been done...
I can see that but this status doesn't mean that anybody has never tried to code it... but you're a bad guy making me a fool like that because you've just modified the JIRA in the meantime to add the mail thread in case anybody thought I was not silly enough :):):):)
No I did that before you answered just because I noticed that the thread was not referenced from the jira issue.
I'm not a bad guy, unless you consider that the following is bad: - trying to help you - answering quickly to your questions - answering even though you didn't search the mail archives before asking
;)
ok i give up, you are too strong :) I'm just a fool because I was searching in xwiki.org about it and not in the mails:)
yes aggregating emails in the wiki to offer a common search UI would be great...
Ok joking is enough :) When somebody knowing it will have time, it would be fine to put in a small page in xwiki.org the different options for xpage and the behavior between xwiki/1.0 and 2.0... might be useful... The same for the jsfx module (one can find some little info about jsx or ssx but not jsfx or the search engine doesn't index it well) This is not a critic because I know how difficult it is to keep doc alive... but for new modules like that, just a small page giving the role and the options would be useful...
yes definitely. Thanks -Vincent
participants (2)
-
Pascal Voitot -
Vincent Massol