jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: xpath: how to node.getName() from row?
Date Tue, 04 Nov 2008 13:00:56 GMT
Marc Speck wrote:
> I have a query like
> //*[jcr:contains(.,"whatever")/(@jcr:name | @jcr:primaryType |
> @f:myProperty)
> to retrieve some excerpts. I need a RowIterator for the excerpt (=can't use
> NodeIterator) and some custom properties in the result table (= no default
> properties in the table).
> Unfortunatelly,
> currentRow.getValue(JcrConstants.JCR_NAME).getString();
> throws an error. I hacked around it with using JcrConstants.JCR_PATH but is
> there a better way to retrieve the name of a node from a row?

no, there isn't.


is the best you can do.


View raw message