I did't found it in the sources before, because the class is
"DocumentUpdatedEvent" and not "DocumentUpdateEvent" (as described in
the
tutorial). Now it works fine. At the moment i put the new listener to the
ObservationManager when one of my components is initialized (Components
imlements Initializable). I use here
@Inject
ObservationManager observationManager;
@Override
public void initialize() throws InitializationException {
observationManager.addListener(new MyOwnEventListener());
}
Is there a way to add the new listener in general to the ObersvationManager
when Xwiki starts?
Regards,
Matthias
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Create-Object-by-Default-with-a-new-Page-…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.