You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/06/07 11:48:47 UTC
svn commit: r952170 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java
Author: lofwyr
Date: Mon Jun 7 09:48:47 2010
New Revision: 952170
URL: http://svn.apache.org/viewvc?rev=952170&view=rev
Log:
TOBAGO-606: Implement a new layout manager concept which layouts the components separated from rendering.
- add laying out for the ajax case
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java?rev=952170&r1=952169&r2=952170&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java Mon Jun 7 09:48:47 2010
@@ -20,6 +20,8 @@ package org.apache.myfaces.tobago.util;
import org.apache.myfaces.tobago.component.Attributes;
import org.apache.myfaces.tobago.component.Facets;
+import org.apache.myfaces.tobago.internal.layout.LayoutContext;
+import org.apache.myfaces.tobago.layout.LayoutContainer;
import org.apache.myfaces.tobago.renderkit.RendererBase;
import javax.faces.FacesException;
@@ -43,6 +45,9 @@ public class EncodeAjaxCallback implemen
}
}
}
+ if (component instanceof LayoutContainer) {
+ new LayoutContext((LayoutContainer) component).layout();
+ }
prepareRendererAll(facesContext, component);
encodeAll(facesContext, component);
} catch (IOException e) {