Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.4
-
None
-
None
Description
This patch fixes the following situation:
- A converter is bound in faces-config.xml to an interface type (ex. EnumCoded).
- There is an enum class that implements EnumCoded, like this:
public enum PickListActionType implements EnumCoded
{ ..... etc... }- There is a converter called a GenericEnumTypeConverter, which knows how to deal with these and is declared like this:
<converter>
<converter-for-class>EnumCoded</converter-for-class>
<converter-class>GenericEnumTypeConverter</converter-class>
</converter>
- Right now the converter picked by MyFaces is EnumConverter instead of my GenericEnumTypeConverter, b/c the fact that my target class is an enum takes precedence over the fact that it implements EnumCoded interface. This is incorrect.
This patch fixes the problem.