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/11/23 11:37:09 UTC

svn commit: r1038040 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Author: lofwyr
Date: Tue Nov 23 10:37:08 2010
New Revision: 1038040

URL: http://svn.apache.org/viewvc?rev=1038040&view=rev
Log:
TOBAGO-606: Layout
 - prepareRender must be called before layout, because the markup may influence the layout.

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java?rev=1038040&r1=1038039&r2=1038040&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java Tue Nov 23 10:37:08 2010
@@ -136,11 +136,11 @@ public class PageRenderer extends PageRe
       facesContext = new TobagoFacesContext(facesContextOrg);
     }
 
+    RenderUtils.prepareRendererAll(facesContext, page);
+
     LayoutContext layoutContext = new LayoutContext(page);
     layoutContext.layout();
 
-    RenderUtils.prepareRendererAll(facesContext, page);
-
     TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
 
     // reset responseWriter and render page