public class ConverterHandler extends FaceletsAttachedObjectHandler implements ValueHolderAttachedObjectHandler
Handles setting a Converter instance on a 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.
delegateFactorynextHandler, tag, tagId| Constructor and Description |
|---|
ConverterHandler(ConverterConfig config)
Creates a new ConverterHandler using the given config.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConverterId(FaceletContext ctx)
Returns the converter Id.
|
protected TagHandlerDelegate |
getTagHandlerDelegate()
Get the tag handler delegate. |
applyAttachedObject, getAttachedObjectHandlerHelper, getForapply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributesgetAttribute, getRequiredAttribute, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyAttachedObject, getForpublic ConverterHandler(ConverterConfig config)
config - converter config where the converter Id is taken from.protected TagHandlerDelegate getTagHandlerDelegate()
DelegatingMetaTagHandlerGet 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.
getTagHandlerDelegate in class DelegatingMetaTagHandlerpublic java.lang.String getConverterId(FaceletContext ctx)
The converter Id is taken from the attribute "converterId"
ctx - facelet context used to resolve the converter Id from an attribute.