SC.confirm(message, BooleanCallback) null Cancel return value

Hello,

In the next piece of code, if I click in “Cancel” button of confirm window, the “value” in execute method return a null value and not a false value but if I click in “OK” button, the return true value. Is it correct or “Cancel” buttom should return a false value ?

SC.confirm("Are you sure ?", new BooleanCallback() {
	public void execute(Boolean value) {
		if (value) {
			fieldsBehavior(FLAG_CANCELAR);
		} else {
			event.cancel();
		}
	}
});

Regards.
Francisco.

That is the correct behavior. The javadocs for these methods have not yet been updated in SmartGWT. From the SmartClient docs for the confirm method :

In contrast, SC.ask has a “No” button too and for this method :

Ok, thanks for reply.