Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

GWT + mvp4g url-rewriting

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

Profile: mysite.com/#profile?user=blabla
Orders: mysite.com/#orders?user=blabla
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: mysite.com/blabla or blabla.mysite.com (assuming that "blabla" is unique for each user)

So links listed above should look in the following way:

Profile: mysite.com/blabla/profile or blabla.mysite.com/
Orders: mysite.com/blabla/orders or blabla.mysite.com/orders
...
How can achieve this?
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
John Khandygo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!