[xwiki-users] Annotations

2014-05-13 Thread Michael Bußler
Hi there, I observed the Annotation-code in XWiki is having problems with the general approach of having a document-class rendered by a class-specific sheet. E.g. the highlighting of text passages isn't rendering properly. Is this a general limitation or am I doing something wrong with the

Re: [xwiki-users] Using parameter macro in the js extension

2014-05-13 Thread Michael Bußler
Hi, the velocity-code is executed on the server, while js-code runs on the client side, AFTER the macro-code was executed . You could try need to pass parameters to your macro via an URL parameter or http POST. Hope this helps! Best, Michael Am 12.05.2014 19:01 schrieb Eduardo Abritta

Re: [xwiki-users] XWIKI to MediaWIKI

2014-05-13 Thread Thomas Mortagne
There is no existing tool I know of for this, see my answer on your other mail on dev mailing list. On Mon, May 12, 2014 at 11:59 PM, walid yaich walid.ya...@gmail.com wrote: Hi everybody, The reason is that we need a simple workflow in the wiki, the extension XWiki Publication Workflow

Re: [xwiki-users] Using parameter macro in the js extension

2014-05-13 Thread Jeremie BOUSQUET
Hi, 2014-05-13 8:40 GMT+02:00 Michael Bußler michael.buss...@googlemail.com: Hi, the velocity-code is executed on the server, while js-code runs on the client side, AFTER the macro-code was executed . You could try need to pass parameters to your macro via an URL parameter or http POST.

Re: [xwiki-users] XWIKI to MediaWIKI

2014-05-13 Thread vinc...@massol.net
  On 12 May 2014 at 23:59:35, walid yaich (walid.ya...@gmail.com(mailto:walid.ya...@gmail.com)) wrote: Hi everybody, The reason is that we need a simple workflow in the wiki, the extension XWiki Publication Workflow Application not working. hmm that doesn’t seem a good reason to switch

Re: [xwiki-users] XWIKI to MediaWIKI

2014-05-13 Thread walid yaich
I'm sorry, i'm so serious, we're more than 300 persons in the company using XIWKI, si i'm pretty serious, if it's possible to write a tool to migrate in 1 or 2 weeks, i'll probably do it. Maybe you're right, i didn't wait much, but i spend much time trying to make it work and i didn't even

Re: [xwiki-users] XWIKI to MediaWIKI

2014-05-13 Thread vinc...@massol.net
Hi Walid, On 13 May 2014 at 10:23:42, walid yaich (walid.ya...@gmail.com(mailto:walid.ya...@gmail.com)) wrote: I'm sorry, i'm so serious, we're more than 300 persons in the company using XIWKI, si i'm pretty serious, if it's possible to write a tool to migrate in 1 or 2 weeks, i'll

Re: [xwiki-users] XWIKI to MediaWIKI

2014-05-13 Thread walid yaich
Thank you so much, i'll talk to my boss and see what can we do, so nice to get responses 2014-05-13 9:32 GMT+01:00 vinc...@massol.net vinc...@massol.net: Hi Walid, On 13 May 2014 at 10:23:42, walid yaich (walid.ya...@gmail.com(mailto: walid.ya...@gmail.com)) wrote: I'm sorry, i'm so

Re: [xwiki-users] XWiki Publication Workflow Application

2014-05-13 Thread Anca Luca
Hello, So first you need to make sure you installed both the API and the application (the APi is a dependency of the application, so if you install with Extension Manager that will just work, if you install manually you need to handle it yourself). Then, once installed, create at least one

Re: [xwiki-users] XWiki Publication Workflow Application

2014-05-13 Thread walid yaich
Thank you so much, Probably its because i don't understand XWIKi basics, now i'll take my time to understand basics You're a good community ! 2014-05-13 9:50 GMT+01:00 Anca Luca lu...@xwiki.com: Hello, So first you need to make sure you installed both the API and the application (the APi

Re: [xwiki-users] XWIKI to MediaWIKI

2014-05-13 Thread walid yaich
Thanks to your advice, i'm going to spend 2-3 days on basics and see if i can make the simple workflow this week ;) Good community ! i like it :) 2014-05-13 9:49 GMT+01:00 walid yaich walid.ya...@gmail.com: Thank you so much, i'll talk to my boss and see what can we do, so nice to get

Re: [xwiki-users] Annotations

2014-05-13 Thread Anca Luca
Hello Michael, there is a chance that this is a standard issue, but it also depends on what you're trying to do. The main limitation of the annotations is that they are not working on content rendered with the {{html}} macro, because they are rendered at the XDOM Level and the html macro is not

Re: [xwiki-users] Using parameter macro in the js extension

2014-05-13 Thread Eduardo Abritta
Exactly. I'm needing initialize a value in the velocity environment and use it on the javascript code. it not needs to be dinamic. I am trying to use the following code but the JS variable is returning undefined Java Script Code var param;

[xwiki-users] newsletter application seem to break xwikiUserSheet with flamingo skin

2014-05-13 Thread Pascal BASTIEN
Hello, If I install newsletter extension on xwiki 6.0, my profil is display like this :-( http://snag.gy/NY6p2.jpg Thxs Pascal B ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] Using parameter macro in the js extension

2014-05-13 Thread Caleb James DeLisle
This depends a lot on how the javascript is loaded... If you're including it using $xwiki.jsx.use() then it won't have the same context because it's a different HTTP request. If you use the macro and then do a {{velocity}} macro with an {{html}} macro and a script inside of that, the content will

Re: [xwiki-users] Using parameter macro in the js extension

2014-05-13 Thread Jeremie BOUSQUET
2014-05-13 16:04 GMT+02:00 Caleb James DeLisle c...@cjdns.fr: This depends a lot on how the javascript is loaded... If you're including it using $xwiki.jsx.use() then it won't have the same context because it's a different HTTP request. If you use the macro and then do a {{velocity}} macro

[xwiki-users] Components, context and subwikis

2014-05-13 Thread Jeremie BOUSQUET
Hello, I have some java components (@Singleton) that depend on old core. It is bad, and I'm trying to move away from it, but I'll keep at least one component like this - my own bridge. I have this in initialize() of these components: ExecutionContext context =

Re: [xwiki-users] Components, context and subwikis

2014-05-13 Thread Thomas Mortagne
The ExecutionContext returned by execution.getContext(); comes from a ThreadLocal which means it's not a singleton associated to the main wiki but a new ExecutionContext generated for each http request. By the way you should really use ProviderXWikiContext component instead.

Re: [xwiki-users] Components, context and subwikis

2014-05-13 Thread Jeremie BOUSQUET
2014-05-13 17:53 GMT+02:00 Thomas Mortagne thomas.morta...@xwiki.com: The ExecutionContext returned by execution.getContext(); comes from a ThreadLocal which means it's not a singleton associated to the main wiki but a new ExecutionContext generated for each http request. That is what I

Re: [xwiki-users] Using parameter macro in the js extension

2014-05-13 Thread Eduardo Abritta
Caleb, I did what do you say and it worked. Thank you. Atenciosamente, Eduardo Abritta e-mail: eduardo.abri...@outlook.com | Date: Tue, 13 May 2014 16:19:17 +0200 From: jeremie.bousq...@gmail.com To: users@xwiki.org Subject: Re: [xwiki-users] Using parameter macro in the js extension

Re: [xwiki-users] Components, context and subwikis

2014-05-13 Thread Thomas Mortagne
On Tue, May 13, 2014 at 6:29 PM, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: 2014-05-13 17:53 GMT+02:00 Thomas Mortagne thomas.morta...@xwiki.com: The ExecutionContext returned by execution.getContext(); comes from a ThreadLocal which means it's not a singleton associated to the main

Re: [xwiki-users] Components, context and subwikis

2014-05-13 Thread Jeremie BOUSQUET
2014-05-13 19:10 GMT+02:00 Thomas Mortagne thomas.morta...@xwiki.com: On Tue, May 13, 2014 at 6:29 PM, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: 2014-05-13 17:53 GMT+02:00 Thomas Mortagne thomas.morta...@xwiki.com: The ExecutionContext returned by execution.getContext(); comes

Re: [xwiki-users] Components, context and subwikis

2014-05-13 Thread Thomas Mortagne
On Tue, May 13, 2014 at 9:04 PM, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: 2014-05-13 19:10 GMT+02:00 Thomas Mortagne thomas.morta...@xwiki.com: On Tue, May 13, 2014 at 6:29 PM, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: 2014-05-13 17:53 GMT+02:00 Thomas Mortagne

Re: [xwiki-users] Annotations

2014-05-13 Thread Michael Bußler
Hi Anca, My XWiki (www.wikiderm.de) is build up like a encyclopedia and consists of entry pages, which I'm using a custom class called EntryClass. The class object stores the entries title, letter and the actual entry text (entry), which is just plain XWiki 2.0 syntax enriched with custom style