comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/WspDatacagePanel.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 4c3329db2536
children 8d38a1e097c2
comparison
equal deleted inserted replaced
1424:8974e220b193 1425:bc06a671ef60
77 public void onClick(ClickEvent e) { 77 public void onClick(ClickEvent e) {
78 List<String> errors = validate(); 78 List<String> errors = validate();
79 if (errors == null || errors.isEmpty()) { 79 if (errors == null || errors.isEmpty()) {
80 // 1) Fetch selected recommendation 80 // 1) Fetch selected recommendation
81 Config config = Config.getInstance(); 81 Config config = Config.getInstance();
82 final String url = config.getServerUrl();
83 final String locale = config.getLocale(); 82 final String locale = config.getLocale();
84 final Collection c = this.collection; 83 final Collection c = this.collection;
85 final Recommendation r = getSelectedRecommendation(); 84 final Recommendation r = getSelectedRecommendation();
86 85
87 // 2) Create, load Artifact and fire event 86 // 2) Create, load Artifact and fire event
88 loadService.load( 87 loadService.load(
89 c, r, "winfo", url, locale, 88 c, r, "winfo", locale,
90 new AsyncCallback<Artifact>() { 89 new AsyncCallback<Artifact>() {
91 public void onFailure(Throwable caught) { 90 public void onFailure(Throwable caught) {
92 SC.warn(MSG.getString(caught.getMessage())); 91 SC.warn(MSG.getString(caught.getMessage()));
93 } 92 }
94 93

http://dive4elements.wald.intevation.org