Weird behavior with select

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

Weird behavior with select

Damien Cassou
Try the following code:

renderContentOn: html
   html form: [
        html select
                        list: (1 to: 14);
                        selected: list1  asString";
                        callback: [:val | nil]".
                       
        html submitButton: 'Ok']


when the #callback: is commented as it is here, selecting some values
in the list produces weird results. For example:

- selecting '3' and pressing OK opens the configure dialog
- '4' toggles the halos
- '5' produces a walkback
- '6' displays the memory footprint

What's the reason behind this?

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Weird behavior with select

Lukas Renggli
There is an explanation in the following bug report:

    http://code.google.com/p/seaside/issues/detail?id=279

I don't think we are going to fix this in Seaside 2.8 though, as a
workaround define an empty callbacks; or better yet use Seaside 3.0.

Lukas

2010/1/17 Damien Cassou <[hidden email]>:

> Try the following code:
>
> renderContentOn: html
>   html form: [
>        html select
>                        list: (1 to: 14);
>                        selected: list1  asString";
>                        callback: [:val | nil]".
>
>        html submitButton: 'Ok']
>
>
> when the #callback: is commented as it is here, selecting some values
> in the list produces weird results. For example:
>
> - selecting '3' and pressing OK opens the configure dialog
> - '4' toggles the halos
> - '5' produces a walkback
> - '6' displays the memory footprint
>
> What's the reason behind this?
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Lambdas are relegated to relative obscurity until Java makes them
> popular by not having them." James Iry
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside