[ http://issues.apache.org/jira/browse/PLUTO-85?page=comments#action_12316379 ]
ZHENG Zhong commented on PLUTO-85: ---------------------------------- I've made a patch to fix the RenderResponse's namespace problem in the 1.0.1-rc3 release. Characters in the namespace are validated by Character.isJavaIdentifierPart() method, and all invalid characters are replaced by '_'. Regards. ZHENG Zhong > 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
