Caltheon
unread,Mar 31, 2008, 4:34:38 PM3/31/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.