PartialViewContextImple gets the impl's FacesContext reference from
FacesContextImpl directly and always uses this FacesContextImpl for partial
request processing (processPartial() always uses ctx that was passed in at
Therefore it's not possible to use wrapped FacesContext for partial request
processing, unless wrapped FacesContext's override the method
I think there are two possible solutions:
1. make FacesContextWrapper.getPartialViewContext() methot abstract so wrappers
are forced to override this method.
2. on first access PartialViewContextImpl should acquire
FacesContext.getCurrentInstance() and cache it locally instead of using the
passed in instance.