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

Issue 2171043: Sample project demonstrating the usage of DispatchAsync without GWT-RPC

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

Patch Set 1 #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+1566 lines, -0 lines) Patch
A dispatch-without-gwtrpc/.classpath View 1 chunk +15 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/.project View 1 chunk +39 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/.settings/com.google.appengine.eclipse.core.prefs View 1 chunk +3 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/.settings/com.google.gdt.eclipse.core.prefs View 1 chunk +4 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/.settings/com.google.gwt.eclipse.core.prefs View 1 chunk +4 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/java.header View 1 chunk +15 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/META-INF/jdoconfig.xml View 1 chunk +15 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/Gwtpsample.gwt.xml View 1 chunk +46 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/DispatchWithoutGwtRpc.java View 1 chunk +36 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java View 1 chunk +143 lines, -0 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPageView.java View 1 chunk +95 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPageView.ui.xml View 1 chunk +36 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MyPlaceManager.java View 1 chunk +41 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/CreateItemAction.java View 1 chunk +32 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/CreateItemActionResult.java View 1 chunk +32 lines, -0 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/GetAllItemsAction.java View 1 chunk +22 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/GetAllItemsActionResult.java View 1 chunk +35 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/BaseActionHandler.java View 1 chunk +26 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/CreateItemActionHandler.java View 1 chunk +50 lines, -0 lines 2 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/GetAllItemsActionHandler.java View 1 chunk +60 lines, -0 lines 3 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/DispatchAsyncRequestBuilderImpl.java View 1 chunk +108 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/RequestBuilderActionHandler.java View 1 chunk +40 lines, -0 lines 3 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/dispatch/RequestRuntimeException.java View 1 chunk +42 lines, -0 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/gin/DispatchAsyncModule.java View 1 chunk +43 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/gin/MyGinjector.java View 1 chunk +39 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/gin/MyModule.java View 1 chunk +53 lines, -0 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/model/Item.java View 1 chunk +50 lines, -0 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/server/ItemsManagerServlet.java View 1 chunk +108 lines, -0 lines 1 comment Download
A dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/server/model/ServerSideItem.java View 1 chunk +51 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/src/log4j.properties View 1 chunk +24 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/test/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenterTest.java View 1 chunk +107 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/war/Gwtpsample.css View 1 chunk +34 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/war/Gwtpsample.html View 1 chunk +49 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/appengine-web.xml View 1 chunk +22 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/aopalliance.jar View Binary file 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/gin-r137.jar View Binary file 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/guice-2.0.jar View Binary file 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/lib/gwtp-0.3.jar View Binary file 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/logging.properties View 1 chunk +28 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/war/WEB-INF/web.xml View 1 chunk +19 lines, -0 lines 0 comments Download
A dispatch-without-gwtrpc/war/favicon.ico View Binary file 0 comments Download

Messages

Total messages: 3
jgonian
http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/CreateItemActionHandler.java File dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/CreateItemActionHandler.java (right): http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/CreateItemActionHandler.java#newcode35 dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/impl/CreateItemActionHandler.java:35: } I think it would be more clear if ...
15 years, 3 months ago (2010-09-13 18:34:30 UTC) #1
marius.andreiana
http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java File dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java (right): http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java#newcode63 dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java:63: class CreateClickHandler implements ClickHandler { In order to write ...
15 years, 3 months ago (2010-09-13 19:25:17 UTC) #2
denis.labaye
15 years, 3 months ago (2010-09-14 21:28:00 UTC) #3
A quick comment not directly related to code review : 
This sample has been updated, and a CR requested here :
http://codereview.appspot.com/2202041/

The update is : 
* use gwtp-0.4 instead of gwtp-0.3
* use JSON to communicate with the server
* use piriti as a parsing lib (for JSON/

On 2010/09/13 19:25:17, marius.andreiana wrote:
>
http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/...
> File
>
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java
> (right):
> 
>
http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/...
>
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/MainPagePresenter.java:63:
> class CreateClickHandler implements ClickHandler {
> In order to write less code, instead of this class, could the view call
directly
> the dispatch() or call a presenter UiHandler method which does this dispatch?
(I
> think the latter would be best, so we don't have logic in the view)
> 
> See 
>
http://code.google.com/p/gwt-platform/source/browse/hplacesample/src/com/gwtp...
> 
> @UiHandler("all")
>   void onAllClicked(ClickEvent event) {
>     getUiHandlers().revealAllProductsList();
>   }
> 
>
http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/...
> File
>
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/CreateItemActionResult.java
> (right):
> 
>
http://codereview.appspot.com/2171043/diff/1/dispatch-without-gwtrpc/src/com/...
>
dispatch-without-gwtrpc/src/com/gwtplatform/samples/dispatchwithoutgwtrpc/client/command/CreateItemActionResult.java:20:
> public class CreateItemActionResult implements Result {
> In order to keep the existing convention at
>
http://code.google.com/p/gwt-platform/wiki/BoilerplateGeneration#Generate_Act...
> 
> could this class be named CreateItemResult ?
> 
> This also matches the classes at
>
http://code.google.com/p/gwt-platform/source/browse/src/com/gwtplatform/dispa...
> (Action and Result, for each request)
Sign in to reply to this message.

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