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

Issue 6213044: PlaceNames to routes in Gwtp

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by raphael.andre.bauer
Modified:
11 years, 7 months ago
Reviewers:
philippe.beaudoin
Visibility:
Public.

Patch Set 1 #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+7821 lines, -45 lines) Patch
M .hgtags View 1 chunk +1 line, -0 lines 0 comments Download
M gwtp-build-tools/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-all/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-clients-common/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-crawler-service/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-crawler/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-dispatch-client/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-dispatch-server-guice/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-dispatch-server-spring/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-dispatch-server/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-dispatch-shared/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-dispatch-test/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-mvp-client/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-processors/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/gwtp-tester/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-core/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
A gwtp-samples/.DS_Store View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/pom.xml View 1 chunk +173 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/Html5PushStatePlaceManager.java View 1 chunk +161 lines, -0 lines 2 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedParameterTokenFormatter.java View 1 chunk +200 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java View 1 chunk +185 lines, -0 lines 13 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/Gwtpsample.gwt.xml View 1 chunk +47 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/DefaultPlace.java View 1 chunk +38 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/Gwtpsample.java View 1 chunk +37 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/IndexPresenter.java View 1 chunk +74 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/IndexView.java View 1 chunk +88 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/IndexView.ui.xml View 1 chunk +56 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/MyGinjector.java View 1 chunk +40 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/MyModule.java View 1 chunk +52 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/MyPlaceManager.java View 1 chunk +42 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/Routes.java View 1 chunk +36 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/UserPresenter.java View 1 chunk +88 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/UserView.java View 1 chunk +119 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/client/UserView.ui.xml View 1 chunk +34 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/server/DemoServlet.java View 1 chunk +62 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/samples/basic/server/MyGuiceServletConfig.java View 1 chunk +40 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/Gwtpsample.css View 1 chunk +34 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/Gwtpsample.html View 1 chunk +49 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/META-INF/jdoconfig.xml View 1 chunk +15 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/WEB-INF/appengine-web.xml View 1 chunk +22 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/WEB-INF/logging.properties View 1 chunk +28 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/WEB-INF/web.xml View 1 chunk +20 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/favicon.ico View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/corner.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/corner_ie6.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/hborder.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/hborder_ie6.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/ie6/corner_dialog_topleft.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/ie6/corner_dialog_topright.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/ie6/hborder_blue_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/ie6/hborder_gray_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/ie6/vborder_blue_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/ie6/vborder_gray_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/splitPanelThumb.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/vborder.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/images/vborder_ie6.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/standard.css View 1 chunk +1138 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes-and-html5pushstate/src/main/webapp/gwt/standard/standard_rtl.css View 1 chunk +1139 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/pom.xml View 1 chunk +173 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedParameterTokenFormatter.java View 1 chunk +200 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java View 1 chunk +185 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/Gwtpsample.gwt.xml View 1 chunk +47 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/DefaultPlace.java View 1 chunk +38 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/Gwtpsample.java View 1 chunk +37 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/IndexPresenter.java View 1 chunk +74 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/IndexView.java View 1 chunk +49 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/IndexView.ui.xml View 1 chunk +59 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/MyGinjector.java View 1 chunk +40 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/MyModule.java View 1 chunk +51 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/MyPlaceManager.java View 1 chunk +42 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/Routes.java View 1 chunk +33 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/UserPresenter.java View 1 chunk +88 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/UserView.java View 1 chunk +57 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/client/UserView.ui.xml View 1 chunk +34 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/server/DemoServlet.java View 1 chunk +61 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/java/com/gwtplatform/samples/basic/server/MyGuiceServletConfig.java View 1 chunk +40 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/Gwtpsample.css View 1 chunk +34 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/Gwtpsample.html View 1 chunk +49 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/META-INF/jdoconfig.xml View 1 chunk +15 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/WEB-INF/appengine-web.xml View 1 chunk +22 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/WEB-INF/logging.properties View 1 chunk +28 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/WEB-INF/web.xml View 1 chunk +21 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/favicon.ico View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/corner.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/corner_ie6.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/hborder.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/hborder_ie6.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/ie6/corner_dialog_topleft.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/ie6/corner_dialog_topright.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/ie6/hborder_blue_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/ie6/hborder_gray_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/ie6/vborder_blue_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/ie6/vborder_gray_shadow.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/splitPanelThumb.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/vborder.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/images/vborder_ie6.png View Binary file 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/standard.css View 1 chunk +1138 lines, -0 lines 0 comments Download
A gwtp-samples/gwtp-routes/src/main/webapp/gwt/standard/standard_rtl.css View 1 chunk +1139 lines, -0 lines 0 comments Download
M gwtp-samples/gwtp-sample-basic-spring/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-samples/gwtp-sample-basic-spring/src/main/webapp/WEB-INF/web.xml View 1 chunk +0 lines, -4 lines 0 comments Download
M gwtp-samples/gwtp-sample-basic/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-samples/gwtp-sample-basic/src/main/webapp/WEB-INF/web.xml View 1 chunk +0 lines, -4 lines 0 comments Download
M gwtp-samples/gwtp-sample-crawler-service/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-samples/gwtp-sample-crawler-service/src/main/webapp/WEB-INF/web.xml View 1 chunk +1 line, -5 lines 0 comments Download
M gwtp-samples/gwtp-sample-hplace/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-samples/gwtp-sample-hplace/src/main/webapp/WEB-INF/web.xml View 1 chunk +0 lines, -4 lines 0 comments Download
M gwtp-samples/gwtp-sample-nested/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-samples/gwtp-sample-tab/pom.xml View 1 chunk +1 line, -1 line 0 comments Download
M gwtp-samples/gwtp-sample-tab/src/main/webapp/WEB-INF/web.xml View 1 chunk +0 lines, -4 lines 0 comments Download
M gwtp-samples/pom.xml View 2 chunks +4 lines, -2 lines 0 comments Download
M pom.xml View 1 chunk +1 line, -1 line 0 comments Download
A release-zip.sh View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 3
philippe.beaudoin
Do we need gwtp-samples/.DS_Store ? It's empty. Can we remove it from the repo? Some ...
14 years, 2 months ago (2012-05-14 16:09:39 UTC) #1
raphael.andre.bauer
Hi Philippe, thanks for taking the time and reviewing our changes :) Should I already ...
14 years, 1 month ago (2012-05-22 12:43:02 UTC) #2
raphael.andre.bauer
14 years, 1 month ago (2012-05-25 09:42:17 UTC) #3
Hi Philippe,


not sure if this is the correct way to do it in the
http://codereview.appspot.com style.

I did some more major changes and moved the classes into their correct
location under com.gwtplatform.mvp.client.proxy

I also added a lot of comments as requested by your earlier review and
fixed all issues of the "old" code review.

New codereview is at:
http://codereview.appspot.com/6257054/


Feedback heavily appreciated :)


Cheers,


Raphael

On Mon, May 14, 2012 at 6:09 PM,  <philippe.beaudoin@gmail.com> wrote:
> Do we need gwtp-samples/.DS_Store ? It's empty. Can we remove it from
> the repo?
>
> Some basic architectureal comment. I just reviewed a few files. I really
> like what you're doing here and wonder if we could pull some of this in
> GWTP's core.
>
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
> File
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/Html5PushStatePlaceManager.java
> (right):
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/Html5PushStatePlaceManager.java:86:
> // If the history length hasn't changed, then pushState mustn't be
> enabled.  Fall back to $wnd.location.
> Line too long.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/Html5PushStatePlaceManager.java:135:
>
placeManager.@com.gwtplatform.mvp.client.proxy.Html5PushStatePlaceManager::onPopState(Ljava/lang/String;)(event.state.historyToken);
> Line too long.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
> File
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java
> (right):
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:27:
> * than server side routes you might know from Play, JAX-WS or Play.
> Nits:
> - same as server side...
> - Play mentioned twice. Did you mean playn?
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:33:
> * <li>/user/{id}/dashboard</li>
> Twice the same example?
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:45:
> * @author <a href="http://www.raphaelbauer.com">Raphael Bauer</a>
> Make sure both are in the POMs (and on the Wiki?)
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:49:
> private final Map<String, String> params = new HashMap<String,
> String>();
> params is already defined in PlaceRequest. We don't want it duplicated
> (make it protected in the parent class, I think it's fine in this case).
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:67:
> private interface PlaceTokenPart {
> I'd like some documentation for this. Given the methods it's not 100%
> clear what this is doing.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:69:
> * Does this part match the given part.
> Nit: Checks that this part matches ...
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:82:
> private static class ParameterizedPlaceTokenPart implements
> PlaceTokenPart {
> Again, documentation with an example would be great.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:89:
> public String getParameterName() {
> @Override
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:94:
> public boolean matches(String part) {
> Matches anything!? Sounds counter-intuitive. Would need some doc.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:99:
> private static class StaticPlaceTokenPart implements PlaceTokenPart {
> Again, documentation with an example would be great.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:119:
> if (nameToken.equals(getNameToken())) {
> What happens for a parameterized name token? Does getNameToken() return
> null? The empty string? Is there a danger that nameToken be an empty
> string and match where it shouldn't?
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:135:
> pathParams.put(parameterName, parts[i]);
> The pathParams variable is puilt out of the content of getNameToken()
> every time matchesNameToken is called, however nameToken is a final
> member variable. Therefore all the logic in that method is invoked too
> often.
>
> I suggest you refactor to store
>  final String[] parts
> in ParameterizedPlaceRequest and to build pathParams and params right in
> the constructor.
>
>
http://codereview.appspot.com/6213044/diff/1/gwtp-samples/gwtp-routes-and-htm...
>
gwtp-samples/gwtp-routes-and-html5pushstate/src/main/java/com/gwtplatform/mvp/client/proxy/ParameterizedPlaceRequest.java:157:
> }
> Since getParameter() looks at both params and pathParams shouldn't
> getParameterNames return the union of params and pathParams?
>
> http://codereview.appspot.com/6213044/



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com
Sign in to reply to this message.

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