[Seaside] trapping post before fields are applied to an opject

Julian Fitzell jfitzell at gmail.com
Mon Jun 20 15:13:17 UTC 2011

WACancelButtonTag (html cancelButton callback: [ ]...) should do what you're
looking for?


On Mon, Jun 20, 2011 at 4:07 PM, Louis LaBrunda
<Lou at keystone-software.com>wrote:

> Hi All,
> Is there a way to trap the return from a web page before the attributes of
> an object are updated with the values from the web form?  Say one has a
> simple form with some fields that are connected to the attributes of an
> object with #on:of: and two submit buttons, save and cancel.  Normally one
> would make a copy of the object so the original doesn't get modified.  The
> callback on the save button would replace the original with the copy.  The
> callback on the cancel will discard the copy.
> If there is a way to see that the cancel button was clicked BEFORE the
> values of the form fields are applied to the object and stop them from
> being applied, one wouldn't need a copy of the original object.  The
> #on:of:'s could be made to the original object and would be used if the
> save button is clicked and not if the cancel button is clicked.
> Is there a way to do this now?  If not, would it be hard to add?
> Lou
> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon
> mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110620/5b76c551/attachment-0001.htm

More information about the seaside mailing list