The implementation of RenderResponse, this class

org.jboss.portal.portlet.impl.RenderResponseImpl 

In the final release of the JBoss portal implements the

getNamespace() by providing a hardcoded string always.


  |    public String getNamespace()
  |    {
  |       return "handleMetaDataEvent";
  |    }
  | 

JSR 168 states that this method should behave the following way(s):

anonymous wrote : 
  | PLT.12.3.4 Namespace encoding
  | 
  | Within their content, portlets may include elements that must be unique 
within the whole
  | portal page. JavaScript functions and variables are an example of this.
  | The getNamespace method must provide the portlet with a mechanism that 
ensures the
  | uniqueness of the returned string in the whole portal page.lxxxvi For 
example, the
  | getNamespace method would return a unique string that could be prefixed to a
  | JavaScript variable name within the content generated by the portlet, 
ensuring its
  | uniqueness in the whole page. The getNamespace method must return the 5 e 
same value if
  | invoked multiple times within a render request.lxxxvii
  | The getNamespace method must return a valid identifier as defined in the 
3.8 Identifier
  | Section of the Java Language Specification Second Edition.lxxxviii
  | 

As an FYI, while searching for this string in the JBoss Portal source code, I 
found that this class:

org.jboss.portal.server.deployment.CustomPortalWebApp

also uses the same hard coded string (but maybe this is desired for some 
reason...?) in the following method impl:


  | public String getContextPath()
  |    {
  |       return "/handleMetaDataEvent";
  |    }
  | 



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882902#3882902

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882902


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to