myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1568987 - /myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
Date Mon, 17 Feb 2014 13:38:28 GMT
Author: lofwyr
Date: Mon Feb 17 13:38:28 2014
New Revision: 1568987

URL: http://svn.apache.org/r1568987
Log:
workaround for wrong pages...

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java?rev=1568987&r1=1568986&r2=1568987&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
Mon Feb 17 13:38:28 2014
@@ -608,6 +608,12 @@ public abstract class AbstractUISheet ex
   }
 
   public void onComponentPopulated(final FacesContext facesContext, final UIComponent parent)
{
+    if (getLayoutManager() instanceof AbstractUIGridLayout) {
+      // ugly, but it seems that some old pages have this problem
+      LOG.warn("Found a GridLayout as layout facet in sheet. Will be ignored! Please remove
it." +
+          " The id of the sheet is: '" + getClientId(facesContext) + "'");
+      getFacets().remove(Facets.LAYOUT);
+    }
     if (getLayoutManager() == null) {
       setLayoutManager(CreateComponentUtils.createAndInitLayout(
           facesContext, ComponentTypes.SHEET_LAYOUT, RendererTypes.SHEET_LAYOUT, parent));



Mime
View raw message