This content has been marked as final.
Show 4 replies
-
1. Re: Seam's @Converter on superclasses doesn't work
pmuir May 20, 2008 12:24 PM (in response to gena)Huh?
Seam registers the converter if the class is annotated @Name @Converter - and you can't annotate an abstract class @Name.
-
2. Re: Seam's @Converter on superclasses doesn't work
gena May 20, 2008 5:35 PM (in response to gena)I mean, the converters
forClass
target is a parent of some inheritance hierarchy. It's possible to define more special converters on a children, but the default behaviour of JSF is try to find the first proper converter, if any, by inheritance.The SeamApplication.createConverter method tries to find the converter by targetClass. If it doesn't find, it delegates the work to the JSF ApplicationImpl (SeamApplication line 126)
String name = Init.instance().getConvertersByClass().get(targetClass); if (name!=null) { return (Converter) Component.getInstance(name); } return application.createConverter(targetClass); }
The ApplicationImpl is than smart enough to resolve the superclass converter, but there is no converter known to JSF (only to Seam).
-
3. Re: Seam's @Converter on superclasses doesn't work
pmuir May 20, 2008 5:55 PM (in response to gena)Got it. Please file an issue in JIRA.
-
4. Re: Seam's @Converter on superclasses doesn't work
gena May 20, 2008 10:49 PM (in response to gena)