# HG changeset patch # User Ingo Weinzierl # Date 1274953712 0 # Node ID 3e6e07142a4899a2e56aee8eb536d665e1e0fa35 # Parent 7a93e4114e6da27066690298be60845e9d5ecb7d 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 diff -r 7a93e4114e6d -r 3e6e07142a48 gnv/ChangeLog --- 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 + + * 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 * src/main/webapp/WEB-INF/jsp/header.jsp: Don't use the old session id when diff -r 7a93e4114e6d -r 3e6e07142a48 gnv/src/main/webapp/WEB-INF/jsp/includes/display_wms_options_inc.jsp --- 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 @@ <%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"); %> /> <%}