[ http://issues.apache.org/jira/browse/PLUTO-85?page=all ]

ZHENG Zhong updated PLUTO-85:
-----------------------------

    Attachment: RenderResponseImpl.diff.txt

The patch to correct the namespace problem.

> renderResponse.getNamespace() returns invalid Javascript name
> -------------------------------------------------------------
>
>          Key: PLUTO-85
>          URL: http://issues.apache.org/jira/browse/PLUTO-85
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: Current CVS
>  Environment: Cocoon-2.1.5.1 portal
>     Reporter: Michal Durdina
>     Priority: Minor
>      Fix For: 1.0.1-rc2
>  Attachments: RenderResponseImpl.diff.txt, TIMESTAMP_20041116.patch_1.diff
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to