Author: chris.laprun(a)jboss.com
Date: 2011-08-01 11:07:06 -0400 (Mon, 01 Aug 2011)
New Revision: 6966
Modified:
portal/branches/api/examples/portlets/api/src/main/java/org/gatein/portal/samples/api/NavigationPortlet.java
Log:
- Removed unneeded code.
Modified:
portal/branches/api/examples/portlets/api/src/main/java/org/gatein/portal/samples/api/NavigationPortlet.java
===================================================================
---
portal/branches/api/examples/portlets/api/src/main/java/org/gatein/portal/samples/api/NavigationPortlet.java 2011-08-01
15:03:18 UTC (rev 6965)
+++
portal/branches/api/examples/portlets/api/src/main/java/org/gatein/portal/samples/api/NavigationPortlet.java 2011-08-01
15:07:06 UTC (rev 6966)
@@ -59,18 +59,17 @@
IterableIdentifiableCollection<Navigation> adminNodes = navigation.getAll();
PrintWriter writer = response.getWriter();
- String portalURI = request.getParameterMap().get("navigation_uri")[0];
writer.println("<ul>");
for (Navigation adminNode : adminNodes)
{
- outputNode(writer, adminNode, portalURI);
+ outputNode(writer, adminNode);
}
writer.println("</ul>");
}
- private void outputNode(PrintWriter writer, Navigation node, String portalURI)
+ private void outputNode(PrintWriter writer, Navigation node)
{
IterableIdentifiableCollection<Navigation> children = node.getAll();
int size = children.size();
@@ -85,7 +84,7 @@
writer.println("<ul>");
for (Navigation child : children)
{
- outputNode(writer, child, portalURI);
+ outputNode(writer, child);
}
writer.println("</ul>");
}