[seam-commits] Seam SVN: r15116 - branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Sep 5 08:25:25 EDT 2012
Author: maschmid
Date: 2012-09-05 08:25:25 -0400 (Wed, 05 Sep 2012)
New Revision: 15116
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockSeamListener.java
Log:
JBSEAM-5027 Sabotage Mojarra initialization in MockSeamListener by removing the com.sun.faces.facesInitializerMappingsAdded attribute
Modified: branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockSeamListener.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockSeamListener.java 2012-09-05 12:06:51 UTC (rev 15115)
+++ branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/mock/MockSeamListener.java 2012-09-05 12:25:25 UTC (rev 15116)
@@ -33,6 +33,10 @@
log.info( "Welcome to Mock Seam " + Seam.getVersion() );
event.getServletContext().setAttribute( Seam.VERSION, Seam.getVersion() );
servletContext = event.getServletContext();
+
+ // Sabotage Mojarra initialization.
+ // This is required as Mojarra will attempt to initialize even if there is no FacesServlet configured in web.xml
+ servletContext.removeAttribute("com.sun.faces.facesInitializerMappingsAdded");
}
public static ServletContext getServletContext() {
More information about the seam-commits
mailing list