The Common-Controls Tag Library

<convert:converter>

Register a named Converter instance on the UIComponent associated with the closest parent UIComponent custom action.
must be nested within a ConversionSupportTag

Tag class: ConverterTag
Tei class: ConverterTei
 

[ Syntax ]

Standard Syntax
<convert:converter
converterId = "String"
/>
 

[ Attributes ]

AttributeTypeDescriptionReq.RTExp
converterIdString Converter identifier of the Converter instance to be created and registered.

[ Example ]

Usage of a named (javax.faces.ByteSize) converter


<%@ taglib uri="http://struts.apache.org/tags-html"               prefix="html" %>
<%@ taglib uri="http://www.common-controls.com/cc/tags-forms"      prefix="forms" %>
<%@ taglib uri="http://www.common-controls.com/cc/tags-converter"   prefix="convert" %>

<html:form action="/sample809/converterdemo">

   <forms:form 
      type="edit"
      caption="converter.examples.caption" 
      formid="frmEdit" 
      width="550"  
      help="HID-100">


      <forms:text  
         label="form.size"  
         property="bytes" 
         size="20" 
         maxlength="20" 
         required="true"  
         help="HID-101">


         <convert:converter converterId="javax.faces.ByteSize"/>
      </forms:text>

      <forms:buttonsection default="btnSave">
         <forms:button  name="btnSave"    text="button.title.save"    title="button.title.save"/>
      </forms:buttonsection>
   </forms:form>

</html:form>