[Seaside] Help needed for the Back button
radoslav hodnicak
rh at 4096.sk
Tue Jun 1 17:27:09 CEST 2004
On Tue, 1 Jun 2004, Bany, Michel wrote:
> Here is a link to a Seaside app http://mbany.ath.cx/seaside/go/Hanoi
> where I have problems with the state of an algorithm object.
> Press "Start game",
> then do an explicit move from 1 to 2,
> then press the browser Back button,
> then move again from 1 to 2.
> It reacts as if the Back button was not pressed.
> What did I do wrong ?
You don't seem to be using any backtracking so it can't handle back button
correctly.
try to put instvar 'poles' into a WAStateHolder
HanoiGame>>initializeWithSize:
poles := WAStateHolder new.
HanoiGame>>poles
^poles contents
HanoiGame>>poles: something
poles contents: something
I'd try to edit it over the browser but your web is rather slow :-)
rado
--
pgp.mit.edu 0x30DEBAE6 12EE FED5 D5B1 77ED 5637 EB77 2A5F 22F9 30DE BAE6
More information about the Seaside
mailing list