[Seaside] Bug report in Live update
Avi Bryant
avi at beta4.com
Tue Oct 26 14:11:49 CEST 2004
On Oct 4, 2004, at 9:52 PM, Michel Bany wrote:
> I spotted a weird bug in the live update feature for <select>.
>
> In method #selectFromList:selected:callback:labels:liveCallback: the
> collection
> in the first argument is expected to be indexed.
> However, if the collection supplied by the sender is not indexed, the
> situation is hardly debugable.
> It took me a couple of hours to spot it.
> You will be able to see the effect for yourself if you change the test
> case WALiveRequestTest and
> supply #(a b c) asSet rather than #(a b c) for the collection.
Thanks, Michel. I've adopted your suggested fix.
Had you been using Squeak, this would have been much quicker to
discover:
"#(1 2 3) asSet at: 1" gives "Error: Instances of Set are not
indexable".
Avi
More information about the Seaside
mailing list