comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 1425:bc06a671ef60

Removed the URL parameter from service calls. The service implementations read the URL from the web.xml config file now. flys-client/trunk@3367 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 08 Dec 2011 09:12:27 +0000
parents 25be27e33b77
children 6bb6d43eeb2d
comparison
equal deleted inserted replaced
1424:8974e220b193 1425:bc06a671ef60
259 * But in every case, we will get a new collection object - which might be 259 * But in every case, we will get a new collection object - which might be
260 * the same as the current one. 260 * the same as the current one.
261 */ 261 */
262 public void updateCollection() { 262 public void updateCollection() {
263 final Config config = Config.getInstance(); 263 final Config config = Config.getInstance();
264 final String url = config.getServerUrl();
265 final String loc = config.getLocale(); 264 final String loc = config.getLocale();
266 265
267 GWT.log("ThemePanel.updateCollection via RPC now"); 266 GWT.log("ThemePanel.updateCollection via RPC now");
268 267
269 // don't forget to enable the panel after the request has finished! 268 // don't forget to enable the panel after the request has finished!
270 disable(); 269 disable();
271 270
272 updater.update(collection, url, loc, new AsyncCallback<Collection>() { 271 updater.update(collection, loc, new AsyncCallback<Collection>() {
273 public void onFailure(Throwable caught) { 272 public void onFailure(Throwable caught) {
274 GWT.log("Could not update collection attributes."); 273 GWT.log("Could not update collection attributes.");
275 SC.warn(MSG.getString(caught.getMessage())); 274 SC.warn(MSG.getString(caught.getMessage()));
276 275
277 enable(); 276 enable();
568 } 567 }
569 568
570 569
571 protected void openStyleEditor(final FacetRecord record) { 570 protected void openStyleEditor(final FacetRecord record) {
572 Config config = Config.getInstance(); 571 Config config = Config.getInstance();
573 String url = config.getServerUrl();
574 String locale = config.getLocale(); 572 String locale = config.getLocale();
575 573
576 String artifact = record.getTheme().getArtifact(); 574 String artifact = record.getTheme().getArtifact();
577 575
578 itemAttributeService.getCollectionItemAttribute( 576 itemAttributeService.getCollectionItemAttribute(
579 this.collection, 577 this.collection,
580 artifact, 578 artifact,
581 url,
582 locale, 579 locale,
583 new AsyncCallback<CollectionItemAttribute>() { 580 new AsyncCallback<CollectionItemAttribute>() {
584 public void onFailure (Throwable caught) { 581 public void onFailure (Throwable caught) {
585 SC.warn(MSG.getString(caught.getMessage())); 582 SC.warn(MSG.getString(caught.getMessage()));
586 } 583 }

http://dive4elements.wald.intevation.org