Event listeners should not keep a reference to the XWiki context from
when they were created. XWiki context is created per request while the
event listener is used on multiple requests. I updated the
LoggingEventListener.
Thanks,
Marius
On Thu, May 29, 2014 at 7:39 PM, vincent(a)massol.net <vincent(a)massol.net> wrote:
Dear XWiki users,
Since I’ve seen several questions recently on the list related to XWiki events, I’ve
spent several hours rewriting the XWiki Notifications Tutorial here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutor…
You’ll learn for example:
- Adding content to pages on save
- Log when a document is modified
- Send a mail whenever a comment is added
Enjoy!
Thanks
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users