Hi Renzo,

My guess is that on postback, calling resultBean.getUiCheckedSelector() is always returning false. Because of this, if the chekcbox value being posted from the browser is "true" (checked), then myfaces thinks value is changed, etc.

Perhaps resultBean is request-scoped, ie a new instance is being created on postback, with a default value of false for the uiCheckedSelector?

Regards,

Simon

Renzo Tomaselli wrote:
Hi, I have a selectBooleanCheckbox inside the "header" facet of a Tomahawk DataTable, which itself is enclosed in a form.
It is written like:

<t:selectBooleanCheckbox
    value="#{resultBean.uiCheckedSelector}"
    onclick="submit()"
    immediate="true"
    valueChangeListener="#{resultBean.checkedChanged}"/>

now I noticed (from Eclipse debugger) that the listener is always called after checking, never called after unchecking.
The value setter is called regularly in both cases.
Is it a bug or is it done on purpose ? Is there anything I miss about being notified when unchecking ?
-- Renzo


Reply via email to