[jboss-user] [JBoss Portal Users] - Re: links from portlet content to another portal page

belcar do-not-reply at jboss.com
Thu Oct 1 03:01:31 EDT 2009


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#4258045

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258045



More information about the jboss-user mailing list