]> git.mxchange.org Git - jfinancials-war.git/commitdiff
added template userid_error.tpl for showing errors around the user id + added CSS...
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 07:05:39 +0000 (09:05 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 07:10:06 +0000 (09:10 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/templates/generic/userid_error.tpl [new file with mode: 0644]
web/login/login_list_sharing_addressbooks.xhtml
web/resources/css/cssLayout.css
web/user/user_profile.xhtml

index bc9c6bf4fe0e3c5fcf0c23202e86ca06fdafb8a7..d795388b8c8d7633690425f8d8eeb29a17ace9e1 100644 (file)
@@ -220,3 +220,4 @@ CONTENT_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS=Mit einem Benutzer geteilte Adress
 PARAMETER_USER_ID_MISSING=Benutzernummer nicht angegeben.
 PARAMETER_USER_ID_INVALID=Der angeklickte Link ist nicht mehr g\u00fcltig: Den Benutzer mit der Id-Nummer existiert nicht (mehr).
 PARAMETER_USER_ID_NOT_FOUND=Benutzeraccount mit der Id-Nummer nicht gefunden.
+TABLE_HEADER_ERROR_HANDLING_USER_ID=Fehler beim Verarbeiten der Benutzernummer:
index 052813f1192eca59d7312c81a328f287ae8906a1..12102b26ba8e9c7a7d92cdd669c3f2c01c1a9062 100644 (file)
@@ -220,3 +220,4 @@ CONTENT_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS=List with a user shared address bo
 PARAMETER_USER_ID_MISSING=No user id number provided
 PARAMETER_USER_ID_INVALID=The clicked link is no longer valid: The user with provided id number does not exist (anymore).
 PARAMETER_USER_ID_NOT_FOUND=User account with given id number not found.
+TABLE_HEADER_ERROR_HANDLING_USER_ID=Error while handling user id:
diff --git a/web/WEB-INF/templates/generic/userid_error.tpl b/web/WEB-INF/templates/generic/userid_error.tpl
new file mode 100644 (file)
index 0000000..de95f58
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <div class="table">
+               <div class="table_header">
+                       #{msg.TABLE_HEADER_ERROR_HANDLING_USER_ID}
+               </div>
+
+               <div class="para">
+                       <h:messages errorClass="errors" fatalClass="fatals" infoClass="infos" warnClass="warnings" />
+               </div>
+       </div>
+</ui:composition>
index 38102206fe06543bc45c865c0fa59ceaea7fbab2..71a3e108b32ed59f4b9204f661f23458c3a8c57a 100644 (file)
                        #{msg.CONTENT_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS}
                </ui:define>
 
-               <ui:define name="content">
+               <ui:define name="content" rendered="#{shareController.isShareeUserIdSet()}">
                        Here goes your content.
                </ui:define>
+
+               <ui:define name="content" rendered="#{shareController.isShareeUserIdSet() == false}">
+                       <ui:include src="/WEB-INF/templates/generic/userid_error.tpl" />
+               </ui:define>
        </ui:composition>
 </html>
index 2a3317fce07dc898754ca424d313a0da46402f78..b3730ead5a713fba41f65bb08fdeaebede5a2258 100644 (file)
@@ -156,3 +156,20 @@ ul.footer_nav li.footer_copyright {
 .item_price, .item_total_price {
        text-align: right;
 }
+
+.errors {
+       color: red;
+}
+
+.fatals {
+       color: red;
+       font-weight: bold;
+}
+
+.infos {
+       color: cornflowerblue;
+}
+
+.warnings {
+       color: gold;
+}
index e7b21a7a73498b2d26b8fc8a0afb433b62b2fd9b..0c64bfa949d0ebf6e11cafa5d55d86f3a24a096b 100644 (file)
@@ -23,5 +23,9 @@
                <ui:define name="content" rendered="#{shareController.isShareeUserIdSet()}">
                        Here goes your content.
                </ui:define>
+
+               <ui:define name="content" rendered="#{shareController.isShareeUserIdSet() == false}">
+                       <ui:include src="/WEB-INF/templates/generic/userid_error.tpl" />
+               </ui:define>
        </ui:composition>
 </html>