Description
There are several way to associated a converter with a component that is a value holder. The converter can be defined as a top-level component where the component type corresponds to the converter-id. Or, the generic f:converter can be associated to a converter using the converterId attribute.
Consider:
<component jsfid="f:convertBoolean" componentType="javax.faces.Boolean"/>
<component jsfid="testlabel1" extends="h:outputLabel">
<attributes>
<set name="value" value="true" />
</attributes>
<converter jsfid="f:convertBoolean"/>
</component>
This scenario doesn't work:
<component jsfid="testlabel2" extends="h:outputLabel">
<attributes>
<set name="value" value="true" />
</attributes>
<converter jsfid="f:converter">
<attributes>
<set name="converterId" value="javax.faces.Boolean"/>
</attributes>
</converter>
</component>