[xwiki-users] Send an email in an event listener

2012-05-29 Thread Stéphanie
Hello everyone, I'm trying to send an automatic email and this is the idea I have had. I used the Groovy Notification Tutorial (http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial) and instead of writing in a file, I try to send an email. This is my code (I only copy

Re: [xwiki-users] help with a query

2012-05-29 Thread Marius Dumitru Florea
On Mon, May 28, 2012 at 11:54 PM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea [mariusdumitru.flo...@xwiki.com] Sent: 28 May 2012 08:48 To: XWiki Users

Re: [xwiki-users] Failure while trying to follow Writing XWiki components tutorial

2012-05-29 Thread Jeremie BOUSQUET
I think it has more to do with the repository manager not knowing the version of archetype plugin to retrieve, or something like that. You should retry your command-line using full plugin specification : mvn org.apache.maven.plugins:maven-archetype-plugin:2.2:generate -D...(your options)

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Vincent Massol
FYI I've just done this in a training I gave last week and it worked nicely. Can you show us the code you've used to register the event listener against the CM? Thanks -Vincent On May 29, 2012, at 9:12 AM, Stéphanie wrote: Hello everyone, I'm trying to send an automatic email and this is

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Vincent Massol
Hi Jeremie, On May 27, 2012, at 11:52 AM, Jeremie BOUSQUET wrote: Hello, For the mail archiver app, I need to output mail content in a page. I used to use it with html content, and display is directly done with {{html}} macro. But most messages from mailing-lists are plain-text. My

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Jeremie BOUSQUET
Thanks Vincent, IMO it might be a lot simpler to just support XWiki Syntax 2.1. And you'll get additional features too. Of course, but for this specific use-case I don't want the additional features :) For example if someone writes {{code}} in a mail, I don't want it to be interpreted when

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Vincent Massol
On May 29, 2012, at 10:16 AM, Jeremie BOUSQUET wrote: Thanks Vincent, IMO it might be a lot simpler to just support XWiki Syntax 2.1. And you'll get additional features too. Of course, but for this specific use-case I don't want the additional features :) For example if someone writes

Re: [xwiki-users] Failure while trying to follow Writing XWiki components tutorial

2012-05-29 Thread Vincent Massol
On May 29, 2012, at 9:53 AM, Jeremie BOUSQUET wrote: I think it has more to do with the repository manager not knowing the version of archetype plugin to retrieve, or something like that. It uses the latest version so I don't think it's a version issue. However, maybe the FQN will help

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Jeremie BOUSQUET
Do you have other examples of stuff you absolutely don't want from XWiki Syntax 2.1? In fact it's easiest to list what I want : only quotes, urls and emoticons. Everything else should be escaped / rendered as plain text. These 3 elements can safely be interpreted from email content and bring

Re: [xwiki-users] Failure while trying to follow Writing XWiki components tutorial

2012-05-29 Thread Paul Moore
On 29 May 2012 09:28, Vincent Massol vinc...@massol.net wrote: On May 29, 2012, at 9:53 AM, Jeremie BOUSQUET wrote: I think it has more to do with the repository manager not knowing the version of archetype plugin to retrieve, or something like that. It uses the latest version so I don't

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Vincent Massol
On May 29, 2012, at 10:35 AM, Jeremie BOUSQUET wrote: Do you have other examples of stuff you absolutely don't want from XWiki Syntax 2.1? In fact it's easiest to list what I want : only quotes, urls and emoticons. Everything else should be escaped / rendered as plain text. These 3

Re: [xwiki-users] Failure while trying to follow Writing XWiki components tutorial

2012-05-29 Thread Jeremie BOUSQUET
After some googling, seems that archetype plugin likes to throw this error in some occasions completely unrelated to what the error message says ... Maybe you could also check : - there is no backslash \ in your command-line - try adding more command-line options (specify -DgroupId , -Dversion,

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Jeremie BOUSQUET
Hum okay got it, so I think I will move this task for a later version of my app, as it's more nice-to-have than essential feature ... I also lack some courage to dig into the rendering framework right now I must say :) 2012/5/29 Vincent Massol vinc...@massol.net: On May 29, 2012, at 10:35 AM,

Re: [xwiki-users] Failure while trying to follow Writing XWiki components tutorial

2012-05-29 Thread Paul Moore
On 29 May 2012 09:47, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: After some googling, seems that archetype plugin likes to throw this error in some occasions completely unrelated to what the error message says ... Maybe you could also check : - there is no backslash \ in your

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Stéphanie Roulland
Hello, Thank you for your answer, but I'm sorry, I don't understand what you mean by CM. Thanks, Stéphanie 2012/5/29 Vincent Massol vinc...@massol.net FYI I've just done this in a training I gave last week and it worked nicely. Can you show us the code you've used to register the event

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Vincent Massol
On May 29, 2012, at 1:07 PM, Stéphanie Roulland wrote: Hello, Thank you for your answer, but I'm sorry, I don't understand what you mean by CM. Component Manager. -Vincent Thanks, Stéphanie 2012/5/29 Vincent Massol vinc...@massol.net FYI I've just done this in a training I gave

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Stéphanie
I'm really sorry, I don't understand all this kind of specific words ^^ Do you want the entire code ? Or what do you want exactly ? In any case, thanks for your answer, Stéphanie 2012/5/29 vmassol [via XWiki] ml-node+s475771n7579201...@n2.nabble.com On May 29, 2012, at 1:07 PM, Stéphanie

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Vincent Massol
On May 29, 2012, at 1:22 PM, Stéphanie wrote: I'm really sorry, I don't understand all this kind of specific words ^^ Do you want the entire code ? Or what do you want exactly ? Sorry I meant Observation Manager, not Component Manager. See

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Stéphanie Roulland
I've only one page called EventListener with this code : {{groovy}} import org.xwiki.observation.* import org.xwiki.observation.event.* import com.xpn.xwiki.web.* import com.xpn.xwiki.* class LoggingEventListener implements EventListener{ def xwiki def context

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Stéphanie Roulland
I don't know how I do that, but it works :D I have an other question : what is the difference between these two events : DocumentUpdateEvent() and DocumentSaveEvent() ? Thanks, Stéphanie 2012/5/29 Stéphanie Roulland stephanie.roull...@gmail.com I've only one page called EventListener with

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Thomas Mortagne
On Tue, May 29, 2012 at 2:17 PM, Stéphanie Roulland stephanie.roull...@gmail.com wrote: I don't know how I do that, but it works :D I have an other question : what is the difference between these two events : DocumentUpdateEvent() and DocumentSaveEvent() ? That's actually old deprecated

Re: [xwiki-users] help with a query

2012-05-29 Thread Ricardo.Julio.Rodriguez.Fernandez
From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea [mariusdumitru.flo...@xwiki.com] Sent: 29 May 2012 09:45 To: XWiki Users Subject: Re: [xwiki-users] help with a query On Mon, May 28, 2012 at 11:54 PM,

Re: [xwiki-users] TagCloud - Can't add tags

2012-05-29 Thread Sergiu Dumitriu
On 05/29/2012 01:54 AM, Hamster wrote: -bump- Still cant use any Tags... Hm... Looking at the code in documentTags.vm, the + sign can be missing only if the tag plugin is not available. So, make sure that: - there's an xwiki-platform-tag-api-*.jar in WEB-INF/lib -

Re: [xwiki-users] Activity Stream - Failed to update: Forbidden

2012-05-29 Thread Sergiu Dumitriu
On 05/29/2012 01:53 AM, Hamster wrote: Need help here! Does anyone have a clue why the Activity Stream show the Failed to update: Forbidden error? When you say that the activity stream isn't usable, are you referring just to the messaging part, or that also the list of wiki events (like

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Stéphanie Roulland
Thank you all for your answers. I have two last questions and everything will be perfect after that :D When defining my variable emailcontent (the body of my email), I want to write a little text with a link to the page (= the source of the event). Question 1 : Is it possible to have the URL of

Re: [xwiki-users] Send an email in an event listener

2012-05-29 Thread Thomas Mortagne
On Tue, May 29, 2012 at 4:31 PM, Stéphanie Roulland stephanie.roull...@gmail.com wrote: Thank you all for your answers. I have two last questions and everything will be perfect after that :D When defining my variable emailcontent (the body of my email), I want to write a little text with a

Re: [xwiki-users] Rendering mail content in a wiki page

2012-05-29 Thread Sergiu Dumitriu
On Tuesday, May 29, 2012, Vincent Massol vinc...@massol.net wrote: On May 29, 2012, at 10:35 AM, Jeremie BOUSQUET wrote: Do you have other examples of stuff you absolutely don't want from XWiki Syntax 2.1? In fact it's easiest to list what I want : only quotes, urls and emoticons. Everything

Re: [xwiki-users] Failure while trying to follow Writing XWiki components tutorial

2012-05-29 Thread Paul Moore
On 29 May 2012 10:09, Paul Moore p.f.mo...@gmail.com wrote: On 29 May 2012 09:47, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: After some googling, seems that archetype plugin likes to throw this error in some occasions completely unrelated to what the error message says ... Maybe you

Re: [xwiki-users] Scripting - Saving calculated results for a macro

2012-05-29 Thread Paul Moore
On 27 May 2012 08:28, Paul Moore p.f.mo...@gmail.com wrote: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/TempResourceAction.java and you have a nice way of serving image files stored on the disk to the HTTP

Re: [xwiki-users] Activity Stream - Failed to update: Forbidden

2012-05-29 Thread Hamster
Hi Sergiu, We have checked and both entries are there. Where do we look now? -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-Stream-Failed-to-update-Forbidden-tp7574674p7579251.html Sent from the XWiki- Users mailing list archive at Nabble.com.

Re: [xwiki-users] TagCloud - Can't add tags

2012-05-29 Thread Hamster
Hi Sergiu, Both entries are there...where do we look now? -- View this message in context: http://xwiki.475771.n2.nabble.com/TagCloud-Can-t-add-tags-tp7574678p7579252.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users