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 <[email protected]> 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
> [email protected]
> 
> 

-- 
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.

Reply via email to