comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_fis_inc.jsp @ 18:87002cbd194c

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

http://dive4elements.wald.intevation.org