<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.
Thank Lukas.
The new metod now is:
frsCnt:= html select id: (
idFrstCnt:= html
nextId);
size:
4;
beMultiple;
list:
(1 to:
100);
selected: mutliSelectList;
callback: [
:value | mutliSelectList :=
value ];
onChange:(
html updater
id: idScnCnt;
triggerForm:
fid;
callback: [ :r
| self creaScnCnt: html.
]).
rfrScnCnt:=
html span class: 'dario' ; id: idScnCnt;
with:'PLUTO'.
and the creaScnCnt is
creaScnCnt: html
| mid1 |
mid1:= html
nextId.
scnCnt := html select id: ( html nextId)
;
size:
4;
beMultiple;
list: self
listaScn;
selected: scnMultiSelectList;
callback: [ :value | scnMultiSelectList := value
];
onChange: (html
updater
id: idTrzCnt
;
triggerForm:
fid;
callback: [ :r | self creaTrzCnt: html.
)].
rfrTrzCnt:= html span class: 'dario'
; id: idTrzCnt; with:'Archimede'.
In this case all functions but when i select the Toggle Halos link the
Slave Multi-Select-List is lose.
Is this correct operation ?
Cheers,
Dario
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside