I've been trying to find why the h:selectBooleanCheckbox looses it's submit value.

I've found that the decode seems to work fine. The following modification in HtmlCheckBoxRendererBase prints the proper submitted value.
But somehow, in the rendering phase, the submitted value has been set to null again.

If someone has any idea, it would help !

    public void decode(FacesContext facesContext, UIComponent uiComponent) {
        RendererUtils.checkParamValidity(facesContext, uiComponent, null);
        if (uiComponent instanceof UISelectBoolean) {
System.out.print("Going for decode ... ");
            HtmlRendererUtils.decodeUISelectBoolean(facesContext, uiComponent);
System.out.println(((UISelectBoolean)uiComponent).getSubmittedValue());
        } else if (uiComponent instanceof UISelectMany) {
            HtmlRendererUtils.decodeUISelectMany(facesContext, uiComponent);
        } else {
            throw new IllegalArgumentException("Unsupported component class "
                    + uiComponent.getClass().getName());
        }
    }

Thanks,

Sylvain.

Reply via email to