Hi all,
I apologize if this question is answered elsewhere but I didn't have any luck with the mailing list archive, JIRA, or google.
I have an array of SelectItem objects with the value set to a Java 5
enumeration. If I register a custom converter using
converter-for-class, I'd expect to be able to bind the SelectItem array
to a selectOneMenu and the converter would be called automatically.
Instead, my converter is never called. Further,
Application.createConverter is never called either (I set a breakpoint
there). I get the following exception:
java.lang.IllegalArgumentException: Value is no String and component someClientId does not have a Converter
I looked at the code and it seems that
RendererUtils.getConvertedStringValue does not check to see if a class
converter exists. It only uses the converter passed to it (which
looking in HtmlRendererUtils, is the converter associated with the
UIComponent).
I know there was some mention of this in MYFACES-131 but it was closed
as a duplicate with no reference (at least that I could find) to the
original bug.
Am I missing something or should this be filed as a bug?
Thanks,
Michael
- SelectItem and Converters Michael
- Re: SelectItem and Converters Mike Kienenberger
- Re: SelectItem and Converters Caroline Jen
- Re: SelectItem and Converters Dennis Byrne
- Re: SelectItem and Converters Michael
- Re: SelectItem and Converters Mike Kienenberger
- Re: SelectItem and Converters Michael

