Monday, May 30, 2016

Re: Getting username from url only works after refresh

Well there is nothing wrong with the code you posted. I guess your issue is in some other code. You said you are splitting the URL String, which sounds like you do this manually? Actually GWT already does this using the AdminPlace and its Tokenizer. Whenever you visit the above URL you should get a PlaceChangeEvent for the AdminPlace which should already hold the username. So your ActivityMapper.getActivity(Place) method should be triggered and then you can pass on the user name to your activity/presenter.

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