You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Lars Ködderitzsch (JIRA)" <de...@myfaces.apache.org> on 2007/06/06 16:07:26 UTC
[jira] Created: (MYFACES-1659) Converter properties for id-based
converters not properly handled
Converter properties for id-based converters not properly handled
-----------------------------------------------------------------
Key: MYFACES-1659
URL: https://issues.apache.org/jira/browse/MYFACES-1659
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.1.5
Reporter: Lars Ködderitzsch
I use a generic converter which is instanciated multiple times, using different converter properties for each instance which controls the behaviour. See sample below.
The bug is that the first converter is being configured with the properties of the second converter.
This happens because in the converter configurations in org.apache.myfaces.application.ApplicationImpl are keyed by the converter class, not by the converter id.
Snip from faces-config.xml:
<converter>
<converter-id>userTypeConverter</converter-id>
<converter-class>com.mazdaeur.crsadmin.converters.CommonsEnumConverter</converter-class>
<property>
<property-name>enumClass</property-name>
<property-class>java.lang.String</property-class>
<default-value>com.mazdaeur.crs.model.UserType</default-value>
</property>
</converter>
<converter>
<converter-id>userSalutationTypeConverter</converter-id>
<converter-class>com.mazdaeur.crsadmin.converters.CommonsEnumConverter</converter-class>
<property>
<property-name>enumClass</property-name>
<property-class>java.lang.String</property-class>
<default-value>com.mazdaeur.crs.model.UserSalutationType</default-value>
</property>
</converter>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.