[Seaside] Field validation?

Chad Nantais chad at clearwaterassociates.ca
Tue May 30 20:08:49 UTC 2006


Have a look at the store example in Seaside-Examples-Store.
Specifically, have a look at the class comments in WAStoreCreditCard.
They may be a good starting point to guide your thinking on
server-side model validation.

Hope this helps,


On 5/30/06, Boris Popov <boris at deepcovelabs.com> wrote:
> Morning,
> The round of questioning continues. How would I go about doing field
> validation nicely? Say, an amount field that contains a valid description of
> a numeric amount. I can think of three ways of doing it:
> - Client side JavaScript: is there any abstraction model for this in Seaside
> or Scriptaculous?
> - Server side processing: could validate the fields in the form submit
> callback and return back to the form with some feedback
> - AJAX: could validate the field on the server as soon as user leaves it,
> any good examples of this?
> Thanks!
> -Boris
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> boris at deepcovelabs.com
> 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.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the Seaside mailing list