- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandler
-
- jakarta.faces.view.facelets.MetaTagHandler
-
- jakarta.faces.view.facelets.DelegatingMetaTagHandler
-
- jakarta.faces.view.facelets.ComponentHandler
-
- org.omnifaces.taghandler.ComponentExtraHandler
-
- All Implemented Interfaces:
FaceletHandler
public class ComponentExtraHandler extends ComponentHandler
Handler that can be used by components which wish to receive various extra services.Those extra services consist of:
- Receiving the
FaceletContext
for the Facelet in which the component appears
The handler has to be used alongside a component declaration in a Facelets
*-taglib.xml
, e.g.<tag> <tag-name>someComponent</tag-name> <component> <component-type>com.example.SomeComponent</component-type> <handler-class>org.omnifaces.taghandler.ComponentExtraHandler</handler-class> </component> </tag>
- Since:
- 2.0
- Author:
- Arjan Tijms
-
-
Field Summary
-
Fields inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
-
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor Description ComponentExtraHandler(ComponentConfig config)
The tag constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAttributes(FaceletContext ctx, Object component)
-
Methods inherited from class jakarta.faces.view.facelets.ComponentHandler
createComponent, getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulated
-
Methods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled
-
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Constructor Detail
-
ComponentExtraHandler
public ComponentExtraHandler(ComponentConfig config)
The tag constructor.- Parameters:
config
- The tag config.
-
-
Method Detail
-
setAttributes
public void setAttributes(FaceletContext ctx, Object component)
- Overrides:
setAttributes
in classDelegatingMetaTagHandler
-
-