javax.jcr.node: How to use orderBefore function?
I have the following path:
/content/mysite/en/jcr:content/content/section/par_0
/content/mysite/en/jcr:content/content/section/par_1
/content/mysite/en/jcr:content/content/section/par_1/oldnode
I want to add another node before the RTE node. It seems I need to be using orderBefore function but I cannot get it to work.
I tried
Node mynode = session.getNode("/content/mysite/en/jcr:content/content/section/par_1);
mynode.orderBefore("oldnode", "newnode")
and I'm getting a "not a child error".
Any ideas? Thanks
