checkbox not triggering process value change event

Hi,

I have a checkbox group that is populated from a database field. I have added an event handler for the checkbox group so that I can change component values whenever a checkbox is selected/deselected.

However the problem is that when running my app and ticking/unticking the checkboxes the event handler is not being processed. Is there something I don't know about or is this a bug in creator?

This is the code for my event handler...

publicvoid extras_processValueChange(ValueChangeEvent event){

// TODO: Replace with your code

Object oVar1 = extras.getValue();

//boolean bVar1 = extras.i

if (extras.getSelected() !=null){

String[] extraSelected = (String[]) extras.getSelected();

for (int i=0; i < extraSelected.length; i++){

oVar1 = extraSelected[i];

}

}

}

At this stage I am just testing so I have set a breakpoint at the line Object oVar1 = extras.getValue();

. My checkbox group is named "extras". Why would this not run when changing checkbox values...?

Thanks.

[1514 byte] By [unclechopchop] at [2007-11-26 11:46:26]
# 1

Do you have Auto-Submit on Change selected for the component (Right-click the checkbox component and look at the pop-up menu to ensure that Auto-Submit on change is checked).

If you do, then do you have a Message Group component on the page to report any runtime errors? If there are validation, conversion, or other runtime errors, the process value change method will not get called. Also View Server Log and see if any error messages are getting written to the log when you run the app.

jetsons at 2007-7-7 11:56:56 > top of Java-index,Development Tools,Java Tools...
# 2
thanks, you're right. I set the auto submit on change option and it works now. I thought this option was to submit the form which i didn't want to happen but this is not the case.
unclechopchop at 2007-7-7 11:56:56 > top of Java-index,Development Tools,Java Tools...