[Seaside] checkbox callbacks

Alexander Lazarević laza at blobworks.com
Sat Sep 24 17:31:14 UTC 2011


Hi!

I'm using something like the following in my code:

renderContentOn: html
	| id |
	html form: [
		id := html nextId.
		html checkbox
			id: id;
			onChange: (html jQuery id: id) load serializeForm;
			value: self isChecked;	
			callback: [:value | value inspect].
		html text: 'Check me'.
		id := html nextId.
		html checkbox
			id: id;
			onChange: (html jQuery id: id) load serializeForm;
			value: self isChecked2;	
			callback: [:value | value inspect].
		html text: 'Check me 2'.
	]

I'm surprised to see that both callbacks get triggered even if I only
check one checkbox. Is this on purpose and expected? According to
Metacello I'm using Seaside 3.0.6

Alex


More information about the seaside mailing list