[xwiki-users] Changing a document object during a notification

Tiago Rinck Caveden caveden at gmail.com
Wed Jun 25 18:37:08 CEST 2008


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?

Thank you very much,
-- 
Tiago Rinck Caveden
http://caveden.multiply.com


More information about the users mailing list