[Seaside] Dumb newbie problem with repeating a call/answer

Dmitry Dorofeev dima-sender-3c337a at yasp.com
Wed Feb 22 16:29:57 UTC 2006


It works becouse your call is actually performed inside a callback/action
sequence which is how it supposed to be.

Richard Huxton wrote:
> Dmitry Dorofeev wrote:
> 
>> Basically never use call while you are rendering.
>> I.e. inside renderContentOn:
>> Use call as 'action' for some link or form processing only.
> 
> 
> Thanks Dmitry - that does the trick. Quick answer!
> 
> 
> For the record, if I further change WATaskTest...
> 
> renderContentOn: html
>     html text: 'foo = ', (foo asString); break.
>     html anchorWithAction: [self setfoo] text: 'set foo'; break.
> 
> setfoo
>   Transcript show: 'setfoo...'; cr.
>   self foo: (self call: dummy).
> 
> this works fine.
> 


More information about the Seaside mailing list