comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_fis_inc.jsp @ 39:6c46f9b16166

gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 02 Oct 2009 14:29:08 +0000
parents 367a00e4b9ad
children ae1e616ecf94
comparison
equal deleted inserted replaced
38:fccf90761825 39:6c46f9b16166
1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> 1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %>
2 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> 3 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
3 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> 4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
4 <%@page import="java.util.Collection"%> 5 <%@page import="java.util.Collection"%>
5 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> 6 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%>
6 <%@page import="java.util.Iterator"%> 7 <%@page import="java.util.Iterator"%>
7 <% 8 <%
8 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); 9 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
9 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); 10 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
11 String prefix = "gnviewer.fis.";
10 %> 12 %>
11 <div id="basefilter"> 13 <div id="basefilter">
12 <form id="fisSelectionForm" action="<%=response.encodeURL("selectArtifactFactory.do")%>" method="post"> 14 <form id="fisSelectionForm" action="<%=response.encodeURL("selectArtifactFactory.do")%>" method="post">
13 <fieldset> 15 <fieldset>
14 <legend><bean:message key="gnviewer.productselection.fisselection.title"/></legend> 16 <legend><bean:message key="gnviewer.productselection.fisselection.title"/></legend>
16 18
17 <select name="artifactFactory"> 19 <select name="artifactFactory">
18 <%Iterator<ArtifactObject> it = artifactFactories.iterator(); 20 <%Iterator<ArtifactObject> it = artifactFactories.iterator();
19 while (it.hasNext()){ 21 while (it.hasNext()){
20 ArtifactObject ao = it.next();%> 22 ArtifactObject ao = it.next();%>
21 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> 23 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><bean-el:message key="<%=(prefix+ao.getName())%>"/></option>
22 <%}%> 24 <%}%>
23 </select> 25 </select>
24 <%}%> 26 <%}%>
25 <br/> 27 <br/>
26 <input type="submit" value="<bean:message key="gnviewer.select.button"/>" /> 28 <input type="submit" value="<bean:message key="gnviewer.select.button"/>" />

http://dive4elements.wald.intevation.org