Skip to main content

Home/ GWT - Request Factory/ Group items tagged mvp

Rss Feed Group items tagged

Esfand S

The blog of Hung: Using RequestFactory with GWT MVP Framework in comparing with GWT-RPC - 0 views

  • GWT 2.1 has introduced new framework: RequestFactory for working with server object (entity or not entity) more easily. According to Google, GWT-RequestFactory is data-oriented and GWT-RPC is service-oriented. In my opinion, GWT-RequestFactory works like lightweight remoting-object mechanism with 2 hands; in otherwise, traditional GWT-RPC works like remoting-method mechanism. The 2 hands of GWT-RequestFactory are EntityProxy and RequestContext: -EntityProxy: remotes getters/setters of server object -RequestContext: remotes methods of server object With RequestFactory, developers can build their app more data-oriented and more object-oriented. Below is an example for building a simple app by using GWT-RequestFactory in MVP framework.
Esfand S

GWT MVP Roo - Changing Default History Tokens - Google Web Toolkit | Google Groups - 0 views

  • > 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).
1 - 5 of 5
Showing 20 items per page