Form not getting submitted for first time I check the checkbox
843842Mar 8 2006 — edited Mar 9 2006Hi there,
I have a datatable which has checkboxes column and names column. I grabbed the code from Core Java Server Faces to remove the names by checking the checkboxes. So when I click the checkbox, it should submit the form and register its id in the bean, But it doesn't do it for the first time I check the box. The form gets submitted only when I click the check box once and then click somewhere on the page. That's a weird behaviour. Usually when I say onChange=this.form.submit() on any other field like selectOneListBox,radio button, etc, it submits immediatly. But in datatable, it is behaving strange by not submitting the form as soon as the check the checkbox. Can somebody please help me with this My tag looks like this
<h:selectBooleanCheckbox styleClass="selectBooleanCheckbox" id="checkbox1" value="#varsubscriptionList.selectToRemove}" onchange="this.form.submit()"></h:selectBooleanCheckbox>
Thanks for any feedback