scopeMap.put(name, coerce(newValue, obj.getClass()));
return;
}
// Check for ManagedBean
ManagedBean mbConfig =
getRuntimeConfig(facesContext).getManagedBean(name);
if (mbConfig != null)
{
String scopeName = mbConfig.getManagedBeanScope();
// find the scope handler object
// Note: this does not handle user-extended _scope values
Scope scope =
(Scope) VariableResolverImpl.s_standardScopes.get(scopeName);
if (scope != null)
{
scope.put(externalContext, name,
coerce(newValue, mbConfig.getManagedBeanClass()));
return;
}
log.error("Managed bean '" + name + "' has illegal scope: "
+ scopeName);
externalContext.getRequestMap().put(name,
coerce(newValue, mbConfig.getManagedBeanClass()));
return;
}
// unknown target class, put newValue into request scope without coercion
externalContext.getRequestMap().put(name, newValue);