Re: [xwiki-users] Create Javascript application in XWiki

2015-03-24 Thread Nicolas Delsaux
Thanks for all your replies, Vincent and Thomas. I'm quite ... worried by the fact to directly put my webjars dependencies in WEB-INF/lib, directly or through Advanced Search, as it would prevent me to have explicit link between the JS lib and the place where it is used. What I fear is the

Re: [xwiki-users] Create Javascript application in XWiki

2015-03-24 Thread Nicolas Delsaux
Le 24/03/2015 11:24, vinc...@massol.net a écrit : If you’re doing dev and writing an extension for your code then all you need is add a dependency to the webjar in your extension’s POM and then install it through the Extension Manager and it won’t go in WEB-INF/lib :) Oh, I see, you're

Re: [xwiki-users] Defining dependencies was Re: Create Javascript application in XWiki

2015-03-24 Thread Thomas Mortagne
On Tue, Mar 24, 2015 at 10:59 AM, Nicolas Delsaux nicolas.dels...@gmx.fr wrote: OK I however have another question on that topic. As a Java dev, I'm quite fond of Webjars as they provide me a way to make sure which version of a Javascript I use. I've seen that XWiki can integrate webjars

Re: [xwiki-users] Create Javascript application in XWiki

2015-03-24 Thread vinc...@massol.net
Hi Nicolas, On 23 Mar 2015 at 16:33:55, Nicolas Delsaux (nicolas.dels...@gmx.fr(mailto:nicolas.dels...@gmx.fr)) wrote: I would like to create a Javascript application in XWiki. My precise goal is to go get some content from Jenkins (build status) and render it over a static image using

Re: [xwiki-users] Defining dependencies was Re: Create Javascript application in XWiki

2015-03-24 Thread vinc...@massol.net
Hi Nicolas, On 24 Mar 2015 at 11:07:45, Thomas Mortagne (thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote: On Tue, Mar 24, 2015 at 10:59 AM, Nicolas Delsaux wrote: OK I however have another question on that topic. As a Java dev, I'm quite fond of Webjars as they

Re: [xwiki-users] Create Javascript application in XWiki

2015-03-24 Thread vinc...@massol.net
  On 24 Mar 2015 at 11:22:52, Nicolas Delsaux (nicolas.dels...@gmx.fr(mailto:nicolas.dels...@gmx.fr)) wrote: Thanks for all your replies, Vincent and Thomas. I'm quite ... worried by the fact to directly put my webjars dependencies in WEB-INF/lib, directly or through Advanced Search, as it

[xwiki-users] Defining dependencies was Re: Create Javascript application in XWiki

2015-03-24 Thread Nicolas Delsaux
OK I however have another question on that topic. As a Java dev, I'm quite fond of Webjars as they provide me a way to make sure which version of a Javascript I use. I've seen that XWiki can integrate webjars (http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration) but, as

Re: [xwiki-users] Create Javascript application in XWiki

2015-03-24 Thread Thomas Mortagne
Extensions don't go in WEB-INF/lib, they go in a special local repository in the configured permanent directory. On Tue, Mar 24, 2015 at 11:24 AM, vinc...@massol.net vinc...@massol.net wrote: On 24 Mar 2015 at 11:22:52, Nicolas Delsaux (nicolas.dels...@gmx.fr(mailto:nicolas.dels...@gmx.fr))

[xwiki-users] Synchronize two XWiki installations

2015-03-24 Thread Nicolas Delsaux
Hi, As I tried XWiki, I used my laptop as server with the Windows standalone install. Now, I want to have XWiki installed on a standard server with a standard DB/web server using the XWiki RPM (I guess this RPM will not install Jetty/SQLite, but Tomcat/??). But, I would better not have to

Re: [xwiki-users] Create Javascript application in XWiki

2015-03-24 Thread vinc...@massol.net
On 24 Mar 2015 at 11:12:54, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: Hi Nicolas, On 23 Mar 2015 at 16:33:55, Nicolas Delsaux (nicolas.dels...@gmx.fr(mailto:nicolas.dels...@gmx.fr)) wrote: I would like to create a Javascript application in XWiki.

Re: [xwiki-users] Fight with ActivityStreamPluginApi

2015-03-24 Thread Thomas Mortagne
Another simpler (depending from where you stand, it's certainly cleaner at least) possibility is to make activity stream ignore whatever you are planning to do by indicating it that you are going to are subtask of another one (for example when you import a XAR you don't get the document in the

[xwiki-users] [ANN] XWiki 7.0 Release Candidate 1 released

2015-03-24 Thread Thomas Mortagne
The XWiki development team is proud to announce the availability of XWiki 7.0 Release Candidate 1. The version is mostly about stabilization before 7.0 final. It contains diff UI improvements, Extension Repository improvements, a new component based watchlist module, a new application to edit wiki

Re: [xwiki-users] ajax example

2015-03-24 Thread Marius Dumitru Florea
Some comments: For step 1: Don't print the JSON directly. You'll have escaping issues. In order to ensure the generated JSON is valid you should build the JSON in memory (using Velocity/Java maps, arrays and basic types) and then serialize it: $jsontool.serialize({ greeting: Hello, location:

Re: [xwiki-users] Fight with ActivityStreamPluginApi

2015-03-24 Thread Thomas Mortagne
On Tue, Mar 24, 2015 at 5:22 PM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote: Your method seem to complex (for me). Thanks anyway :-) Do you mean $xwiki.activitystream. API is broken? I don't remember talking about the activity stream API :) I don't really know it well enough to give advices

[xwiki-users] Fw : Re: ajax example

2015-03-24 Thread Pascal BASTIEN
Some comments: Thxs For step 1: Don't print the JSON directly. You'll have escaping issues. In order to ensure the generated JSON is valid you should build the JSON in memory (using Velocity/Java maps, arrays and basic types) and then serialize it: $jsontool.serialize({   greeting:

[xwiki-users] Fight with ActivityStreamPluginApi

2015-03-24 Thread Pascal BASTIEN
Hello, A user want to rename lot of page in Xwiki and I don't want this op displayed on WebHome Activity Stream. Then, I found these API to use: http://tiny.cc/2fb0vx public void deleteActivityEvent(ActivityEvent event) Delete the passed event form the database. and http://tiny.cc/gkb0vx

[xwiki-users] Fw : Re: Fight with ActivityStreamPluginApi

2015-03-24 Thread Pascal BASTIEN
Do you mean $xwiki.activitystream. API is broken? I don't remember talking about the activity stream API :) I probably because you didn't talk about it :-)) don't really know it well enough to give advices on it. Finally, I used another method who's working like I want: {{velocity}}

[xwiki-users] Fw : Fw : Re: ajax example

2015-03-24 Thread Pascal BASTIEN
For step 1: Don't print the JSON directly. You'll have escaping issues. In order to ensure the generated JSON is valid you should build the JSON in memory (using Velocity/Java maps, arrays and basic types) and then serialize it: $jsontool.serialize({   greeting: Hello,