Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Form not getting submitted for first time I check the checkbox

843842Mar 8 2006 — edited Mar 9 2006
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2006
Added on Mar 8 2006
1 comment
123 views