comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ChartOutputTab.java @ 254:6838e4112eeb

Bugfix: the current locale string is used to fetch chart images now. flys-client/trunk@1864 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 May 2011 11:21:50 +0000
parents 7ea004d0ffbc
children 7e484390d191
comparison
equal deleted inserted replaced
253:aea3ab5997b2 254:6838e4112eeb
74 * 74 *
75 * @return the URL to the chart image. 75 * @return the URL to the chart image.
76 */ 76 */
77 protected String getImgUrl() { 77 protected String getImgUrl() {
78 Config config = Config.getInstance(); 78 Config config = Config.getInstance();
79 String server = config.getServerUrl();
80 79
81 String imgUrl = GWT.getModuleBaseURL(); 80 String imgUrl = GWT.getModuleBaseURL();
82 imgUrl += "chart"; 81 imgUrl += "chart";
83 imgUrl += "?uuid=" + collection.identifier(); 82 imgUrl += "?uuid=" + collection.identifier();
84 imgUrl += "&type=" + mode.getName(); 83 imgUrl += "&type=" + mode.getName();
85 imgUrl += "&server=" + server; 84 imgUrl += "&server=" + config.getServerUrl();
85 imgUrl += "&locale=" + config.getLocale();
86 imgUrl += "&timestamp=" + new Date().getTime(); 86 imgUrl += "&timestamp=" + new Date().getTime();
87 87
88 GWT.log("IMAGE URL = " + imgUrl);
89
90 // TODO Build the correct url that points to the OUT() resource of the
91 // collection.
92 return imgUrl; 88 return imgUrl;
93 } 89 }
94 } 90 }
95 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 91 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org