History Problems in IE and Firefox using FormPanel

7 views
Skip to first unread message

Caltheon

unread,
Mar 31, 2008, 4:34:38 PM3/31/08
to Google Web Toolkit
I have noticed that when using a FormPanel, submitting a form breaks
the history implementation in both Firefox and in IE, but in different
ways.

In Firefox, after submitting a form, the back button does nothing the
first time you click on it. This affect is cumulative. If you submit
5 forms in a row, you must hit the back button on the browser five
times before it returns to the previous page.

In IE, after submitting a form, the back button throws an Exception in
my onSubmitComplete method (just displays the results in a
Window.alert().. Putting a check in onSubmitComplete to just return
on null events solved the Exception issue, but it still has the same
behavior as Firefox above.

I did try adding a History.back() to the onsubmitcomplete method,
which works fine in Firefox, but in IE it actually performs the
History.back() and takes me to the previous page before the form
submit (it also clicks ALOT, but thats for another post about GWT
History support).

There should be a way to prevent the FormPanel from affecting the
history stack as it does not handle it gracefully. From what I
understand, it should be operating in an internal IFrame so I don't
understand why it is messing with the history.
Reply all
Reply to author
Forward
0 new messages