>Does anyone using clay with custom converters?
>I have a label which should get a converter. Tried it this way in clay
>config:
>
>...
><element renderId="2" jsfid="baseLabel">
> <attributes>
> <set name="value" value="#{user.language}" />
> </attributes>
> <element renderId="1" jsfid="f:converter">
> <attributes>
> <set name="converterId" value="language" />
> </attributes>
> </element>
></element>
Try using the converter node under the element. The element and component includes converters, validators, actionListeners, valueChangeListeners use the nested element that points to a top-level definition.
<!ELEMENT element (description*, attributes?, symbols?, converter?, validator*, actionListener*, valueChangeListener*, element*)>
<component jsfid="language" componentType="converter-id-in-faces-config">
<element renderId="2" jsfid="baseLabel">
<attributes>
<set name="value" value="#{user.language}" />
</attributes>
<converter jsfid="language">
<attributes>
</attributes>
</converter>
</element>
Using the generic f:converter and the converterId doesn't work as you would expect even if you use a conveter node. This example should work but doesn't:
<converter jsfid="f:converter">
<attributes>
<set name="converterId" value="language" />
</attributes>
</converter>
I'll see if I can get that one fixed. Please create a JIRA ticket.
Gary
--- Begin Message ---Does anyone using clay with custom converters? I have a label which should get a converter. Tried it this way in clay config:... <element renderId="2" jsfid="baseLabel"> <attributes> <set name="value" value="#{user.language}" /> </attributes> <element renderId="1" jsfid="f:converter"> <attributes> <set name="converterId" value="language" /> </attributes> </element> </element> registered the converter in faces-config.xml. Exception looks like this: ERROR http-8080-Processor25 org.apache.myfaces.application.ApplicationImpl - Undefined component type override ERROR http-8080-Processor25 org.apache.shale.clay.component.chain.CreateComponentCommand - Cannot create Component renderId="1" jsfid="f:converter" componentType="override" extends="f:converter" allowBody="null" facetName="null" javax.faces.FacesException: Undefined component type override Any hints how to use custom converters and clay? Torstensmime.p7s
Description: S/MIME cryptographic signature
--- End Message ---