portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asfgr...@apache.org
Subject [13/22] portals-pluto git commit: PLUTO-733 Fix namepace usage
Date Thu, 25 Oct 2018 20:19:45 GMT
PLUTO-733 Fix namepace usage


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/de7db481
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/de7db481
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/de7db481

Branch: refs/heads/master
Commit: de7db481ae0865d4559f0acb82a0b6b903970a6c
Parents: cdd72b3
Author: Kyle Stiemann <stiemannkj1@gmail.com>
Authored: Thu Oct 11 11:35:37 2018 -0400
Committer: Neil Griffin <neil.griffin.scm@gmail.com>
Committed: Thu Oct 25 15:48:30 2018 -0400

----------------------------------------------------------------------
 PortletHubDemo/src/main/java/basic/portlet/ResourcePortlet.java | 3 ++-
 PortletV3Demo/src/main/java/basic/portlet/ResourcePortlet.java  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/de7db481/PortletHubDemo/src/main/java/basic/portlet/ResourcePortlet.java
----------------------------------------------------------------------
diff --git a/PortletHubDemo/src/main/java/basic/portlet/ResourcePortlet.java b/PortletHubDemo/src/main/java/basic/portlet/ResourcePortlet.java
index a640f54..e472247 100644
--- a/PortletHubDemo/src/main/java/basic/portlet/ResourcePortlet.java
+++ b/PortletHubDemo/src/main/java/basic/portlet/ResourcePortlet.java
@@ -137,7 +137,8 @@ public class ResourcePortlet extends GenericPortlet {
          aurl = resp.createActionURL();
       } catch (Exception e) {}
       if (aurl != null) {
-         bmu = "<form  METHOD='POST' ACTION='" + aurl + "'><input id='<portlet:namespace/>-clear'
type='submit' name='action' value='Action' /></form>";
+         bmu = "<form  METHOD='POST' ACTION='" + aurl + "'>" +
+               "<input id='" + resp.getNamespace() + "-clear' type='submit' name='action'
value='Action' /></form>";
       }
 
       writer.write("<div style='background-color:" + clr + ";'>\n");

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/de7db481/PortletV3Demo/src/main/java/basic/portlet/ResourcePortlet.java
----------------------------------------------------------------------
diff --git a/PortletV3Demo/src/main/java/basic/portlet/ResourcePortlet.java b/PortletV3Demo/src/main/java/basic/portlet/ResourcePortlet.java
index 7985b41..da0a747 100644
--- a/PortletV3Demo/src/main/java/basic/portlet/ResourcePortlet.java
+++ b/PortletV3Demo/src/main/java/basic/portlet/ResourcePortlet.java
@@ -107,7 +107,8 @@ public class ResourcePortlet extends GenericPortlet {
          aurl = resp.createActionURL();
       } catch (Exception e) {}
       if (aurl != null) {
-         bmu = "<form  METHOD='POST' ACTION='" + aurl + "'><input id='<portlet:namespace/>-clear'
type='submit' name='action' value='Action' /></form>";
+         bmu = "<form  METHOD='POST' ACTION='" + aurl + "'>" +
+               "<input id='" + resp.getNamespace() + "-clear' type='submit' name='action'
value='Action' /></form>";
       }
 
       writer.write("<div style='background-color:" + clr + ";'>\n");


Mime
View raw message