[Seaside] cancel button in canvas

Lukas Renggli renggli at gmail.com
Wed Apr 19 13:19:58 UTC 2006


> i am looking for an equivalent of cancelButtonWithAction:... in canvas.
> Do I use a submitButton and register a callback by hand?

I guess the reason this is missing, is that nobody ever needed it. In
my opinion, the need of a cancel-callback is a sign of a code-smell
;-)

However you can add a method like the following one, to get the
desired behavior:

WASubmitButtonTag>>cancelCallback: aBlock
	self attributes at: 'name' put: (canvas callbacks
registerCancelActionCallback: aBlock)

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list