Re: [JXPath] Problem adding objects to an ArrayList Variable

2003-02-07 Thread Dmitri Plotnikov
ad of JXPath? JXPath is intended primarily for mixed models containing both beans and XML. After all XPath itself is only defined for XML. Jexl does not have to deal with the burden of non-java bean models like DOM and JDOM, so its handling of beans is more intuitive. > > Cheers, >

Re: [JXPath] Problem adding objects to an ArrayList Variable

2003-02-07 Thread Adam J Chesney
to expand the List, but it never got called. Cheers, Adam. > > > Thanks for your help, > > > > > Adam. > > I hope this does not make jxpath completely unusable for you. > > - Dmitri > > > > > > > > > > - Original Message ---

Re: [JXPath] Problem adding objects to an ArrayList Variable

2003-02-07 Thread Dmitri Plotnikov
ion immutable simply to get it to throw an exception. If the collection is mutable, operations changing it are successful, but since the changes are made to some temporary collection, not the original one you want to change. > Thanks for your help, > > Adam. I hope this does not make jxpath

Re: [JXPath] Problem adding objects to an ArrayList Variable

2003-02-07 Thread Adam J Chesney
r your help, Adam. - Original Message - From: "Dmitri Plotnikov" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 9:47 PM Subject: Re: [JXPath] Problem adding objects to an ArrayList Variable

Re: [JXPath] Problem adding objects to an ArrayList Variable

2003-02-06 Thread Dmitri Plotnikov
Adam, JXPath is in fact incapable of doing what you want it to do. Before a collection is passed to an extension function, it undergoes some conversions, which make it unmodifiable. JXPath should of course throw an exception in this case. I have added that exception and will check that new code

[JXPath] Problem adding objects to an ArrayList Variable

2003-02-06 Thread Adam J Chesney
Hi,   Attached is a small test program that simply defines a Context like this:    Object o = new Object (); JXPathContext context = JXPathContext.newContext( o ); context.getVariables().declareVariable("myList", new ArrayList() );    FunctionLibrary library = new FunctionLibrary (); librar