You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Nick Lothian <nl...@essential.com.au> on 2004/03/03 23:14:41 UTC

RE: JavaScript not working correctly when both portlets are in vi ewmode...

> 
> Stefan Hepper wrote:
> 
> > Stephan Huber wrote:
> > 
> >> Thank you Nick. But I can't find the method you mention in JSR 168 
> >> Spec 1.0.
> >>
> > 
> > RenderResponse inherits this method from PorletResponse.
> 
> No, it doesn't. I'm looking at the Portlet API (V1.0) right now,
> and there is no such method.
> 
> To make sure I'm right, I also searched the specification for mention
> of this method.
> 
> Instead, look at the documentation for 
> RenderResponse.getNamspace, both
> in the API documentation and in the specification. Here's an excerpt
> from the javadoc:
> 
>    "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."
> 

Apologies for that! I was looking at an old version of the spec.
getNamespace() is indeed the method you need.

Nick