Hi Thomas or Brian (which one is it ?) There is a "set" function in BaseObject which either takes a typed object but also a String. It calls "fromString" if it is a String So something like doc.getObject("XWiki.ClassName",0).set("fieldname", "value", context) should work Ludovic THOMAS, BRIAN M (ATTSI) a écrit :
Brief background: I have a servlet filter that handles authentication. It wants to auto-register previously unseen users, and update already-registered users, from information in cookies. The information is mostly in the form of strings, but the object's fields might not be.
The question: Is there a simple, type-independent method to set an XWiki Object field's value from a string? The question is not "how can this be done", since I can easily work that out, but rather "is there a method currently available"?
brain[sic]
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost AIM: nvludo Yahoo: ludovic