RE: [JXPath] and Collections

2008-02-07 Thread Matt Benson
); context.createPathAndSetValue("/list[" + (listSize + 1) + "]", "bar"); HTH, Matt > > Thanks, > > Jeff > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 06, 2008 3:55 PM >

RE: JXPath and Collections

2008-02-07 Thread Jeffrey Puro
lto:[EMAIL PROTECTED] Sent: Wednesday, February 06, 2008 3:55 PM To: Jakarta Commons Users List Subject: Re: JXPath and Collections --- Jeffrey Puro <[EMAIL PROTECTED]> wrote: > I have a pojo that has the following properties: > Looks like a set is unsupported. :( Could you possibly

Re: JXPath and Collections

2008-02-06 Thread Matt Benson
--- Jeffrey Puro <[EMAIL PROTECTED]> wrote: > I have a pojo that has the following properties: > Looks like a set is unsupported. :( Could you possibly use some kind of wrapper object, possibly returning asList() from a commons-collections ListOrderedSet from a getSetAsList() method or someth

JXPath and Collections

2008-02-06 Thread Jeffrey Puro
I have a pojo that has the following properties: Class MyPojo { private Set mySet; } Using JXPath, I am trying to add a new object to my Set object called mySet by using an expression as follows: context.setValue("mySet/", "New object on set"); However, this does