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

renderResponse.getNamespace() returns invalid Javascript name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • unspecified
    • unspecified
    • portlet container
    • None
    • 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. TIMESTAMP_20041116.patch_1.diff
          1 kB
          Michal Durdina
        2. RenderResponseImpl.diff.txt
          0.8 kB
          @deprecated ZHENG Zhong

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: