public UserPanel() { setUserInfo();
if (userInfo == null) { Window.Location.replace(GWT.getHostPageBaseURL()); }
container = new MaterialContainer(); container.setFontSize("1em");
Widget mainMenu = createMenu(); initWidget(mainMenu);}
Window.Location.replace(GWT.getHostPageBaseURL() + "#error=Something bad happened");
and then in your login page you have to check for url fragments (after #).
Similarly if you don't want to pollute your urls you can
set a cookie
use sessionStorage
use localStorage
to communicate the error state to the new page.
Hope that helps
Vassilis
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--Vassilis Virvilis--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/3Bdp0kiOi1s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.