[seam-commits] Seam SVN: r14337 - branches/community/Seam_2_3/jboss-seam-jsf2/src/main/java/org/jboss/seam/mock.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Feb 28 09:06:06 EST 2012


Author: maschmid
Date: 2012-02-28 09:06:06 -0500 (Tue, 28 Feb 2012)
New Revision: 14337

Modified:
   branches/community/Seam_2_3/jboss-seam-jsf2/src/main/java/org/jboss/seam/mock/MockFacesContext.java
Log:
mock missing isPostback method in the MockFacesContext


Modified: branches/community/Seam_2_3/jboss-seam-jsf2/src/main/java/org/jboss/seam/mock/MockFacesContext.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam-jsf2/src/main/java/org/jboss/seam/mock/MockFacesContext.java	2012-02-28 14:01:22 UTC (rev 14336)
+++ branches/community/Seam_2_3/jboss-seam-jsf2/src/main/java/org/jboss/seam/mock/MockFacesContext.java	2012-02-28 14:06:06 UTC (rev 14337)
@@ -127,8 +127,8 @@
 
    @Override
    public RenderKit getRenderKit()
-   {
-      if (getViewRoot() == null || getViewRoot().getRenderKitId() == null)
+   {  
+      if (getViewRoot() == null || getViewRoot().getRenderKitId() == null || renderKitFactory == null)
       {
          return MockRenderKit.INSTANCE;
       }
@@ -239,6 +239,11 @@
          elContext.putContext(FacesContext.class, this);
       }
       return elContext;
-   }   
+   }
+   
+   @Override
+   public boolean isPostback() {
+      return false;
+   }
 
 }



More information about the seam-commits mailing list