Hello, I am pretty new to Xwiki and Groovy/Velocity, but made a bit of
progress in what I want to do with it. however I can't find the information
I need to move onto the last step so i can start using it.

I have a page which includes an object, which has a static list of states.
Upon saving the page I want to update that object to a different state.

I have gone through the tutorial of the creating an event listener in
Groovy, and have a basic event listener at the moment. what I am not quite
understanding is how I can use that event listener to access the static list
and change it to another state upon saving.

I couldn't really find any documentation about what I am trying to do, but
please point me in the right direction if I am wrong! I am assuming I will
need to do some extra code as by changing the variable, I will need to save
the document again.

Thanks very much in advance.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Using-an-event-Listener-to-modify-object-variables-tp7583258.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to