submit inside SUEvaluator callback problem

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

submit inside SUEvaluator callback problem

Burella Juan M.
I'm trying the following code, but isn't working, the halt is ignored:

renderContentOn: aRenderer
aRenderer form
        id: 'formId';
        with: [
            aRenderer select
                id: 'testSelect';    
                list: #(1 2 3 4 5 6 7 8);
                onChange: ( 
( aRenderer evaluator
callback: [: script | 
script element id: 'updaterId'; 
update: [: r | 
r submitButton 
callback: [ self halt ]; 
with: 'hola'  
].
]
                     ) 
).
        aRenderer div id: 'updaterId'
].

 I've tried with the form inside the update block, and it worked fine, but what I really need is the form enclosing the code like above. Any tips?
I'm using 
  Seaside2.8a1-pmm.582
  Scriptaculous-lr.245

Cheers

Juan M.


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

Re: submit inside SUEvaluator callback problem

Lukas Renggli
>             aRenderer select
>                 id: 'testSelect';
>                 list: #(1 2 3 4 5 6 7 8);

Give the select list an empty callback block [ :value | ]. This seems
to be a bug in callback processing of select lists. I will report it
in the bug-tracker as soon as I fully understand the problem.

Cheers,
Lukas

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

Re: submit inside SUEvaluator callback problem

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

On Mon, Jan 12, 2009 at 10:44 PM, Lukas Renggli <[hidden email]> wrote:

>>             aRenderer select
>>                 id: 'testSelect';
>>                 list: #(1 2 3 4 5 6 7 8);
>
> Give the select list an empty callback block [ :value | ]. This seems
> to be a bug in callback processing of select lists. I will report it
> in the bug-tracker as soon as I fully understand the problem.
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
>



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