Reputation: 35276
I have this web app which is a directory of users from a database, the web app works just fine with all the widgets/components that allow user search and show results in gwt panels. However I am thinking to add a way a User can have a user like:
mygwtapp.com/user123
And gwt app will show the appropriate view for the user?
Any ideas?
Upvotes: 0
Views: 64
Reputation: 3703
The standard way to do this in GWT is using the history mechanism:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html
Basically, instead of:
You can do something like this:
Once you understand the basics, you can use activities and places (a simple framework on top of gwt's history api). But this is a bit more complicated and probably unnecessary for your needs.
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
Upvotes: 1