You're probably looking for $doc.updateObjectFromRequest('myspace.myclass')See http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/6.2.4/xwiki-platform-oldcore-6.2.4-javadoc.jar/!/com/xpn/xwiki/api/Document.html#updateObjectFromRequest%28java.lang.String%29 Hope this helps, Marius On Tue, Nov 11, 2014 at 8:18 PM, Jason Clemons <[email protected]> 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 > [email protected] > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
