Hello Vincent and all,
I've been successfully making my first (java-based) component (I can call it
from other places) using hints from there and the components' tutorial.
However, I have failed to get that component to listen to events.
While another, groovy-based, listener is notified, my onEvent is not called.
getEvents is returning objects that I would desire
public List<Event> getEvents() {
return Arrays.<Event>asList(
new AttachmentUpdatedEvent(),
new AttachmentDeletedEvent());
}
(I would prefer an abstract type used here, but I need concrete objects)
What else can wrong in my listener?
Shouldn't there be listener registration at components? (e.g. in the initialize
method)
thanks
paul
On 29 mai 2014, at 18:39, [email protected] 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/WritingEventListenerTutorial
>
> 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
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users