# HG changeset patch # User Ingo Weinzierl # Date 1269859508 0 # Node ID 734e8301c9eae2da14f12ae2c6778b81e831e716 # Parent e47e6762b431726197a577052ce7f53e92ffd0e2 Added links to reload the application and rebuild the user interface (issue13, issue18). gnv/trunk@864 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e47e6762b431 -r 734e8301c9ea gnv/ChangeLog --- a/gnv/ChangeLog Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/ChangeLog Mon Mar 29 10:45:08 2010 +0000 @@ -1,3 +1,29 @@ +2010-03-29 Ingo Weinzierl + + Issue13 & Issue18 + + * src/main/webapp/WEB-INF/jsp/mainlayout.jsp, + src/main/webapp/WEB-INF/jsp/header.jsp: Added a reload link. A click on + this link rebuilds the ui with the description of the current artifact. + + Note: If the artifact server ist down, nothing happens when using this + link. A click on this link triggers a controller which sends a + describe-request to the artifact server. + + * src/main/webapp/WEB-INF/config/struts-config.xml: Added a new controller + to build the current user interface. This could be used if the artifact + server is down and the ui brakes after an user interaction. After the + artifact server being restarted, this controller can be called to rebuild + the ui with the current artifact description. + + * src/main/webapp/styles/default.css: Moved exception message and reload + link a bit to avoid overlapping elements. Added a new class to adjust the + style of the reload link. + + * src/main/resources/applicationMessages.properties, + src/main/resources/applicationMessages_en.properties: Added strings for + reload-link. + 2010-03-29 Sascha L. Teichmann * src/main/java/de/intevation/gnv/**/package.html: New. diff -r e47e6762b431 -r 734e8301c9ea gnv/src/main/resources/applicationMessages.properties --- a/gnv/src/main/resources/applicationMessages.properties Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/src/main/resources/applicationMessages.properties Mon Mar 29 10:45:08 2010 +0000 @@ -2,6 +2,7 @@ application.name=${pom.name} application.version=${pom.version} application.releasedate=${timestamp} +application.reload=Klicken Sie hier um es erneut zu versuchen gnviewer.app.title = BSH-GDI genericViewer diff -r e47e6762b431 -r 734e8301c9ea gnv/src/main/resources/applicationMessages_en.properties --- a/gnv/src/main/resources/applicationMessages_en.properties Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/src/main/resources/applicationMessages_en.properties Mon Mar 29 10:45:08 2010 +0000 @@ -2,6 +2,7 @@ application.name=${pom.name} application.version=${pom.version} application.releasedate=${timestamp} +application.reload=Click here to try again gnviewer.app.title = BSH-GDI genericViewer diff -r e47e6762b431 -r 734e8301c9ea gnv/src/main/webapp/WEB-INF/config/struts-config.xml --- a/gnv/src/main/webapp/WEB-INF/config/struts-config.xml Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/struts-config.xml Mon Mar 29 10:45:08 2010 +0000 @@ -205,7 +205,21 @@ name="success" path="/WEB-INF/jsp/mainlayout.jsp"/> - + + + + + + diff -r e47e6762b431 -r 734e8301c9ea gnv/src/main/webapp/WEB-INF/jsp/header.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/header.jsp Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/header.jsp Mon Mar 29 10:45:08 2010 +0000 @@ -44,7 +44,13 @@ <%if (exceptionProject != null) {%> -
+
+ +
+ "> + + +
<%}%>
@@ -55,6 +61,11 @@
<%if (exceptionMessage != null){ %> +

+ "> + + +

<%}%>
diff -r e47e6762b431 -r 734e8301c9ea gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp Mon Mar 29 10:45:08 2010 +0000 @@ -59,6 +59,11 @@

+

+ "> + + +

diff -r e47e6762b431 -r 734e8301c9ea gnv/src/main/webapp/styles/default.css --- a/gnv/src/main/webapp/styles/default.css Mon Mar 29 10:41:50 2010 +0000 +++ b/gnv/src/main/webapp/styles/default.css Mon Mar 29 10:45:08 2010 +0000 @@ -205,8 +205,12 @@ } #head a { clear:left; - } + +.reload { + margin-top: 10px; +} + #project { position:absolute; top:27px; @@ -226,8 +230,8 @@ #load_error { position:absolute; - top:27px; - left:425px; + top:75px; + left:375px; width: 400px; text-align: left;