liveCallback on multiple select

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

liveCallback on multiple select

Burella Juan M.
Hello
   
I have a problem with a liveCallback on a multiple select ( WASelectTag ). When any elements are selecteds on this tag the liveCallback block is evaluated with only one element instead of several.
Any ideas?


I´ve attached an example to reproduce the behavior.
-------------------------------------------
renderContentOn: aRenderer

aRenderer form:[
aRenderer select
list: #(0 1 2 3 4 5 6 7 8 9);
beMultiple;
selected: #(0 7);
labels: [:ea | ea asString ];
callback: [ : aNumbers | selecteds := aNumbers ];
liveCallback: [: aNumbers : html | html div id: 'xx'; with:[html render: aNumbers] ].

aRenderer render: selecteds.
aRenderer submitButton.
].
aRenderer div id: 'xx'; with: ''.


----------------

rendererClass
^WAAsyncRenderCanvas



- I add WAAsyncScripts library
- I'm using Squeak 3.8/Seaside2.7a1-mb.210/SeasideAsync-mb.59


Thanks in advance.
Juan Matías Burella

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: liveCallback on multiple select

Michel Bany

On 28 Mar 2007, at 01:22 , Burella Juan M. wrote:

Hello
   
I have a problem with a liveCallback on a multiple select ( WASelectTag ). When any elements are selecteds on this tag the liveCallback block is evaluated with only one element instead of several.
Any ideas?

Hi Juan Matias, 
I added this missing functionality to SeasideAsync-mb.60.
Thanks in advance for your feedback.
Enjoy,
Michel.



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside