Details
Description
If combination of SWF and MyFaces Trinidad is used, the flag JsfRuntimeInformation.myFacesInUse may be set to wrong value in method JsfRuntimeInformation.isMyFacesInUse().
Reason: facesContext.getClass() may be org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit (depending on the order of wrapped FacesContexts) which is interpreted as "MyFaces Core" by code
facesContext.getClass().getPackage().getName().startsWith("org.apache.myfaces.")
Bet solution of solving this inside method JsfRuntimeInformation.isMyFacesInUse() seem to be:
walk through a potential stack of FacesContextWrapper instances until you reach a non-FacesContextWrapper FacesContext which should be good for deciding if it's MyFaces Core or not.
Attachments
Issue Links
- relates to
-
SWF-1698 Performance issue with processTree method and JsfRuntimeInformation.isMyFacesInUse invocation
-
- Resolved
-