[Seaside] Cancel Button and

Reg Krock rkrock3 at cogeco.ca
Fri Feb 11 21:09:23 CET 2005


I am working through Lukkas Renggli's very good tutorial and
presentation on Seaside in VW. Thank you very much Lukkas for all the
time and effort you put into the presentation and tutorial. It is very
helpful for a Seaside newbie.

I am working through an example on entering the ticket information.

The form has an input field, an OK button, and a Cancel button.

The input field is coded with a callback:

	html
		text: 'Required Places';
		space;
		textInputWithCallback: [:value | self
			 requestedTickets: value asNumber]

The Cancel button is also coded with a callback.

	html submitButtonWithAction: [
		self answerZeroTickets] text: 'Cancel'

The way my code works is if an invalid value had been entered, the
user gets an error message before the cancel button takes effect.

The reason is that the input field callback is handled before the
cancel callback is handled.

I have ? questions:
1) Is this normal web behaviour?
2) If it is not normal web behaviour, is there any way for the field
callback to know that the cancel has also been pressed.

Thanks for your help.

Reg Krock



More information about the Seaside mailing list