changeset 969:3e6e07142a48

The jsp page to render the wms output makes use of the new method of DiagrammOptions introduced in rev1129 now. gnv/trunk@1133 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 27 May 2010 09:48:32 +0000
parents 7a93e4114e6d
children d91ffd0e8239
files gnv/ChangeLog gnv/src/main/webapp/WEB-INF/jsp/includes/display_wms_options_inc.jsp
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Thu May 27 09:06:06 2010 +0000
+++ b/gnv/ChangeLog	Thu May 27 09:48:32 2010 +0000
@@ -1,3 +1,9 @@
+2010-05-27  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/webapp/WEB-INF/jsp/includes/display_wms_options_inc.jsp: Make use
+	  of the new method of DiagrammOptions to retrieve the value of an option as
+	  string that have been introduced in rev1129.
+
 2010-05-27  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* src/main/webapp/WEB-INF/jsp/header.jsp: Don't use the old session id when
--- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_wms_options_inc.jsp	Thu May 27 09:06:06 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_wms_options_inc.jsp	Thu May 27 09:48:32 2010 +0000
@@ -8,6 +8,7 @@
 <%@page import="de.intevation.gnv.artifactdatabase.objects.OutputParameter"%>
 <%@page import="java.util.Collection"%>
 <%@page import="java.util.Iterator"%>
+<%@page import="java.util.Locale"%>
 <%@page import="java.net.URLEncoder"%>
 <%
     String exceptionMsg  = (String) request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE);
@@ -15,6 +16,7 @@
     String layer         = (String) request.getAttribute("layer");
     String target        = "wms";
     SessionModel      sm = SessionModelFactory.getInstance().getSessionModel(request);
+    Locale locale        = sm.getCurrentLocale();
     OutputMode        om = sm.getOutputMode(target);
     DiagrammOptions opts = sm.getDiagrammOptions();
     String uuid          = sm.getCurrentArtifact().getId();
@@ -44,7 +46,7 @@
                             <td class="parameter"><bean-el:message key="<%=param.getName()%>"/></td>
                             <td>
                                 <%if (param.getType().equalsIgnoreCase("boolean")) {
-                                    boolean checked = (opts != null) ? "true".equalsIgnoreCase(opts.getValue(param.getName())) : param.getValue().equalsIgnoreCase("true");
+                                    boolean checked = (opts != null) ? "true".equalsIgnoreCase(opts.getValue(param.getName(), locale)) : param.getValue().equalsIgnoreCase("true");
                                 %>
                                     <input type="checkbox" name="<%=param.getName()%>" <%=checked ? " value=\"true\" checked=\"checked\"": "" %>/>
                                 <%}

http://dive4elements.wald.intevation.org