We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0373aa commit 75c9354Copy full SHA for 75c9354
spring-faces/src/main/java/org/springframework/faces/webflow/JsfRuntimeInformation.java
@@ -17,6 +17,7 @@
17
package org.springframework.faces.webflow;
18
19
import javax.faces.context.FacesContext;
20
+import javax.faces.context.FacesContextWrapper;
21
22
import org.springframework.util.Assert;
23
import org.springframework.util.ClassUtils;
@@ -124,6 +125,9 @@ public static boolean isMyFacesInUse() {
124
125
if (facesContext == null) {
126
return false;
127
}
128
+ while (facesContext instanceof FacesContextWrapper) {
129
+ facesContext = ((FacesContextWrapper) facesContext).getWrapped();
130
+ }
131
myFacesInUse = facesContext.getClass().getPackage().getName().startsWith("org.apache.myfaces.");
132
133
return myFacesInUse;
0 commit comments