hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Allow indexed token parameters instead of named parameters in PlaceRequest #409

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should be able to get parameters from a PlaceRequest by index rather than by 
name:

@Override
public void prepareFromRequest(PlaceRequest request) {
  super.prepareFromRequest(request);
  request.getParameter(0, "foo");
  request.getParameter(1, "bar");
  request.getParameter(2, "12");

}

It allows more concise and elegant URLs for end-users, such as:

http://example.com/#myplace;foo;bar;12

Original issue reported on code.google.com by schioche...@gmail.com on 20 Mar 2012 at 4:04