h:selectBooleanCheckbox

when does the <h:selectBooleanCheckbox > valueChangeListener fire?

If i have some thing as follows

<h:selectBooleanCheckbox valueChangeListener="#{SomeClass.valueChanged}" immediate="true" onchange="this.form.submit();" />

I was expecting my valueChanged() to be called everytime I select/deselect the checkbox, but this isnt the case?

[372 byte] By [Ctrl.Alt.Del] at [2007-9-30 19:44:58]
# 1

Hey,

I have a similar query. I am using a dataTable component that has checkboxes as a column in it. These checkboxes have been assigned a value changes event handler. When i check a box, nothing happens. But when I click a button, the value changed event handler is called, but the action handler for that button is not called.

any ideas why?

Manasee.

Mahajan at 2007-7-7 0:29:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Try to add a "value" attribute to your component linked to a property of your backing bean.
jack.first at 2007-7-7 0:29:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
My problem was similar. I had a onchange="this.form.submit();" and it would not register in IE that it has changed until I changed the checkbox value, then clicked somewhere on the screen. I found that changing the onchange to onclick solves this problem.
javawebdeveloper at 2007-7-7 0:29:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...