myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject svn commit: r491823 - /myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java
Date Tue, 02 Jan 2007 16:01:29 GMT
Author: paulsp
Date: Tue Jan  2 08:01:28 2007
New Revision: 491823

URL: http://svn.apache.org/viewvc?view=rev&rev=491823
Log:
Render components, not just encode them.

Modified:
    myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java

Modified: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java?view=diff&rev=491823&r1=491822&r2=491823
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java
(original)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java
Tue Jan  2 08:01:28 2007
@@ -489,7 +489,7 @@
     }
 
     /**
-     * Renderered a component and it's children.
+     * Renderered a component, including it's children, then complete the reponse.
      * 
      * @param context Faces Context
      * @param component Component to be rendered.
@@ -503,5 +503,7 @@
         renderer.encodeBegin(context, component);
         renderer.encodeChildren(context, component);
         renderer.encodeEnd(context, component);
+        context.responseComplete();
+        context.renderResponse();
     }
 }



Mime
View raw message