Use the ?locale= query param instead of the &lang= token param.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 26 Jan 2012 12:22:26 +0000 (13:22 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 26 Jan 2012 12:42:32 +0000 (13:42 +0100)
commit6d2d71d43c3b561051aa536d674a4b5880581867
tree2f1f4d3eff7d01d23a9dbfd9709bf6d535a2cdf8
parent1d7ae1693f48414331356b24418e2229158b7d62
Use the ?locale= query param instead of the &lang= token param.

* src/main/java/org/glom/web/client/place/ListPlace.java
* src/main/java/org/glom/web/client/place/DetailsPlace.java
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
Remove the lang token key and value.

* src/main/java/org/glom/web/client/ui/TableSelectionView.java
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
When the user selects a different locale from the chooser, use
Window.Location.assign() to change the URL, which then causes a reload.

* src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
* src/main/java/org/glom/web/client/activity/DetailsActivity.java
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
* src/main/java/org/glom/web/client/activity/ListActivity.java
* src/main/java/org/glom/web/client/activity/TableSelectionActivity
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/ListViewImpl.java:

Remove localeID member variables and method/constructor parameters, instead
using Utils.getCurrentLocaleID() when we need a localID to pass to
OnlineGlomService.
15 files changed:
ChangeLog
src/main/java/org/glom/web/client/Utils.java
src/main/java/org/glom/web/client/activity/DetailsActivity.java
src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
src/main/java/org/glom/web/client/activity/ListActivity.java
src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
src/main/java/org/glom/web/client/place/DetailsPlace.java
src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
src/main/java/org/glom/web/client/place/ListPlace.java
src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java
src/main/java/org/glom/web/client/ui/ListView.java
src/main/java/org/glom/web/client/ui/ListViewImpl.java
src/main/java/org/glom/web/client/ui/TableSelectionView.java
src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java