diff --git a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfRuntimeInformation.java b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfRuntimeInformation.java index 8aee27f7..dc58bdb5 100644 --- a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfRuntimeInformation.java +++ b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfRuntimeInformation.java @@ -17,6 +17,7 @@ package org.springframework.faces.webflow; import javax.faces.context.FacesContext; +import javax.faces.context.FacesContextWrapper; import org.springframework.util.ClassUtils; import org.springframework.util.ReflectionUtils; @@ -104,6 +105,9 @@ public class JsfRuntimeInformation { if (facesContext == null) { return false; } + while (facesContext instanceof FacesContextWrapper) { + facesContext = ((FacesContextWrapper) facesContext).getWrapped(); + } myFacesInUse = facesContext.getClass().getPackage().getName().startsWith("org.apache.myfaces."); } return myFacesInUse;