I stumbled over the following code (lines 82ff of org.apache.myfaces.renderkit.html.HtmlRendererUtils):

//request parameter not found, nothing to decode - set submitted value to empty
           //if the component has not been disabled
           if(!isDisabledOrReadOnly(component))
           {
((EditableValueHolder) component).setSubmittedValue( RendererUtils.EMPTY_STRING );
           }


The whole else branch is for components like checkboxes or radiobuttons where no value is submitted if they are not checked. But I could not find a reason for why submittedValue is set to empty string. IMHO line 86 should be

               ((EditableValueHolder) component).setSubmittedValue(null);

So what am I missing here?

Oliver


--
Oliver Rossmueller
Software Engineer and IT-Consultant
Hamburg, Germany
http://www.rossmueller.com

Reply via email to