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

Dmitry Dorofeev dima-sender-3c337a at yasp.com
Wed Feb 22 15:05:59 UTC 2006

Basically never use call while you are rendering.
I.e. inside renderContentOn:
Use call as 'action' for some link or form processing only.


Richard Huxton wrote:
> I've tried to simplify this as much as possible. A call/answer works 
> first time I use it in a session, but not the second.
> New class (will eventually be a form)...
> WAComponent subclass: #ArchDummyEditor
> ArchDummyEditor >> renderContentOn: html
>   html anchorWithAction: [ self answer: 'one' ] text: 'link one'.
>   html anchorWithAction: [ self answer: 'two' ] text: 'link two'.
> Then hack WATaskTest adding two inst vars (dummy foo)...
> WATaskTest >> initialize
>   dummy := ArchDummyEditor new.
> WATaskTest >> foo: f
>   foo := f.
> WATaskTest >> renderContentOn: html
>   self foo: (self call: dummy)
>   html text: 'foo = ',foo; break
> Go into the seaside test area, select the task test, click "link one" - 
> it works, I get "foo = one" on-screen.
> Select the task test again, click "link two" - Internal Server Error... 
> MessageNotUnderstood: UndefinedObject>>reset. No "debug" link on the 
> screen.
> I've added "Transcript show:"s and both #foo and #renderContentOn are 
> completing. I can't find what is being sent "reset" - the message finder 
> lists hundreds of classes implementing it but not mine or Seaside's 
> (afaict).
> Anyone got a clue-stick handy?

More information about the Seaside mailing list