[Seaside] optionGroup -> callback does not fire

Sabine Knöfel sabine.knoefel at gmail.com
Sun Apr 21 11:15:03 UTC 2013


Hi Johan,

yes. I was just anwering that I added the onChange: at the wrong place.

Thank you.
Sabine

On Sun, Apr 21, 2013 at 1:12 PM, Johan Brichau <johan at inceptive.be> wrote:

> Hi Sabine,
>
> You mean you want the callback to fire when the selection has changed?
> You need to intercept the change event and trigger the callback
> serialization:
>
> html select
>         onChange: (html jQuery ajax serializeThis);
>         callback: ...
>
> cheers,
> Johan
>
> On 21 Apr 2013, at 12:24, Sabine Knöfel <sabine.knoefel at gmail.com> wrote:
>
> > I want to use an optionGroup and copied the code from
> > WAInputElementContainer>>renderNestedSelectionOn:.
> > The callback does not fire. See below.
> > Is this a bug?
> > How can I force the callback to fire?
> >
> > Sabine
> >
> > |selectTag |
> > selectTag := html select.
> > selectTag
> >       callback: [ :value | value inspect ];
> >       selected: 'Lisp';
> >       with: [#(#('Functional' #('Haskell ' 'Lisp' 'ML')) #('Dataflow'
> #('G' 'Max'
> > 'Prograph')))
> >       do: [ :list |
> >               html optionGroup
> >                       label: list first;
> >                       with: [
> >                               list second
> >                                       do: [ :each |
> >                                               html option
> >                                                       value: each with:
> selectTag;
> >                                                       with: each ] ] ] ].
> >
> >
> >
> > --
> > View this message in context:
> http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815.html
> > Sent from the Seaside General mailing list archive at Nabble.com.
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> 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/20130421/2b2a76d3/attachment-0001.htm


More information about the seaside mailing list