[ http://issues.apache.org/jira/browse/PLUTO-85?page=comments#action_65600 
]
     
Ate Douma commented on PLUTO-85:
--------------------------------

I agree with Dale on this one: this issue isn't Fixed yet and not (fully) 
conforming the Portlet API yet.

The API javadoc for RenderResponse.getNamespace() says:
"The value returned by this method should be prefixed or appended to elements, 
such as JavaScript variables or function names, to ensure they are unique in 
the context of the portal page."

So, support for at least JavaScript variable or function names conformance 
should be provided I think.

I therefor kindly ask if this issue can be reopened.

For Jetspeed-2 a similar issue was created:
   http://issues.apache.org/jira/browse/JS2-217

I'm going to refer that issue back to this one, hoping Pluto will fix this for 
us ;-)

Regards, Ate

> 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: 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