[Seaside] defaultAction:

Avi Bryant avi.bryant at gmail.com
Wed Mar 16 14:11:59 CET 2005

On Wed, 16 Mar 2005 07:58:01 -0500, Bany, Michel <mbany at cincom.com> wrote:

> This gave me the idea to reimplement defaultAction: so that it provides
> both techniques.
> defaultAction: actionBlock
>         self
>                 inputWithType: 'hidden'
>                 named: (self callbacks registerDefaultActionCallback:
> actionBlock).
>         self submitButtonWithAction: actionBlock image: self
> transparent1X1Form.
> With this new implementation, the first example (above) works as
> expected
> and equally with all three browsers.

Ah, that's interesting, thanks.  The pain of multi-browser support...
Since this will only work if placed at the top of the form, however, I
suggest that we deprecate #defaultAction: as a standalone method, and
encourage #formWithDefaultAction:do: instead.


More information about the Seaside mailing list