org.apache.myfaces.tobago.taglib.component
Class ConverterTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.tobago.taglib.component.ConverterTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class ConverterTag
extends TagSupport

Register an Converter instance on the UIComponent associated with the closest parent UIComponent.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ConverterTag()
           
 
Method Summary
 int doStartTag()
          Create a new instance of the specified Converter class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if the UIComponent instance was created by this execution of the containing JSP page.
 void release()
          Release references to any acquired resources.
 void setBinding(String binding)
          The value binding expression to a converter.
 void setConverterId(String converterId)
          The converterId of a registered converter.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterTag

public ConverterTag()
Method Detail

setConverterId

public void setConverterId(String converterId)
The converterId of a registered converter.

Parameters:
converterId - A valid converterId

setBinding

public void setBinding(String binding)
The value binding expression to a converter.

Parameters:
binding - A valid binding

doStartTag

public int doStartTag()
               throws JspException
Create a new instance of the specified Converter class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if the UIComponent instance was created by this execution of the containing JSP page.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException - if a JSP error occurs

release

public void release()

Release references to any acquired resources.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport


Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.