Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 229:924da6695800
Each service is now called with the name of the current locale to set the request object's locale manually in the HttpClient.
flys-client/trunk@1681 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 07:53:01 +0000 |
parents | a13382876e5d |
children | aea3ab5997b2 |
comparison
equal
deleted
inserted
replaced
228:bbe32496dc84 | 229:924da6695800 |
---|---|
190 | 190 |
191 | 191 |
192 protected void updateUserCollections() { | 192 protected void updateUserCollections() { |
193 Config config = Config.getInstance(); | 193 Config config = Config.getInstance(); |
194 String url = config.getServerUrl(); | 194 String url = config.getServerUrl(); |
195 | 195 String locale = config.getLocale(); |
196 userCollectionsService.getUserCollections(url, user.identifier(), | 196 |
197 userCollectionsService.getUserCollections(url, locale, user.identifier(), | |
197 new AsyncCallback<Collection[]>() { | 198 new AsyncCallback<Collection[]>() { |
198 public void onFailure(Throwable caught) { | 199 public void onFailure(Throwable caught) { |
199 GWT.log("Could not recieve a list of user collections."); | 200 GWT.log("Could not recieve a list of user collections."); |
200 GWT.log(caught.getMessage()); | 201 GWT.log(caught.getMessage()); |
201 } | 202 } |