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

renderResponse.getNamespace() returns invalid Javascript name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: unspecified
    • Fix Version/s: unspecified
    • Component/s: portlet container
    • Labels:
      None
    • Environment:
      Cocoon-2.1.5.1 portal

      Description

      Use of renderResponse.getNamespace() method is primary for prefixing names of script variables and functions in portlets.

      In Cocoon-2.1.5.1 portal environment renderRequest.getNamespace() returns i.e. 'Helloworld-1' and Pluto consequently constructs namespace as 'Pluto_Helloworld-1_'. Such a name is not valid name for Javascript function or variable.

      Patch that translates all '-' to '_' in returning namespace is attached.

        Attachments

        1. RenderResponseImpl.diff.txt
          0.8 kB
          @deprecated ZHENG Zhong
        2. TIMESTAMP_20041116.patch_1.diff
          1 kB
          Michal Durdina

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              durdina Michal Durdina
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: