commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dustin Whitney" <dustin.whit...@gmail.com>
Subject Re: JXPath setting values with predicates
Date Tue, 03 Jul 2007 15:02:44 GMT
Well, I quit the job where I was going to use that.  However, it would be
awesome if what I described worked :)  I remember searching through the code
and making a few changes, but not really getting anywhere.

-Dustin

On 7/3/07, Matt Benson <gudnabrsam@yahoo.com> wrote:
>
> Was just going through my flagged mail and realized
> I'd never followed up here.  What's your current
> status, Dustin?
>
> -Matt
>
> --- Dustin Whitney <dustin.whitney@gmail.com> wrote:
>
> > Hello,
> >
> >     I like JXPath, but I'd like to make a change to
> > the source, and I'm
> > hoping for some advice here.  When using the
> > JXPathContext.createPathAndSetValue() method on some
> > Java beans, I get an
> > exception if something like:
> >
> > /appQuestions[@detailGroup = 'Rental Reimbursement'
> > and @detailName =
> > 'Number']/detail
> >
> > results in the predicate returning an null value.
> > But, using the same
> > createPathAndSetValue() method with that XPath when
> > the predicate does not
> > result in null, works just fine.  I could easily
> > turn my predicate into an
> > object if I were dumped into my
> > AbstractFactory.createObject() method.  Can
> > anyone suggest what I might change to make that
> > happen, or give a good
> > explanation as to why I should not do that?
> >
> > Thanks,
> > Dustin
> >
>
>
>
>
>       ____________________________________________________________________________________
> Shape Yahoo! in your own image.  Join our Network Research Panel today!
> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message