-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop support for CURRENT_COMPONENT CURRENT_COMPOSITE_COMPONENT in FacesContext attrs map #1627
Comments
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
@javaserverfaces Commented |
|
The JSF specification contains the following:
/**
The key to which the
UIComponent
currently being processed will beassociated with within the {@link FacesContext} attributes map.
*
*/
public static final String CURRENT_COMPONENT =
"javax.faces.component.CURRENT_COMPONENT";
/**
The key to which the
UIComponent
currently beingattributes map.
*
@see javax.faces.context.FacesContext#getAttributes()
*
@SInCE 2.0
*/
public static final String CURRENT_COMPOSITE_COMPONENT =
"javax.faces.component.CURRENT_COMPOSITE_COMPONENT";
The guarantee that the current and current composite components are
available through FacesContext.getAttributes() doesn't seem right for
several reasons:
UIComponent.getCurrentComponent() and
UIComponent.getCurrentCompositeComponent() are more convenient and typesafe.
current stack will be messed up
the JSF RI currently uses, maintaining these attributes just in case a
developer tries to request them is a waste
Environment
Operating System: All
Platform: All
Affected Versions
[2.0.2]
The text was updated successfully, but these errors were encountered: