CheckboxGroup ignores converter

View: New views
2 Messages — Rating Filter:   Alert me  

CheckboxGroup ignores converter

by Stefan Bley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There seems to be a bug in CheckboxGroup.
If you assign a custom converter to the checkboxGroup either by converter attribute or <f:converter> tag, it is not used. At least the getAsString() method is not called. getAsObject() is called but then of course the value string is false and the conversion fails.

I verified the converter is okay assigning it to a Listbox. Both getAsString() and getAsObject() are called  properly. I'm using NetBeans 6.1/Woodstock 4.2.

Re: CheckboxGroup ignores converter

by richard ratta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It looks like there is a bug in the logic in the renderer.
If the submitted value is null it does not call the converter,

I believe this is the opposite of what it should be. If the submittedValue
is null, that means that there is no error a conversion may be necessary.

Please file a bug.

-rick

Stefan Bley wrote:

>There seems to be a bug in CheckboxGroup.
>If you assign a custom converter to the checkboxGroup either by converter
>attribute or <f:converter> tag, it is not used. At least the getAsString()
>method is not called. getAsObject() is called but then of course the value
>string is false and the conversion fails.
>
>I verified the converter is okay assigning it to a Listbox. Both
>getAsString() and getAsObject() are called  properly. I'm using NetBeans
>6.1/Woodstock 4.2.
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...