public class ConverterTagHandlerDelegate extends TagHandlerDelegate implements ValueHolderAttachedObjectHandler
Will only set/create Converter is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree.
Constructor and Description |
---|
ConverterTagHandlerDelegate(ConverterHandler delegate) |
Modifier and Type | Method and Description |
---|---|
void |
apply(FaceletContext ctx,
UIComponent parent)
Set Converter instance on parent ValueHolder if it's not being restored.
|
void |
applyAttachedObject(FacesContext context,
UIComponent parent) |
protected Converter |
createConverter(FaceletContext ctx)
Create a Converter instance
|
MetaRuleset |
createMetaRuleset(Class type) |
String |
getFor() |
public ConverterTagHandlerDelegate(ConverterHandler delegate)
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
createConverter
.apply
in class TagHandlerDelegate
IOException
protected Converter createConverter(FaceletContext ctx)
ctx
- FaceletContext to usepublic MetaRuleset createMetaRuleset(Class type)
createMetaRuleset
in class TagHandlerDelegate
public void applyAttachedObject(FacesContext context, UIComponent parent)
applyAttachedObject
in interface AttachedObjectHandler
public String getFor()
getFor
in interface AttachedObjectHandler
Copyright © 2021 The Apache Software Foundation. All rights reserved.