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

2008-06-26 Thread Sergiu Dumitriu
Marius Dumitru Florea wrote: >> In this case, I might use the same "guessing techniques" shown there in my >> code too. > > You should first take a look at Vincent's observation component. If it > doesn't help then I can't see other option than to use a "guessing > technique" :( Unfortunately tha

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

2008-06-26 Thread Sergiu Dumitriu
Tiago Rinck Caveden wrote: > On Wed, Jun 25, 2008 at 7:31 PM, Sergiu Dumitriu <[EMAIL PROTECTED]> wrote: > >> Sergiu Dumitriu wrote: >>> Yes, use prenotifications. This means that instead of putting the code >>> in verify(), put it in preverify(), and use the constructor with 3 >>> arguments. >> I

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

2008-06-26 Thread Marius Dumitru Florea
See below, > Hello! > > On Thu, Jun 26, 2008 at 2:29 PM, Marius Dumitru Florea < > [EMAIL PROTECTED]> wrote: > >> Maybe this http://tinyurl.com/3hzmjd can help. It's the ActivityStream >> implementation for Curriki. It uses the Notification System. Take a >> look. > > > > Thanks. I took a quick lo

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

2008-06-26 Thread Tiago Rinck Caveden
Hello! On Thu, Jun 26, 2008 at 2:29 PM, Marius Dumitru Florea < [EMAIL PROTECTED]> wrote: > Maybe this http://tinyurl.com/3hzmjd can help. It's the ActivityStream > implementation for Curriki. It uses the Notification System. Take a look. Thanks. I took a quick look, and I saw that the code th

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

2008-06-26 Thread Marius Dumitru Florea
Maybe this http://tinyurl.com/3hzmjd can help. It's the ActivityStream implementation for Curriki. It uses the Notification System. Take a look. > On Thu, Jun 26, 2008 at 11:39 AM, Tiago Rinck Caveden <[EMAIL PROTECTED]> > wrote: > >> I have one more question... isn't the EVENT_UPDATE_OBJECT event

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

2008-06-26 Thread Tiago Rinck Caveden
On Thu, Jun 26, 2008 at 11:39 AM, Tiago Rinck Caveden <[EMAIL PROTECTED]> wrote: > I have one more question... isn't the EVENT_UPDATE_OBJECT event code ever > used? > I only need to execute my code when the object in the page is changed, so I > made an if with this event but then the code stopped

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

2008-06-26 Thread Tiago Rinck Caveden
On Wed, Jun 25, 2008 at 7:31 PM, Sergiu Dumitriu <[EMAIL PROTECTED]> wrote: > Sergiu Dumitriu wrote: > > Yes, use prenotifications. This means that instead of putting the code > > in verify(), put it in preverify(), and use the constructor with 3 > > arguments. > > I hit Send to soon, and my notif

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

2008-06-25 Thread Sergiu Dumitriu
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 -

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

2008-06-25 Thread Sergiu Dumitriu
Sergiu Dumitriu wrote: > 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