File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes GWT + mvp4g url-rewriting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT + mvp4g url-rewriting" Watch "GWT + mvp4g url-rewriting" New topic

GWT + mvp4g url-rewriting

John Khandygo

Joined: Aug 27, 2013
Posts: 2
In my java web project we use spring + gwt + mvp4g. We have several users on site, each of them is able to see several pages:

and so on

History tokens "user", "orders" are handled by some @Presenter annotated class (according to mvp4g best practises : EventBus + HistoryConverter). We want to provide each user some kind of personal space: or (assuming that "blabla" is unique for each user)

So links listed above should look in the following way:

Profile: or
Orders: or
How can achieve this?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10828

Welcome to the Ranch.

Usually, only the data would change per user and not the view. So essentially your presenter would still have the same view, but the contents in the view would be user specific. Does this answer your question or did I misunderstand what you were asking?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
John Khandygo

Joined: Aug 27, 2013
Posts: 2
Hi. Thanks for greetings.
Yea, we have some misunderstanding. There is problem with url, not with view or its data. I want visit some page by using some specific url (like url-mapping) and don't know how do it in existing project model (gwt + mvp4g).
I agree. Here's the link:
subject: GWT + mvp4g url-rewriting
It's not a secret anymore!