On 7/12/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 7/12/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >  I don't want to disable the back button
> >  Back button should work that is how a browser work. How all people that
> > have used browsers are used to.
> 
> By the way, check out
> http://www.wicket-library.com/wicket-examples/forminput example:
> change locale and see that URL has not changed. So, if I had English
> locale and changed it to German and then to Dutch, I cannot click Back
> and return from Dutch to German. Instead, I return to English (because
> URL is different).
> 
> ;-))
> 
> Michael.

The same goes to guestbook. Hangman does not appear to sync model with
view either. I started Hangman. Address contained:
/hangman?component=7&version=0&interface=IRedirectListener
I entered three letters, all wrong ones. Address contains: 
/hangman?component=7&version=2&interface=IRedirectListener
I have 2 guesses remaining.
Now I click Back twice, I get the following:
/hangman?component=7&version=0&interface=IRedirectListener
And page shows 4 guesses remaining
I click another letter, and I see 
/hangman?component=7&version=1&interface=IRedirectListener
Four letters are marked as used, three previous letters and the last one.

So, in hangman model is not rolled back to be synched with view,
instead input is applied to current model and view corresponding to
the model is rendered. That what I do and that is what I want things
to be. On the other hand, user is not notified that he submitted a
stale page. This is not too user-friendly, I guess.

If I submit a letter that was already used, nothing happens, a view
corresponding to current state is rendered. So, Wicket already behaves
as I like ;)

Michael.

Also, Hangman is not initialized when you click "Start Hangman". This
is a bug, because *this* is a place where it should be reset.


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to