On 08/04/2011 10:16 AM, Vlad Merticariu 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?
Where exactly are you looking for those values? You're supposed to use the argument passed to the listener, and not try to get them from the database (or from the document access bridge). > I could use DocumentUpdatedEvent and see only the values but I would like to > avoid saving the document twice. > > Thanks, > Vlad -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

