[Seaside] Help needed for the Back button

Michel Bany m.bany at wanadoo.fr
Tue Jun 1 18:12:42 CEST 2004


radoslav hodnicak a écrit :

>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
>
>  
>
Hi Radoslav,
Thanks for looking at this issue.
I tried as you suggested but that did not help.
The toolbar is now enabled so that you can have a look to the code.

BTW, I find it  strange to introduce a UI object (WAStateHolder) into 
the model  layer.


>I'd try to edit it over the browser but your web is rather slow :-)
>
>rado
>  
>


More information about the Seaside mailing list