Class AttributeHandler
java.lang.Object
jakarta.faces.view.facelets.TagHandler
com.sun.faces.facelets.tag.TagHandlerImpl
com.sun.faces.facelets.tag.jsf.core.AttributeHandler
- All Implemented Interfaces:
AttributeHandler,FaceletHandler
public final class AttributeHandler extends TagHandlerImpl implements AttributeHandler
Sets the specified name and attribute on the parent UIComponent. If the "value" specified is not a literal, it will
instead set the ValueExpression on the UIComponent.
See tag
documentation.
- Author:
- Jacob Hookom
- See Also:
UIComponent.getAttributes(),UIComponent.setValueExpression(java.lang.String, jakarta.el.ValueExpression)
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AttributeHandler(TagConfig config) -
Method Summary
Modifier and Type Method Description voidapply(FaceletContext ctx, UIComponent parent)Process changes on a particular UIComponentStringgetAttributeName(FaceletContext ctxt)Returns the resolved literal String value of the attribute name after evaluating EL.Methods inherited from class com.sun.faces.facelets.tag.TagHandlerImpl
findNextByType, findNextByTypeMethods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Constructor Details
-
AttributeHandler
- Parameters:
config-
-
-
Method Details
-
apply
Description copied from interface:FaceletHandlerProcess changes on a particular UIComponent
- Specified by:
applyin interfaceFaceletHandler- Parameters:
ctx- the current FaceletContext instance for this executionparent- the parent UIComponent to operate upon- Throws:
IOException- if unable to loadrelativePath
-
getAttributeName
Description copied from interface:AttributeHandlerReturns the resolved literal String value of the attribute name after evaluating EL.
- Specified by:
getAttributeNamein interfaceAttributeHandler- Parameters:
ctxt- theFaceletContextfor this view execution- Returns:
- the literal string value of the attribute name after evaluating EL
-