multiple name tokens or aliases?

92 views
Skip to first unread message

cplummer

unread,
Dec 10, 2013, 11:06:18 AM12/10/13
to gwt-pl...@googlegroups.com
Hey all,

I have an application that I'm trying to convert from GWT-MVP to GWTP.  The previous implementation made all the history tokens very verbose - they actually contained the Place's simple class name.  I want to change them to be much simpler, but I still want to make all the old history tokens work in case users have links bookmarked or saved.  Is there a way in GWTP to do this - perhaps to make an alias for a name token, or to map multiple name tokens to a single presenter?  Or, do I need to file some kind of enhancement request on github?

Thanks,

Chris

Christian

unread,
Dec 10, 2013, 11:15:46 AM12/10/13
to gwt-pl...@googlegroups.com
Maybe you could do this with an own Proxy class?

When I'm looking into the JavaDoc there is a ProxyPlaceAbstract#matchesRequest(PlaceRequest).. that could probably the place where you have to implement a check against both of your NameTokens?

But the best thing would be, if GWTP implements this directly itself (or maybe it is already?) through something like a NameToken-annotation that could have more than one value.

Christian

unread,
Dec 10, 2013, 11:17:43 AM12/10/13
to gwt-pl...@googlegroups.com

cplummer

unread,
Dec 10, 2013, 2:37:05 PM12/10/13
to gwt-pl...@googlegroups.com
Thanks, Christian - I'll check out using a custom proxy.  I agree, though, it would be much better if GWTP could allow this automatically - I'll file an issue on github for it.

Chris

David Ignjić

unread,
Dec 11, 2013, 2:11:24 AM12/11/13
to gwt-pl...@googlegroups.com
Probably you look samething like this:

I provide this  path but its not introduced into gwtp need to wait or if you want you can try it.
Reply all
Reply to author
Forward
0 new messages