Tiago Rinck Caveden wrote: > Hello, > > I'm using XWiki notification API ( > http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications) and now I > need to change a property of the document that is being changed by the user. > I tried simply changing the value but this does not persist it - after > rebooting the server the value is not there anymore. > Using the context.getWiki.saveDocument method was not a very bright idea > either because it started an infinite recursion - it called my notification > code back again. > > So, does anybody know what could I do?
Yes, use prenotifications. This means that instead of putting the code in verify(), put it in preverify(), and use the constructor with 3 arguments. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list email@example.com http://lists.xwiki.org/mailman/listinfo/users