[Seaside] triggerFormElement: and checkboxes?

Mart-Mari Breedt breedt_m at aircom.co.za
Wed Aug 23 08:03:25 UTC 2006


Hi,

I wondering, has anyone else also experienced that triggerFormElement:
doesn't work with checkboxes?

If you change "SUFormTest>>renderCheckBoxOn: html" to:

renderCheckBoxOn: html
	self
		renderLabel: 'Check-Box'
		control: [ :fid :mid |
			html checkbox
				id: 'tempCB';
				value: checkBox;
				callback: [ :value | checkBox := value
];
				onClick: (html updater
					id: mid;
					triggerFormElement: 'tempCB';
					callback: [ :r | r render:
checkBox ]) ]
		model: checkBox
		on: html

it doesn't work. While a similar kind of change to
"SUFormTest>>renderSelectListOn: html" to:

renderSelectListOn: html
	self
		renderLabel: 'Select-List'
		control: [ :fid :mid |
			html select
				id: 'tempSelect';
				list: (1 to: 9);
				selected: selectList;
				callback: [ :value | selectList := value
];
				onChange: (html updater
					id: mid;
					triggerFormElement:
'tempSelect';
					callback: [ :r | r render:
selectList ]) ]
		model: selectList
		on: html

does work.

Am I doing something wrong?

Thanks,

Mart-Mari



More information about the Seaside mailing list