[Seaside] Nested Multi-Select-List.

Lukas Renggli renggli at gmail.com
Sun Sep 24 08:43:16 UTC 2006

>          "  create Slave Multi-Select-List before Master Multi-Select-List
> change "
>          scnCnt:=  html select id: idScnCnt;
>                  size: 9;
>                 beMultiple;
>                 list: mutliSelectList;
>                  selected: mutliSelectList2;
>                 callback: [ :value | mutliSelectList2 := value ];
>                onChange: (html updater
>                      id: mid2;
>                      triggerForm: fid;
>                      callback: [ :r | r render: mutliSelectList2  ]).
>      html div class: 'model'; id: mid2; with: mutliSelectList2.
>     ].
>  ].

That's not the way Seaside works. You cannot instantiate tags and
reuse them multiple times in different rendering contexts.

So to make your example works you need to split you code into multiple
rendering methods. This is good practice anyway, it is painful trying
to understand the code when written in one huge method like this. So
instead of

     scnCnt:=  html select id: idScnCnt;

you create a method that renders this part and call it from your
callback blocks.


Lukas Renggli

More information about the Seaside mailing list