Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-688

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • demo portlets
    • 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);
      

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: