Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(432)

Issue 2202041: DispatchAsync without GWT-RPC (issue 2171043) - Update

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by denis.labaye
Modified:
11 years ago
Reviewers:
Damob
Visibility:
Public.

Description

This is an update of issue 2171043 : * use gwtp-0.4 instead of gwtp-0.3 * use JSON to communicate with the server * use piriti as a parsing lib (for JSON/XML)

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -187 lines) Patch
M dispatch-without-gwtrpc/.classpath View 1 chunk +3 lines, -1 line 0 comments Download
M dispatch-without-gwtrpc/.settings/com.google.appengine.eclipse.core.prefs View 1 chunk +2 lines, -2 lines 0 comments Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/Gwtpsample.gwt.xml View 1 chunk +4 lines, -3 lines 0 comments Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java View 6 chunks +17 lines, -15 lines 3 comments Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/GetAllItemsActionResult.java View 2 chunks +7 lines, -7 lines 0 comments Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/GetAllItemsActionHandler.java View 2 chunks +19 lines, -32 lines 0 comments Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/DispatchAsyncRequestBuilderImpl.java View 2 chunks +58 lines, -56 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/DispatchRequestRequestBuilderImpl.java View 1 chunk +25 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/model/ItemModel.java View 1 chunk +40 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/model/ItemsModel.java View 1 chunk +32 lines, -0 lines 0 comments Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/server/ItemsManagerServlet.java View 2 chunks +67 lines, -67 lines 1 comment Download
M dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/server/model/ServerSideItem.java View 2 chunks +4 lines, -4 lines 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/gwtp-0.4.jar View Binary file 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/piriti-core-0.5.jar View Binary file 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/totoe-0.1.jar View Binary file 0 comments Download

Messages

Total messages: 1
Damob
15 years, 3 months ago (2010-09-15 12:15:39 UTC) #1
My review is incomplete, I'll take another look tonight.

Great work btw !

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
File
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java
(right):

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java:45:
PresenterImpl<MainPagePresenter.MyView, MainPagePresenter.MyProxy> {
Please use Gwt convention (two spaces, no tabs)

see:
http://code.google.com/p/gwt-platform/wiki/ContributorGuidelines

In Gwtp 0.4, presenterImpl has been deprecated. User presenter instead.

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java:62:

I agree with marius here, try to use @UiHandler with UiHandlers:
http://code.google.com/p/gwt-platform/wiki/GettingStarted#Delegate_some_actio...

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java:103:
public interface MyProxy extends Proxy<MainPagePresenter>, Place {
There's a composite that exist for that: ProxyPlace

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
File
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/DispatchAsyncRequestBuilderImpl.java
(right):

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/DispatchAsyncRequestBuilderImpl.java:92:
return new DispatchRequestRequestBuilderImpl(requestBuilder.send());
There's alreay a static factory: DispatchRequestFactory.createRequest() and
Request is already implemented.

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
File
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/server/ItemsManagerServlet.java
(right):

http://codereview.appspot.com/2202041/diff/1/dispatch-without-gwtrpc/src/com/...
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/server/ItemsManagerServlet.java:30:

Just a though:
Since we use the same server as the client side... why don't we try to use
common Action Handler ?
HttpServletRequest and response are injectable with guice.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b