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() {
Show replies by date