You're probably looking for $doc.updateObjectFromRequest('myspace.myclass')
See
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or…
Hope this helps,
Marius
On Tue, Nov 11, 2014 at 8:18 PM, Jason Clemons <jason.clemons(a)live.com> wrote:
Hello all,
I have a list on a page which defaults to a value defined in the objects of the page.
What I want to do is access the value of the list after the page is refreshed from
velocity code on the same page. My users would open the page and see the lists with their
default values, then select some values from the list and press a button causing a
post-back. After the post-back happens, I need to essentially "reflect" the
selection that the user made from velocity code.
So far if I use the following code:
#set($obj = $doc.getObject("myspace.myclass",0))
$doc.display("myprop","view",$obj)
But, I get the default value after the page posts back, even though the selected value
persists.
Any help is greatly appreciated.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users