On Thu, Aug 4, 2011 at 4:16 PM, Vlad Merticariu <[email protected]> wrote:
Hi devs,
I'm having trouble with a listener to DocumentUpdatingEvent.
I need to add new objects to my document, depending on the new values of some fields of an already existing object. The problem is that, because the document is not saved yet, I can only see the old values of the fields but I can't see the changes that were made. Is there a method to get the new values?
I could use DocumentUpdatedEvent and see only the values but I would like to avoid saving the document twice.
That's weird, as far as I can see in the code the exact same XWikiDocument object is given to both DocumentUpdatingEvent and DocumentUpdatedEvent events. If you have a way for us to easily reproduce the behavior you get you should create an issue on http://jira.xwiki.org and details it there so that we can try to debug it.
Thanks, Vlad _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne