[portal-commits] JBoss Portal SVN: r12949 - branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/basic.

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Thu Mar 5 07:16:15 EST 2009


Author: chris.laprun at jboss.com
Date: 2009-03-05 07:16:15 -0500 (Thu, 05 Mar 2009)
New Revision: 12949

Modified:
   branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/basic/PageParameterPortlet.java
Log:
- Improved wording.
- Minor re-formatting.

Modified: branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/basic/PageParameterPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/basic/PageParameterPortlet.java	2009-03-04 23:19:11 UTC (rev 12948)
+++ branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/basic/PageParameterPortlet.java	2009-03-05 12:16:15 UTC (rev 12949)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * JBoss, a division of Red Hat                                               *
- * Copyright 2008, Red Hat Middleware, LLC, and individual                    *
+ * Copyright 2009, Red Hat Middleware, LLC, and individual                    *
  * contributors as indicated by the @authors tag. See the                     *
  * copyright.txt in the distribution for a full listing of                    *
  * individual contributors.                                                   *
@@ -24,11 +24,11 @@
 
 import org.jboss.portal.api.node.PortalNode;
 import org.jboss.portal.api.node.PortalNodeURL;
+import org.jboss.portlet.JBossActionRequest;
+import org.jboss.portlet.JBossActionResponse;
+import org.jboss.portlet.JBossPortlet;
 import org.jboss.portlet.JBossRenderRequest;
-import org.jboss.portlet.JBossPortlet;
 import org.jboss.portlet.JBossRenderResponse;
-import org.jboss.portlet.JBossActionRequest;
-import org.jboss.portlet.JBossActionResponse;
 
 import javax.portlet.PortletException;
 import javax.portlet.PortletSecurityException;
@@ -64,7 +64,7 @@
       PrintWriter writer = resp.getWriter();
 
       //
-      for (Enumeration<String> e = getPortletConfig().getPublicRenderParameterNames();e.hasMoreElements();)
+      for (Enumeration<String> e = getPortletConfig().getPublicRenderParameterNames(); e.hasMoreElements();)
       {
          String parameterName = e.nextElement();
 
@@ -74,9 +74,9 @@
 
       //
       writer.println("<div class=\"portlet-font\">Page parameters can be bound to coordination aliases. Out of the box, the request parameters" +
-      		" are themselves bound to page parameters. Setting a value below, will modify the URL by adding a request parameter.<br/>" +
-      		"This can be particulary intersting to use URL request parameters to set values usable by a portlet.</div>");
-      
+         " are themselves bound to page parameters. Setting a value below, will modify the URL by adding a request parameter.<br/>" +
+         "This can be particulary interesting to pass values that can then be used by portlets.</div>");
+
       //
       writer.println("<form action=\"" + resp.createActionURL() + "\" method=\"POST\"><table>");
       writer.println("<tr><td>Page parameter name:</td><td><input type=\"text\" name=\"name\" width=\"36\" value=\"\"/></td></tr>");




More information about the portal-commits mailing list