You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by as...@apache.org on 2018/02/15 20:04:10 UTC

portals-pluto git commit: PLUTO-688 V3.0 Portlet Hub Demo tries to call nonexistent setValue function on PortletParameters object

Repository: portals-pluto
Updated Branches:
  refs/heads/master 840cb0e65 -> 3ecf7c2b0


PLUTO-688 V3.0 Portlet Hub Demo tries to call nonexistent setValue function on PortletParameters object


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

Branch: refs/heads/master
Commit: 3ecf7c2b0727e9f7e20f1e20e4520cd36c50e861
Parents: 840cb0e
Author: Neil Griffin <ne...@gmail.com>
Authored: Thu Feb 15 15:03:49 2018 -0500
Committer: Neil Griffin <ne...@gmail.com>
Committed: Thu Feb 15 15:03:49 2018 -0500

----------------------------------------------------------------------
 PortletHubDemo/src/main/webapp/WEB-INF/jsp/view-csp.jsp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/3ecf7c2b/PortletHubDemo/src/main/webapp/WEB-INF/jsp/view-csp.jsp
----------------------------------------------------------------------
diff --git a/PortletHubDemo/src/main/webapp/WEB-INF/jsp/view-csp.jsp b/PortletHubDemo/src/main/webapp/WEB-INF/jsp/view-csp.jsp
index 997dbf2..ef78c8e 100644
--- a/PortletHubDemo/src/main/webapp/WEB-INF/jsp/view-csp.jsp
+++ b/PortletHubDemo/src/main/webapp/WEB-INF/jsp/view-csp.jsp
@@ -178,7 +178,7 @@ limitations under the License.
          hub.action(fel);
       } else  {
          parms = hub.newParameters();
-         parms.setValue('action', 'send');
+         parms['action'] = ['send'];
          if (document.getElementById(rid).checked) {
             clrs.push("<%=PARAM_FG_RED%>");
          } 
@@ -189,9 +189,9 @@ limitations under the License.
             clrs.push("<%=PARAM_FG_BLUE%>");
          } 
          if (clrs.length > 0) {
-            parms.setValue('<%=PARAM_FG_COLOR%>', clrs);
+            parms['<%=PARAM_FG_COLOR%>'] = clrs;
          }
-         parms.setValue('<%=PARAM_MSG_INPUT%>', document.getElementById(mid).value);
+         parms['<%=PARAM_MSG_INPUT%>'] = [document.getElementById(mid).value];
          hub.action(parms);
       }
       event.preventDefault();