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

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.ConvertNumberHandler
All Implemented Interfaces:
AttachedObjectHandler, FaceletHandler, ValueHolderAttachedObjectHandler

@JSFFaceletTag(name="f:convertNumber",
               bodyContent="empty",
               converterClass="javax.faces.convert.NumberConverter")
public final class ConvertNumberHandler
extends ConverterHandler

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

See tag documentation.

Version:
$Id: ConvertNumberHandler.java 1188694 2011-10-25 15:07:44Z struberg $
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
ConvertNumberHandler(ConverterConfig config)
           
 
Method Summary
protected  Converter createConverter(FaceletContext ctx)
          Returns a new NumberConverter
protected  MetaRuleset createMetaRuleset(Class type)
           
 void setAttributes(FaceletContext ctx, Object obj)
           
 
Methods inherited from class javax.faces.view.facelets.ConverterHandler
getConverterId, 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
 
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

ConvertNumberHandler

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

createConverter

protected Converter createConverter(FaceletContext ctx)
                             throws FacesException,
                                    javax.el.ELException,
                                    FaceletException
Returns a new NumberConverter

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

setAttributes

public void setAttributes(FaceletContext ctx,
                          Object obj)
Overrides:
setAttributes in class DelegatingMetaTagHandler

createMetaRuleset

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


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