[Seaside] Re: optionGroup -> callback does not fire

Philippe Marschall philippe.marschall at gmail.com
Sun Apr 21 13:27:13 UTC 2013


On Sun, Apr 21, 2013 at 1:12 PM, Sabine Knöfel <sabine.knoefel at gmail.com> wrote:
> Hi Max,
>
> thank you. There is >>beSubmitOnChange.
> But I dont want the whole page to be submitted.
>
> But you gave me the hint!
>
> My error was, that I added onChange AFTER the with: block...and that does
> not work.
>
> This works:
>     theInput1
>         id: mid;
>         selected: self currentDay expensesCountryDay;
>         callback: [ :value | self countryDay: value inspect  ];
>         onChange: (html prototype evaluator
>                         triggerForm: self countryDaySelectionFormID;
>                         return: false);
>         with: [ .....] ].
>
> This doesNOT work
>     theInput
>         id: mid;
>         selected: self currentDay expensesCountryDay;
>         callback: [ :value | self countryDay: value inspect ];
>         with: [ .....  ];
>         onChange:
>                 (html prototype evaluator
>                         triggerForm: self countryDaySelectionFormID;
>                         return: false).

This is a common mistake, I believe we even have a Slime rule for this.

Cheers
Philippe


More information about the seaside mailing list