annotate gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 570:cbd397712ecf

Render an OpenLayers map with the layer even published after triggering shapefile and mapfile creation. gnv/trunk@698 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 22 Feb 2010 18:04:55 +0000
parents 9a5e50e7afaa
children f2ba58011a2d
rev   line source
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
8
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"%>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
7 <% Object ui = request.getAttribute("ui");
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
8 Object staticui = request.getAttribute("staticui");
410
9602f4bffc07 Added statistic to the actions if available.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
9 Object statistic = request.getAttribute("statistic");
569
9a5e50e7afaa Added action and jsp for rendering histograms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
10 Object histogram = request.getAttribute("histogram");
570
cbd397712ecf Render an OpenLayers map with the layer even published after triggering shapefile and mapfile creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 569
diff changeset
11 Object wms = request.getAttribute("wms");
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
12 boolean furthertargets = true;
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 16
diff changeset
13
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
14 Object furthertargetsObject = request.getAttribute("furthertargets");
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
15 if (furthertargetsObject != null){
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
16 furthertargets = ((Boolean)furthertargetsObject).booleanValue();
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
17 }
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
18 %>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
19 <div>
400
a8b1875dcd93 Just include a select box for choosing the fis if there is no static part in the describe document.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
20 <%if (staticui == null){ %>
a8b1875dcd93 Just include a select box for choosing the fis if there is no static part in the describe document.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
21 <jsp:include page="includes/display_fis_inc.jsp"></jsp:include>
a8b1875dcd93 Just include a select box for choosing the fis if there is no static part in the describe document.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
22 <%} else {%>
411
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 410
diff changeset
23 <div class="down">
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 410
diff changeset
24 <fieldset>
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 410
diff changeset
25 <legend><bean:message key="gnviewer.history.title"/></legend>
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 410
diff changeset
26 <%=staticui.toString()%>
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 410
diff changeset
27 </fieldset>
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 410
diff changeset
28 </div>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
29 <%}%>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
30
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
31 <%-- render the dynamic part to feed the state and advance to the next state --%>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
32 <%if (ui != null){%>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
33 <div id="timeseriesfilter">
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 411
diff changeset
34 <form id="fisSelectionForm" onsubmit="displayOverlay()" action="<%=response.encodeURL("next.do")%>" method="post">
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
35 <fieldset>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
36 <%=ui != null ? ui.toString().replaceAll("&nbsp;", "") : "" %>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
37
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
38 <%if(furthertargets){%>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
39 <input type="submit" value="<bean:message key="gnviewer.select.button"/>"/>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
40 <%}%>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
41 </fieldset>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
42 </form>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
43 </div>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
44 <%}%>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents: 17
diff changeset
45 </div>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
46
570
cbd397712ecf Render an OpenLayers map with the layer even published after triggering shapefile and mapfile creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 569
diff changeset
47 <div id="map"></div>
cbd397712ecf Render an OpenLayers map with the layer even published after triggering shapefile and mapfile creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 569
diff changeset
48
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
49 <%-- render chart options if existing for this state --%>
400
a8b1875dcd93 Just include a select box for choosing the fis if there is no static part in the describe document.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
50 <jsp:include page="includes/display_diagramm_inc.jsp"></jsp:include>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
51
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
52 <%-- render export options if existing for this state --%>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 404
diff changeset
53 <jsp:include page="includes/display_export_inc.jsp"></jsp:include>
410
9602f4bffc07 Added statistic to the actions if available.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
54
9602f4bffc07 Added statistic to the actions if available.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
55 <%-- render statistic --%>
9602f4bffc07 Added statistic to the actions if available.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
56 <%if (statistic != null) {%>
9602f4bffc07 Added statistic to the actions if available.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
57 <jsp:include page="includes/display_diagramm_statistics_inc.jsp"></jsp:include>
9602f4bffc07 Added statistic to the actions if available.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
58 <%}%>
569
9a5e50e7afaa Added action and jsp for rendering histograms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
59
9a5e50e7afaa Added action and jsp for rendering histograms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
60 <%-- render histogram --%>
9a5e50e7afaa Added action and jsp for rendering histograms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
61 <%if (histogram != null) {%>
9a5e50e7afaa Added action and jsp for rendering histograms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
62 <jsp:include page="includes/display_histogram_inc.jsp"></jsp:include>
9a5e50e7afaa Added action and jsp for rendering histograms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
63 <%}%>

http://dive4elements.wald.intevation.org