[xwiki-users] accessing & altering objects/class values

Jeff Ousley jousley at gmail.com
Fri Dec 22 22:09:15 CET 2006


Hello,

I'm trying to do something I thought was simple, but I'm not figuring
it out. I've got a page in my space called "test". Associated with
that page is an object called "TestClass". TestClass has one
field/property called "num1" which is of type long and currently set
to 333.

Now, I want to write the velocity code to simply get the value of
num1, add 1 to it, and store it again in the num1 field so the next
time I read it, it should have a value of 334.

Can this be done? Any help is appreciated.

Thanks,
-jeff




More information about the users mailing list