h:selectBooleanCheckbox stays checked after page reloads

389 Views Asked by At

I have come across some small but annoying problem when developing an application using JSF 2.2.

On my .xhtml page I have h:dataTable and one of it's columns consists of h:selectBooleanChecbox objects. It doesn't really matter what this checkbox do, but my problem is that when I check one or more checkboxes and then reload the page in the browser, the checkboxes I've previosly ticked stays checked, what is of course not what I expect to happen.

My h:selectBooleanCheckbox is like following:

<h:selectBooleanCheckbox  disabled="${firstLaunchBackingBean.disableFirstPhaseForm}" onselect="#{firstLaunchBackingBean.addSelectedEmail(item)}">
                        <f:ajax render="@this" execute="@this"/>
                    </h:selectBooleanCheckbox>

I also have to mention that my backing bean is conversation scoped, but I don't know if it has anything to do with my problem.

0

There are 0 best solutions below