]> git.mxchange.org Git - addressbook-war.git/commitdiff
fixed message key + added debug output and output of id number on success
authorRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 11:51:40 +0000 (13:51 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 11:51:40 +0000 (13:51 +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/base.tpl
web/login/login_show_addressbook.xhtml

index dab0e49d61cea8cfcfa9abd3e7f3516184c38964..479bf3319d4d66e461f0471fdb4740ef3d123634 100644 (file)
@@ -186,7 +186,7 @@ PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Adressbucheintr\u00e4ge zeigen
 CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Alle Adressbuchentr\u00e4ge anzeigen:
 ADDRESSBOOK_TOTAL_ENTRIES_TITLE=Eintr\u00e4ge im Adressbuch
 PARAMETER_ADDRESSBOOK_ID_MISSING=Bitte diese Seite mit Id-Nummer aufrufen.
-PARAMERER_ADDRESSBOOK_ID_INVALID=Id-Nummer f\u00fcr Adressbuch ung\u00fcltig. Bitte links weiter navigieren.
+PARAMETER_ADDRESSBOOK_ID_INVALID=Id-Nummer f\u00fcr Adressbuch ung\u00fcltig. Bitte links weiter navigieren.
 ENTERED_HOUSE_NUMBER_INVALID=Die eingegebene Hausnummer ist ung\u00fcltig.
 ENTERED_ZIP_CODE_INVALID=Die eingegebene Postleitzahl ist ung\u00fcltig.
 PARAMETER_ADDRESSBOOK_ID_NOT_FOUND=Der angeklickte Link ist nicht mehr g\u00fcltig: Adressbuch mit der Id-Nummer nicht gefunden.
index 77314b27d6b0bf248edc7efde46d54f931b9048f..b4fb91b28a7155e8fbc0008ca269893a8437d1b2 100644 (file)
@@ -186,7 +186,7 @@ PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Show address book entries
 CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Show all address book entries:
 ADDRESSBOOK_TOTAL_ENTRIES_TITLE=Entries in address book
 PARAMETER_ADDRESSBOOK_ID_MISSING=Please call this web page with id number.
-PARAMERER_ADDRESSBOOK_ID_INVALID=Id number for address book invalid. Please continue navigating on left menu.
+PARAMETER_ADDRESSBOOK_ID_INVALID=Id number for address book invalid. Please continue navigating on left menu.
 ENTERED_HOUSE_NUMBER_INVALID=The entered house number is invalid.
 ENTERED_ZIP_CODE_INVALID=The entered ZIP code is invalid.
 PARAMETER_ADDRESSBOOK_ID_NOT_FOUND=The clicked link is no longer valid: Address book with entered id number does not exist (anymore).
index a8f8d63cfc761c67fe0a2e521c07bf7339ca5c01..a7fd00dd007246a1447f85a39804eabc37916703 100644 (file)
                <div id="footer">
                        <ui:insert name="footer">Default footer</ui:insert>
                </div>
+
+               <div id="debug">
+                       Debug:
+                       <h:messages showDetail="true" showSummary="true" />
+               </div>
        </h:body>
 </html>
index 42bfc43ff838a529a73dc9c16594848782e73aae..36aebb7f73930e4b93535295060ad15ac9a3883a 100644 (file)
@@ -7,8 +7,8 @@
          >
 
        <f:metadata>
-               <f:viewParam id="addressbookId" name="addressbook_id" value="#{addressbookController.addressbookId}" required="true" requiredMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_MISSING}" converterMessage="#{msg.PARAMERER_ADDRESSBOOK_ID_INVALID}" validatorMessage="#{PARAMETER_ADDRESSBOOK_ID_NOT_FOUND}">
-                       <f:convertNumber for="addressbookId" type="long" minIntegerDigits="1" maxIntegerDigits="20" />
+               <f:viewParam id="addressbookId" name="addressbook_id" value="#{addressbookController.addressbookId}" required="true" requiredMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_MISSING}" converterMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_INVALID}" validatorMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_NOT_FOUND}">
+                       <f:convertNumber for="addressbookId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
                        <f:validator for="addressbookId" validatorId="AddressbookIdValidator" />
                </f:viewParam>
        </f:metadata>
@@ -22,6 +22,7 @@
 
                <ui:define name="content">
                        <h:panelGrid headerClass="table_header" footerClass="table_footer" class="table" columns="3">
+                               ID: #{addressbookController.addressbookId}
                        </h:panelGrid>
                </ui:define>
        </ui:composition>