com.sun.facelets.tag.jsf.core
Class ConvertNumberHandler

java.lang.Object
  extended by com.sun.facelets.tag.TagHandler
      extended by com.sun.facelets.tag.MetaTagHandler
          extended by com.sun.facelets.tag.jsf.ConvertHandler
              extended by com.sun.facelets.tag.jsf.core.ConvertNumberHandler
All Implemented Interfaces:
FaceletHandler

public final class ConvertNumberHandler
extends ConvertHandler

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

See tag documentation.

Version:
$Id: ConvertNumberHandler.java,v 1.3 2005/08/24 04:38:49 jhook Exp $
Author:
Jacob Hookom

Field Summary
 
Fields inherited from class com.sun.facelets.tag.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)
          Extend this method in order to add your own rules.
protected  void setAttributes(FaceletContext ctx, Object obj)
          Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.
 
Methods inherited from class com.sun.facelets.tag.jsf.ConvertHandler
apply
 
Methods inherited from class com.sun.facelets.tag.TagHandler
findNextByType, getAttribute, getRequiredAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

Overrides:
createConverter in class ConvertHandler
Parameters:
ctx - FaceletContext to use
Returns:
Converter instance, cannot be null
Throws:
FacesException
javax.el.ELException
FaceletException
See Also:
NumberConverter, com.sun.facelets.tag.jsf.ConverterHandler#createConverter(com.sun.facelets.FaceletContext)

setAttributes

protected void setAttributes(FaceletContext ctx,
                             Object obj)
Description copied from class: MetaTagHandler
Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.

Overrides:
setAttributes in class MetaTagHandler

createMetaRuleset

protected MetaRuleset createMetaRuleset(Class type)
Description copied from class: MetaTagHandler
Extend this method in order to add your own rules.

Overrides:
createMetaRuleset in class ConvertHandler
Returns:


Copyright © 2005 All Rights Reserved.