[Seaside] textInput callback is not used

Zirbler cj-bachinger at gmx.de
Mon Feb 9 16:15:17 UTC 2009


Hi,
I'm working with Dolphin and Seaside 2.8 and my question is probably a
newbee querstion. I tried to get an Input field in a html table. The
renderMessage is as below and the rendering looks good. I see the correct
value but if I change the value in the Input field, no callback is used and
the value is not stored. Using the productCount or productEditorDialog the
value changes. Only the textInput does not work.
Any hints,

Thanks
cjb

renderProduct: aProduct asRowOn: html 
	"Render a product line"

	| list |
	list := aProduct productValues.
	html tableData: 
			[list do: [:element | html tableData: element].
			html tableData: 
					[(html anchor)
						callback: [self productCount: aProduct plus: -1];
						with: '-'].
			html tableData: 
					[(html textInput)
						value: aProduct count;
						callback: 
								[:value | 
								Transcript show: value.
								aProduct count: value]	].
			html tableData: 
					[(html anchor)
						callback: [self productCount: aProduct plus: 1];
						with: '+'].
			html tableData: 
					[(html anchor)
						callback: [self productEditorDialog: aProduct];
						with: 'Change']]

End of code
-- 
View this message in context: http://www.nabble.com/textInput-callback-is-not-used-tp21916075p21916075.html
Sent from the Squeak - Seaside mailing list archive at Nabble.com.



More information about the seaside mailing list