The reference guide has a topic about this: "13.9.3. Link to other pages."
// Get the ParentNode. Since we are inside a Window, the Parent is the Page
| PortalNode thisNode = req.getPortalNode().getParent();
| // Get the Node in the Portal hierarchy tree known as "../default"
| PortalNode linkToNode = thisNode.resolve("../default");
| // Create a RenderURL to the "../default" Page Node
| PortalNodeURL pageURL = resp.createRenderURL(linkToNode);
| // Output the Node's name and URL for users
| Samples
| 149
| html.append("Page: " + linkToNode.getName() + " -> ");
| html.append("<a href=\"" + pageURL.toString() +
"\">" + linkToNode.getName() + "</a>");
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258045#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...