static public final String EMPTY_STYLE_CLASS = "";
public CoreRenderingContext()
{
FacesContext context = FacesContext.getCurrentInstance();
RequestContext afContext = RequestContext.getCurrentInstance();
_properties = new HashMap<Object, Object>();
_outputMode = afContext.getOutputMode();
_agent = _initializeAgent(context,
afContext.getAgent(),
// Go back through getOutputMode()
// in case anyone has overidden getOutputMode()
getOutputMode());
_initializeSkin(context, afContext);
_initializePPR(context, afContext);
// Get and cache (since it can be EL-bound)
_accessibilityMode = afContext.getAccessibilityMode();
_animationEnabled = afContext.isAnimationEnabled();
// Initialize the accessibility profile, providing a default
// instance if necessary.
_accessibilityProfile = afContext.getAccessibilityProfile();
if (_accessibilityProfile == null)
_accessibilityProfile = AccessibilityProfile.getDefaultInstance();
}