Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 16:4ef6e4e9ef15
Intergate the new Pageinfrastructure into the old Layout
gnv/trunk@99 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Wed, 16 Sep 2009 14:02:29 +0000 |
parents | 4ebe57b170d3 |
children | d7e5a929fc34 |
comparison
equal
deleted
inserted
replaced
15:a52aecf5bb9b | 16:4ef6e4e9ef15 |
---|---|
1 | 1 |
2 <%@page import="java.util.Collection"%> | 2 <%@page import="java.util.Collection"%> |
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> | 3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> |
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> | 4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> | 5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
6 <%@page import="java.util.Iterator"%><html> | 6 <%@page import="java.util.Iterator"%> |
7 <%Object ui = request.getAttribute("ui"); | 7 <%Object ui = request.getAttribute("ui"); |
8 String action = (ui == null ? "selectArtifactFactory.do" : "next.do"); | 8 String action = (ui == null ? "selectArtifactFactory.do" : "next.do"); |
9 %> | 9 %> |
10 <body> | 10 <div id="basefilter"> |
11 <form action="<%=action%>" method="post"> | 11 <form id="fisSelectionForm" action="<%=action%>" method="post"> |
12 | 12 <fieldset> |
13 <% | 13 |
14 | 14 <% |
15 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); | 15 |
16 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); | 16 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
17 if (artifactFactories != null && ui == null){ | 17 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); |
18 %> | 18 if (artifactFactories != null && ui == null){ |
19 <select name="artifactFactory"> | 19 %> |
20 <% | 20 <select name="artifactFactory"> |
21 Iterator<ArtifactObject> it = artifactFactories.iterator(); | 21 <% |
22 while (it.hasNext()){ | 22 Iterator<ArtifactObject> it = artifactFactories.iterator(); |
23 ArtifactObject ao = it.next(); | 23 while (it.hasNext()){ |
24 | 24 ArtifactObject ao = it.next(); |
25 %> | 25 |
26 | 26 %> |
27 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> | 27 |
28 <% | 28 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> |
29 } | 29 <% |
30 %> | 30 } |
31 </select> | 31 %> |
32 <% | 32 </select> |
33 } | 33 <% |
34 %> | 34 } |
35 | 35 %> |
36 | 36 |
37 <%=ui != null ? ui.toString() : "" %> | 37 |
38 | 38 <%=ui != null ? ui.toString() : "" %> |
39 <input type="submit" value="Auswählen" /> | 39 |
40 </form> | 40 <input type="submit" value="Auswählen" /> |
41 </body> | 41 </fieldset> |
42 </html> | 42 </form> |
43 </div> |