jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Error Updating a node
Date Tue, 01 Dec 2009 18:25:24 GMT
On Tue, Dec 1, 2009 at 15:52, CesarX <cingaruca@gmail.com> wrote:
> Excuse me, how can i check if the node have a primary property?.
> I wrote the next line of code:
> System.out.println("getPrimaryItem: "+contentNode.getPrimaryItem());

That's already the right direction: If the primary item does not
exist, getPrimaryItem() will throw an ItemNotFoundException.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message