jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: JQOM question
Date Wed, 26 May 2010 13:50:35 GMT
2010/5/21 François Cassistat <f@maya-systems.com>:
> I'm learning JQOM. Just one question, in XPath, I used to do queries like :
>
> //*[... and path/to/subnode/@value='somevalue' and ...]
>
> in JQOM, I can't use this :
> qom.comparison
> (
>        qom.propertyValue("mainselector", "path/to/subnode/@value"),
>        qom.JCR_OPERATOR_EQUAL_TO,
>        qom.literal(value.createValue("somevalue"))
> )
>
> it gives :
> Exception in thread "main" javax.jcr.query.InvalidQueryException: '/' not allowed in
name
>
> Is it possible to do something like this? or should I need to do a join ?

Not sure, but I think you need a join in this case, using sth like
ISDESCENDANTNODE().

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message