You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/12/29 15:04:12 UTC

svn commit: r359796 - /myfaces/impl/trunk/src/java/org/apache/myfaces/context/portlet/PortletExternalContextImpl.java

Author: mmarinschek
Date: Thu Dec 29 06:04:07 2005
New Revision: 359796

URL: http://svn.apache.org/viewcvs?rev=359796&view=rev
Log:
changed order of namespace/name in encodeNamespace

Modified:
    myfaces/impl/trunk/src/java/org/apache/myfaces/context/portlet/PortletExternalContextImpl.java

Modified: myfaces/impl/trunk/src/java/org/apache/myfaces/context/portlet/PortletExternalContextImpl.java
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/src/java/org/apache/myfaces/context/portlet/PortletExternalContextImpl.java?rev=359796&r1=359795&r2=359796&view=diff
==============================================================================
--- myfaces/impl/trunk/src/java/org/apache/myfaces/context/portlet/PortletExternalContextImpl.java (original)
+++ myfaces/impl/trunk/src/java/org/apache/myfaces/context/portlet/PortletExternalContextImpl.java Thu Dec 29 06:04:07 2005
@@ -189,7 +189,10 @@
             throw new IllegalStateException(msg);
         }
 
-        return ((RenderResponse)_portletResponse).getNamespace() + name;
+        //we render out the name and then the namespace as
+        // e.g. for JSF-ids, it is important to keep the _id prefix
+        //to know that id creation has happened automatically
+        return name+((RenderResponse)_portletResponse).getNamespace();
     }
 
     public String encodeResourceURL(String url) {