annotate gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 17:d7e5a929fc34

Some Stylingimprovements done gnv/trunk@100 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 14:55:54 +0000
parents 4ef6e4e9ef15
children 87002cbd194c
rev   line source
8
65ff6fcfee0c Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents: 4
diff changeset
1
65ff6fcfee0c Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents: 4
diff changeset
2 <%@page import="java.util.Collection"%>
65ff6fcfee0c Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents: 4
diff changeset
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%>
65ff6fcfee0c Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents: 4
diff changeset
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
65ff6fcfee0c Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents: 4
diff changeset
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
16
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
6 <%@page import="java.util.Iterator"%>
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
7 <%Object ui = request.getAttribute("ui");
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
8 boolean furthertargets = true;
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
9
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
10 Object furthertargetsObject = request.getAttribute("furthertargets");
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
11 if (furthertargetsObject != null){
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
12 furthertargets = ((Boolean)furthertargetsObject).booleanValue();
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
13 }
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
14 Object diagramm = request.getAttribute("diagramm");
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
15 String action = (ui == null ? "selectArtifactFactory.do" : "next.do");
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
16 %>
16
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
17 <div id="basefilter">
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
18 <form id="fisSelectionForm" action="<%=action%>" method="post">
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
19 <fieldset>
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
20
16
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
21 <%
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
22
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
23 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
24 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
25 if (artifactFactories != null && ui == null){
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
26 %>
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
27 <legend>FIS</legend>
16
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
28 <select name="artifactFactory">
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
29 <%
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
30 Iterator<ArtifactObject> it = artifactFactories.iterator();
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
31 while (it.hasNext()){
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
32 ArtifactObject ao = it.next();
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
33
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
34 %>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
35
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
36 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
37 <%
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
38 }
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
39 %>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
40 </select>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
41 <%
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
42 }
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
43 %>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
44
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
45
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
46 <%=ui != null ? ui.toString() : "" %>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
47
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
48 <input type="submit" value="<%=furthertargets ? "Ausw�hlen" : "Zeichen"%>" />
16
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
49 </fieldset>
4ef6e4e9ef15 Intergate the new Pageinfrastructure into the old Layout
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
50 </form>
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
51 </div>
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
52 <%if (diagramm != null){ %>
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
53 <div id="diagram">
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
54 <%=diagramm.toString()%>
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
55 </div>
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
56 <%}%>

http://dive4elements.wald.intevation.org