[Seaside] defaultButton method doesn't seem to be called by WAFormDecoration

Lukas Renggli renggli at gmail.com
Mon May 3 17:05:16 UTC 2010


On 3 May 2010 19:00, Andy Burnett <andy.burnett at knowinnovation.com> wrote:
> The Seaside book says:
> "The component that a WAFormDecoration decorates must implement the method
> WAFormDecoration>>defaultButton, which returns the string/symbol of the
> default button".
> I interpreted this to mean that I needed to create a defaultButton method in
> the e.g. ContactView component, and that it should return eg. #cancel.
>  However, the method never seems to be called. Has this changed in 3.0
> beta1?  Just curious.

It should be called when you submit the form without clicking on a
button, e.g. by pressing enter in a #textInput field.

Lukas

-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside mailing list