# HG changeset patch # User Tim Englich # Date 1253112954 0 # Node ID d7e5a929fc347732ffa4c46eac66544de3aa637c # Parent 4ef6e4e9ef1580d8f0c227ec1bba9538150864c7 Some Stylingimprovements done gnv/trunk@100 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4ef6e4e9ef15 -r d7e5a929fc34 gnv/Changelog --- a/gnv/Changelog Wed Sep 16 14:02:29 2009 +0000 +++ b/gnv/Changelog Wed Sep 16 14:55:54 2009 +0000 @@ -1,3 +1,12 @@ +2009-09-16 Tim Englich + + * src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java (execute) Edited: + UI also Rendered when Chart is already visualized. + * src/main/webapp/WEB-INF/jsp/index.jsp: + Some Stylingfixes done. + * src/main/webapp/WEB-INF/config/templates/describe-ui.xsl: + Legend-Element for SelectEntries Integrated + 2009-09-16 Tim Englich * src/main/webapp/WEB-INF/jsp/mainlayout.jsp Edited, diff -r 4ef6e4e9ef15 -r d7e5a929fc34 gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java --- a/gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java Wed Sep 16 14:02:29 2009 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java Wed Sep 16 14:55:54 2009 +0000 @@ -74,6 +74,9 @@ String ui = transformer.transform(artifactDescription.getCurrentUI(), "UTF-8", request.getRealPath("WEB-INF/config/templates/describe-ui.xsl")); request.setAttribute("ui", ui); + + request.setAttribute("furthertargets", (ad.getReachableStates() != null && !ad.getReachableStates().isEmpty())); + }else{ adc.doFeed(sm.getSelectedArtifactFactory(), sm.getCurrentArtifact(), ips); @@ -81,8 +84,15 @@ String target = "chart"; String src = "Chart"; - request.setAttribute("ui", src); + request.setAttribute("diagramm", src); + ArtifactDescription artifactDescription = adc.getCurrentStepDescription(sm.getSelectedArtifactFactory(), sm.getCurrentArtifact()); + + XSLTransformer transformer = new XSLTransformer(); + String ui = transformer.transform(artifactDescription.getCurrentUI(), "UTF-8", request.getRealPath("WEB-INF/config/templates/describe-ui.xsl")); + + request.setAttribute("ui", ui); + request.setAttribute("furthertargets",false); } return super.execute(mapping, form, request, response); diff -r 4ef6e4e9ef15 -r d7e5a929fc34 gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl --- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Wed Sep 16 14:02:29 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Wed Sep 16 14:55:54 2009 +0000 @@ -11,11 +11,13 @@ - + +     - + +     diff -r 4ef6e4e9ef15 -r d7e5a929fc34 gnv/src/main/webapp/WEB-INF/jsp/index.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp Wed Sep 16 14:02:29 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp Wed Sep 16 14:55:54 2009 +0000 @@ -5,18 +5,26 @@ <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> <%@page import="java.util.Iterator"%> <%Object ui = request.getAttribute("ui"); + boolean furthertargets = true; + + Object furthertargetsObject = request.getAttribute("furthertargets"); + if (furthertargetsObject != null){ + furthertargets = ((Boolean)furthertargetsObject).booleanValue(); + } + Object diagramm = request.getAttribute("diagramm"); String action = (ui == null ? "selectArtifactFactory.do" : "next.do"); %>
- + <% SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); Collection artifactFactories = sm.getArtifactFactories(); if (artifactFactories != null && ui == null){ %> + FIS + " />
-
\ No newline at end of file + +<%if (diagramm != null){ %> +
+ <%=diagramm.toString()%> +
+<%}%> \ No newline at end of file