--- 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
something similar?  JXPath can add an element to a
list.

-Matt

>  
> 
> 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 not work when attempting to add
> elements to a
> collection (as it's trying to replace the Set object
> with my new
> String).  I'm not sure how one would do this with
> the setValue method,
> but any help would be appreciated.
> 
>  
> 
> Regards,
> 
>  
> 
> Jeff
> 
> 
> This email (and any attachments) is intended only
> for the use of the individual or entity named above
> and may contain information that is privileged and
> confidential. If you are not the intended recipient,
> or have unauthorized access, you are hereby notified
> that copying, disseminating, distributing or taking
> any action in reliance on this email is strictly
> prohibited<br />
> 
> Opinions, conclusions and other information in this
> message that do not relate to the official business
> of our firm shall be understood as neither given nor
> endorsed by it.
> 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to