Sunday, September 13, 2015

Places & Activities for two folded website

What I mean by "two folded" is that I am having a public landing page for the "common folks" and an admin area for some particular users.

However, I am realizing that the way I am handling Places at the moment does not "feel" optimal to me (check out my stackoverflow question [1]).

But there's now another thing. I have no idea how I would split those two areas admin/non-admin. For example I would not like to mix up their places.

I don't think it should be necessary to have something like

if(place instanceof SomeAdminPlace1) {
    // ...
} else if(place instanceof SomeAdminPlace2) {
    // ...
} else if(place instanceof SomeNoneAdminPlace1) {
    // ...
} // and so on...

My question would be if I would have two different ActivityMapper and PlaceHistoryMappers for such an application and if yes how that would look like?

How would I setup such an application in my onModuleLoad() entry point? And how can I ensure that the history is still working if I got multiple ActivityMapper and/or multiple PlaceController if that's even possible ..

I am almost pretty sure that I am mixing here a few things up but I don't really know how to do that without shooting myself in he foot later on during this project ..

Best regards and thank you for any help!


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment