*
* @param context - the <code>FacesContext</code> for the current request
*/
protected void populateFacesELResolverForJsp(FacesContext context) {
ApplicationAssociate appAssociate =
ApplicationAssociate.getInstance(context.getExternalContext());
CompositeELResolver compositeELResolverForJsp =
appAssociate.getFacesELResolverForJsp();
if (compositeELResolverForJsp == null) {
if (LOGGER.isLoggable(Level.INFO)) {
LOGGER.log(Level.INFO,
"jsf.lifecycle.initphaselistener.resolvers_not_registered",
new Object[] { appAssociate.getContextName() });
}
return;
}
ELUtils.buildJSPResolver(compositeELResolverForJsp, appAssociate);
// somewhat of a hack, but since we're here, trigger the creation
// of the FacesResolvers as well by calling Application.getELResolver()
// to avoid a sync block on that method.
context.getApplication().getELResolver();
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.log(Level.FINE,
"jsf.lifecycle.initphaselistener.resolvers_registered",
new Object[] { appAssociate.getContextName() });
}
}