Top Description Fields Constructors Methods
jakarta.faces.view.facelets

public Class ConverterHandler

extends FaceletsAttachedObjectHandler
implements ValueHolderAttachedObjectHandler
Class Inheritance
All Implemented Interfaces
jakarta.faces.view.ValueHolderAttachedObjectHandler, jakarta.faces.view.AttachedObjectHandler
Imports
jakarta.faces.view.ValueHolderAttachedObjectHandler

Handles setting a jakarta.faces.convert.Converter instance on a jakarta.faces.component.ValueHolder parent. Will wire all attributes set to the Converter instance created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to.

Will only set/create Converter if the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree.

Field Summary

Modifier and TypeField and Description
private String
private TagHandlerDelegate

Constructor Summary

AccessConstructor and Description
public
ConverterHandler(ConverterConfig
converter config where the converter Id is taken from.
config
)

Creates a new ConverterHandler using the given config.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the converter Id.
getConverterId
(FaceletContext
facelet context used to resolve the converter Id from an attribute.
ctx
)

Returns the converter Id.

The converter Id is taken from the attribute "converterId"

protected TagHandlerDelegate
Inherited from jakarta.faces.view.facelets.FaceletsAttachedObjectHandler:
applyAttachedObjectgetAttachedObjectHandlerHelpergetFor

Field Detail

converterIdback to summary
private String converterId
helperback to summary
private TagHandlerDelegate helper

Constructor Detail

ConverterHandlerback to summary
public ConverterHandler(ConverterConfig config)

Creates a new ConverterHandler using the given config.

Parameters
config:ConverterConfig

converter config where the converter Id is taken from.

Method Detail

getConverterIdback to summary
public String getConverterId(FaceletContext ctx)

Returns the converter Id.

The converter Id is taken from the attribute "converterId"

Parameters
ctx:FaceletContext

facelet context used to resolve the converter Id from an attribute.

Returns:String

the converter Id.

getTagHandlerDelegateback to summary
protected TagHandlerDelegate getTagHandlerDelegate()

Implements abstract jakarta.faces.view.facelets.DelegatingMetaTagHandler.getTagHandlerDelegate.

Doc from jakarta.faces.view.facelets.DelegatingMetaTagHandler.getTagHandlerDelegate.

Get the tag handler delegate.

Code that extends from DelegatingMetaTagHandler (directly or indirectly, as through extending ComponentHandler) must take care to decorate, not replace, the TagHandlerDelegate instance returned by this method. Failure to do so may produce unexpected results.

Returns:TagHandlerDelegate

the tag handler delegate.

Annotations
@Override