[Seaside] Dumb newbie problem with repeating a call/answer
Richard Huxton
dev at archonet.com
Wed Feb 22 14:53:06 UTC 2006
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?
--
Richard Huxton
Archonet Ltd
More information about the Seaside
mailing list