org.apache.myfaces.view.facelets.tag.jsf.core
Class ConvertDelegateHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by javax.faces.view.facelets.MetaTagHandler
          extended by javax.faces.view.facelets.DelegatingMetaTagHandler
              extended by javax.faces.view.facelets.FaceletsAttachedObjectHandler
                  extended by javax.faces.view.facelets.ConverterHandler
                      extended by org.apache.myfaces.view.facelets.tag.jsf.core.ConvertDelegateHandler
All Implemented Interfaces:
AttachedObjectHandler, FaceletHandler, ValueHolderAttachedObjectHandler

@JSFFaceletTag(name="f:converter",
               bodyContent="empty",
               tagClass="org.apache.myfaces.taglib.core.ConverterImplTag")
public final class ConvertDelegateHandler
extends ConverterHandler

Register a named Converter instance on the UIComponent associated with the closest parent UIComponent custom action.

See tag documentation.

Version:
$Id: ConvertDelegateHandler.java 1187700 2011-10-22 12:19:37Z bommel $
Author:
Jacob Hookom

Field Summary
 
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
ConvertDelegateHandler(ConverterConfig config)
           
 
Method Summary
protected  Converter createConverter(FaceletContext ctx)
          Uses the specified "converterId" to pull an instance from the Application
protected  MetaRuleset createMetaRuleset(Class type)
           
 String getConverterId(FaceletContext ctx)
           
 
Methods inherited from class javax.faces.view.facelets.ConverterHandler
getTagHandlerDelegate
 
Methods inherited from class javax.faces.view.facelets.FaceletsAttachedObjectHandler
applyAttachedObject, getAttachedObjectHandlerHelper, getFor
 
Methods inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributes
 
Methods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.faces.view.AttachedObjectHandler
applyAttachedObject, getFor
 

Constructor Detail

ConvertDelegateHandler

public ConvertDelegateHandler(ConverterConfig config)
Parameters:
config -
Method Detail

createConverter

protected Converter createConverter(FaceletContext ctx)
                             throws FacesException,
                                    javax.el.ELException,
                                    FaceletException
Uses the specified "converterId" to pull an instance from the Application

Throws:
FacesException
javax.el.ELException
FaceletException
See Also:
Application.createComponent(java.lang.String), org.apache.myfaces.view.facelets.tag.jsf.ConverterHandler#createConverter(javax.faces.view.facelets.FaceletContext)

createMetaRuleset

protected MetaRuleset createMetaRuleset(Class type)
Overrides:
createMetaRuleset in class DelegatingMetaTagHandler

getConverterId

public String getConverterId(FaceletContext ctx)
Overrides:
getConverterId in class ConverterHandler


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.