[Seaside] help with a form

Boris Popov boris at deepcovelabs.com
Tue Oct 31 18:46:10 UTC 2006


If you look at the source of the page you'll notice that #defaultAction
sets up an invisible input that allows one to hit Enter key from within
the form to submit (see WAFormTag>>before), in which case your callback
will run just fine. Can you just call #saveRecord from within the
checkbox callback?

Hope this helps,

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Brian
Brown
Sent: Tuesday, October 31, 2006 10:32 AM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: [Seaside] help with a form

Hello all!

I have the following form defined:

	html form
		defaultAction: [self saveRecord];
		name: 'reviewForm';
		with: [self checkBoxFor: obj on: html]


and checkBoxFor:on:

		html checkbox
			submitFormNamed: 'reviewForm';
			value: object reviewed;
			callback: [:val | reviewValue := val].


When I click on the checkbox, the form is submitted as I expect, but  
saveRecord is never run... Anyone have any ideas?


Thanks!

Brian

_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the Seaside mailing list