jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CesarX <cingar...@gmail.com>
Subject Re: Error Updating a node
Date Tue, 01 Dec 2009 19:21:36 GMT

Hi alexander,
i have printed this linecode in the console

System.out.println("getPrimaryItem: "+contentNode.getPrimaryItem());
then show this:

/10109/documentlibrary/51117/DLFE-2507.swf/jcr:content/jcr:data 

How can i check if direccion exist?


Alexander Klimetschek wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://n4.nabble.com/Error-Updating-a-node-tp931412p932453.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message