Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
Description
The V3.0 Portlet Hub Demo contains the following JS in the JSP associated with the PH-ColorSelPortlet:
view-csp.jsp
parms.setValue('action', 'send'); ... if (clrs.length > 0) { parms.setValue('<%=PARAM_FG_COLOR%>', clrs); } parms.setValue('<%=PARAM_MSG_INPUT%>', document.getElementById(mid).value); hub.action(parms);
The problem is that there is no setValues([object Array]) function for the PortletParameters object. For more information, see the JSDoc for PortletParameters.
Instead, the JS should contain the following:
view-csp.jsp
parms['action'] = ['send']; ... if (clrs.length > 0) { parms['<%=PARAM_FG_COLOR%>'] = clrs; } parms['<%=PARAM_MSG_INPUT%>'] = [document.getElementById(mid).value]; hub.action(parms);