Class AttributeHandler
- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandler
-
- com.sun.faces.facelets.tag.TagHandlerImpl
-
- com.sun.faces.facelets.tag.faces.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
-
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor Description AttributeHandler(TagConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(FaceletContext ctx, UIComponent parent)
Process changes on a particular UIComponentString
getAttributeName(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, findNextByType
-
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Constructor Detail
-
AttributeHandler
public AttributeHandler(TagConfig config)
- Parameters:
config
-
-
-
Method Detail
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
Description copied from interface:FaceletHandler
Process changes on a particular UIComponent
- Specified by:
apply
in interfaceFaceletHandler
- Parameters:
ctx
- the current FaceletContext instance for this executionparent
- the parent UIComponent to operate upon- Throws:
IOException
- if unable to loadrelativePath
-
getAttributeName
public String getAttributeName(FaceletContext ctxt)
Description copied from interface:AttributeHandler
Returns the resolved literal String value of the attribute name after evaluating EL.
- Specified by:
getAttributeName
in interfaceAttributeHandler
- Parameters:
ctxt
- theFaceletContext
for this view execution- Returns:
- the literal string value of the attribute name after evaluating EL
-
-