Wednesday, June 1, 2016

Re: Getting username from url only works after refresh


 About the code splitting stuff. Because the browser downloads code before he needs it.

The split point itself will be loaded once you click your login button. Once the split point has been loaded the performUserConnection() method will be called. But depending on your code structure it is not guaranteed that the UserViewImpl and UserActivity are actually part of that split point.

Anyways, its not that easy to tell you how to solve the issue you have in your code, because everything you have posted so far is generally ok. You can do the code splitting the way you have done it.

If you can, upload the full code to Github or similar, so people can take a closer look instead of just seeing code snippets. Otherwise use the Browser debugger and step through your code to see when and why things go wrong in your app.

-- J.

--
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+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.

No comments:

Post a Comment