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

Ramon Leon rleon at insario.com
Wed Feb 22 17:15:16 UTC 2006


> 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.
> 

For all you new guys, you should really start using the Canvas API right
off the bat, it's much easier to use and much more consistent than the
old HtmlRendering API.

The above would be something like...

 renderContentOn: html
 	html text: 'foo = ', (foo asString); break.
 	(html anchor) 
          callback: [self setfoo];
          text: 'set foo'.
	html break.


More information about the Seaside mailing list