You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Andy Bowes <an...@scientiasolutions.com> on 2004/11/01 16:32:25 UTC

Creating Links

Hi

I am attempting to create a Link between a Category Node and another Node
using the following code.
It all seems to execute OK but no link is being created.
I have stepped through it in debug to check that I am accessing the right
nodes and everything looks to be fine.

accessToken.begin();
ObjectNode categoryNode = structure.retrieve(slideToken, categoryPath);
ObjectNode itemNode = structure.retrieve(slideToken, itemPath);
LinkNode linkNode = new LinkNode(itemNode.getUri());
categoryNode.addLink(linkNode);
accessToken.commit();

I have also tried calling the structure.createLink() method but have got the
same result.

I am using TxXMLFileDescriptorsStore and expected to see a link element
added to the XML file for the Category node.

Am I missing something?

regards

Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org