On 8 nov, 04:14, zixzigma <[email protected]> wrote: > How can we change history tokens in Roo generated app ? > currently it is like this : #ProxyPlace: > 1...@n...@org.springsource.roo.extrack.client.managed.request.EmployeeProxy! > DETAILS > > is it in Tokenizer class ? (Tokenizer inner class inside Place > classes)
Yes (though it just delegates to the getHistoryToken and getProxyId methods of RequestFactory) > is so called REST like URLs possible ? /employees/1 This is no more or less "REST like" than the above (I assure you!); and yes it's possible (the issues then are to identify objects that are not yet persisted to the server; and of course mapping the "employees" to an EntityProxy class, representing the class+id couple in the Place, and having dedicated "find" methods to retrieve the object from the server, as without an EntityProxyId you won't be able to use RequestFactory.find()) > does it mean we have to write custom getPlace, getToken, to convert > tokens to places ? Yes. That or writing your own PlaceHistoryMapper that won't use PlaceTokenizer's at all (i.e. implement PlaceHistoryMapper in a concrete class and not use the GWT.create() magic to generate the implementation). -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
