From: Roland Haeder <roland@mxchange.org> Date: Fri, 16 Oct 2015 12:53:20 +0000 (+0200) Subject: Renamed login/login_show_adressbook* -> user/show_addressbook* and maybe all language... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e4c4cbbb225f8a351be5fa82d8511b5b237353d;p=jfinancials-war.git Renamed login/login_show_adressbook* -> user/show_addressbook* and maybe all language strings? Signed-off-by:Roland Häder <roland@mxchange.org> --- diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index 574d0226..f0eec34e 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -16,7 +16,7 @@ <Node id="admin/product.xhtml" x="900" y="300" zoom="true"/> </Scope> <Scope Scope="Project"> - <Node id="login/login_show_addressbook.xhtml" x="1650" y="150" zoom="true"/> + <Node id="user/show_addressbook.xhtml" x="1650" y="150" zoom="true"/> <Node id="user/login.xhtml" x="900" y="150" zoom="true"/> <Node id="login/login_other_addressbooks.xhtml" x="650" y="450" zoom="true"/> <Node id="user/login_error.xhtml" x="1400" y="150" zoom="true"/> @@ -36,7 +36,7 @@ <Node id="user/register_done.xhtml" x="1150" y="300" zoom="true"/> <Node id="bye.xhtml" x="650" y="300" zoom="true"/> <Node id="login/login_shared_addressbooks.xhtml" x="1150" y="450" zoom="true"/> - <Node id="login/login_show_addressbook_entries.xhtml" x="650" y="750" zoom="true"/> + <Node id="user/show_addressbook_entries.xhtml" x="650" y="750" zoom="true"/> <Node id="index.xhtml" x="650" y="600" zoom="true"/> <Node id="imprint.xhtml" x="900" y="450" zoom="true"/> <Node id="login/login_index.xhtml" x="150" y="750" zoom="true"/> diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index c9ed444d..0623ee56 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -178,12 +178,12 @@ ADDRESSBOOK_NAME=Addressbuchname: ADDRESSBOOK_NAME_TITLE=Name des Adressbuches ADDRESSBOOK_CREATED=Erstellt: ADDRESSBOOK_CREATED_TITLE=Wann das Adressbuch erstellt wurde. -LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE=Adressbuch anzeigen -PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK=Adressbuch anzeigen -CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK=Anzeigen des ausgew\u00e4hlten Adressbuchs: +LINK_SHOW_ADDRESSBOOK_TITLE=Adressbuch anzeigen +PAGE_TITLE_USER_SHOW_ADDRESSBOOK=Adressbuch anzeigen +CONTENT_TITLE_USER_SHOW_ADDRESSBOOK=Anzeigen des ausgew\u00e4hlten Adressbuchs: ADDRESSBOOK_TOTAL_ENTRIES=Eintr\u00e4ge: -PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Adressbucheintr\u00e4ge zeigen -CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Alle Adressbuchentr\u00e4ge anzeigen: +PAGE_TITLE_USER_SHOW_ADDRESSBOOK_ENTRIES=Adressbucheintr\u00e4ge zeigen +CONTENT_TITLE_USER_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. PARAMETER_ADDRESSBOOK_ID_INVALID=Id-Nummer f\u00fcr Adressbuch ung\u00fcltig. Bitte links weiter navigieren. diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 9bf4873b..6b104835 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -178,12 +178,12 @@ ADDRESSBOOK_NAME=Address book name: ADDRESSBOOK_NAME_TITLE=Name of the address book ADDRESSBOOK_CREATED=Created: ADDRESSBOOK_CREATED_TITLE=When the address book was created. -LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE=Show address book -PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK=Show address book -CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK=Show selected address book: +LINK_SHOW_ADDRESSBOOK_TITLE=Show address book +PAGE_TITLE_USER_SHOW_ADDRESSBOOK=Show address book +CONTENT_TITLE_USER_SHOW_ADDRESSBOOK=Show selected address book: ADDRESSBOOK_TOTAL_ENTRIES=Entries: -PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Show address book entries -CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES=Show all address book entries: +PAGE_TITLE_USER_SHOW_ADDRESSBOOK_ENTRIES=Show address book entries +CONTENT_TITLE_USER_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. PARAMETER_ADDRESSBOOK_ID_INVALID=Id number for address book invalid. Please continue navigating on left menu. diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index b41a48a2..d7c7b34f 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -144,12 +144,12 @@ <to-view-id>/login/login_add_addressbook.xhtml</to-view-id> </navigation-case> <navigation-case> - <from-outcome>login_show_addressbook</from-outcome> - <to-view-id>/login/login_show_addressbook.xhtml</to-view-id> + <from-outcome>user_show_addressbook</from-outcome> + <to-view-id>/user/show_addressbook.xhtml</to-view-id> </navigation-case> <navigation-case> - <from-outcome>login_show_addressbook_entries</from-outcome> - <to-view-id>/login/login_show_addressbook_entries.xhtml</to-view-id> + <from-outcome>show_addressbook_entries</from-outcome> + <to-view-id>/login/show_addressbook_entries.xhtml</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> @@ -160,7 +160,7 @@ </navigation-case> </navigation-rule> <navigation-rule> - <from-view-id>/login/login_show_addressbook.xhtml</from-view-id> + <from-view-id>/user/show_addressbook.xhtml</from-view-id> <navigation-case> <from-outcome>login_start_sharing_addressbook</from-outcome> <to-view-id>/login/login_start_sharing_addressbook.xhtml</to-view-id> diff --git a/web/login/login_own_addressbooks.xhtml b/web/login/login_own_addressbooks.xhtml index f6c414f8..7fe3565e 100644 --- a/web/login/login_own_addressbooks.xhtml +++ b/web/login/login_own_addressbooks.xhtml @@ -30,8 +30,8 @@ <h:column> <f:facet name="header">#{msg.ADDRESSBOOK_NAME}</f:facet> - <h:link outcome="login_show_addressbook" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE}"> - <f:param name="addressbook_id" value="#{addressbook.addressbookId}" /> + <h:link outcome="user_show_addressbook" title="#{msg.LINK_SHOW_ADDRESSBOOK_TITLE}"> + <f:param name="addressbookId" value="#{addressbook.addressbookId}" /> <h:outputText id="addressbookName" value="#{addressbook.addressbookName}" title="#{msg.ADDRESSBOOK_NAME_TITLE}" /> </h:link> </h:column> @@ -39,8 +39,8 @@ <h:column> <f:facet name="header">#{msg.ADDRESSBOOK_TOTAL_ENTRIES}</f:facet> - <h:link outcome="login_show_addressbook_entries" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_ENTRIES_TITLE}"> - <f:param name="addressbook_id" value="#{addressbook.addressbookId}" /> + <h:link outcome="show_addressbook_entries" title="#{msg.LINK_SHOW_ADDRESSBOOK_ENTRIES_TITLE}"> + <f:param name="addressbookId" value="#{addressbook.addressbookId}" /> <h:outputText id="addressbookEntries" value="#{addressbookController.allEntriesSize(addressbook)}" title="#{msg.ADDRESSBOOK_TOTAL_ENTRIES_TITLE}" /> </h:link> </h:column> diff --git a/web/login/login_shared_addressbooks.xhtml b/web/login/login_shared_addressbooks.xhtml index 2f6ba09a..c6b56daa 100644 --- a/web/login/login_shared_addressbooks.xhtml +++ b/web/login/login_shared_addressbooks.xhtml @@ -24,8 +24,8 @@ <h:column> <f:facet name="header">#{msg.SHARED_ADDRESSBOOK}</f:facet> - <h:link outcome="login_show_addressbook" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE}"> - <f:param name="addressbook_id" value="#{share.shareAddressbook.addressbookId}" /> + <h:link outcome="user_show_addressbook" title="#{msg.LINK_SHOW_ADDRESSBOOK_TITLE}"> + <f:param name="addressbookId" value="#{share.shareAddressbook.addressbookId}" /> <h:outputText id="addressbookName" value="#{share.shareAddressbook.addressbookName}" title="#{msg.SHARED_ADDRESSBOOK_TITLE}" /> </h:link> </h:column> diff --git a/web/login/login_show_addressbook.xhtml b/web/login/login_show_addressbook.xhtml deleted file mode 100644 index c5ab81ad..00000000 --- a/web/login/login_show_addressbook.xhtml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" - xmlns:ui="http://java.sun.com/jsf/facelets" - xmlns:h="http://xmlns.jcp.org/jsf/html" - xmlns:f="http://xmlns.jcp.org/jsf/core" - > - - <f:metadata> - <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> - - <ui:composition template="/WEB-INF/templates/#{loginController.templateType}/#{loginController.templateType}_base.tpl"> - <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK}</ui:define> - <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_SHOW_ADDRESSBOOK}</ui:define> - - <ui:define name="content_header"> - #{msg.CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK} - </ui:define> - - <ui:define name="content"> - <ui:fragment rendered="#{addressbookController.isAddressbookLoaded()}"> - <div class="table_big"> - <div class="table_header"> - #{msg.TABLE_HEADER_SHOW_ADDRESSBOOK} - </div> - - <div class="para"> - <h:panelGrid headerClass="table_header_column" columns="5"> - <f:facet name="header">#{msg.ADDRESSBOOK_ID}</f:facet> - <h:outputText id="addressbookId" value="#{addressbookController.addressbookId}" /> - - <f:facet name="header">#{msg.ADDRESSBOOK_NAME}</f:facet> - <h:outputText id="addressbookName" value="#{addressbookController.addressbookName}" /> - - <f:facet name="header">#{msg.ADDRESSBOOK_OWNER}</f:facet> - <h:link id="addressbookUser" outcome="user_profile" value="#{addressbookController.addressbookUser.userName}" /> - - <f:facet name="header">#{msg.ADDRESSBOOK_CREATED}</f:facet> - <h:outputFormat id="addressbookCreated" value="#{addressbookController.addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}"> - <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" /> - </h:outputFormat> - - <f:facet name="header">#{msg.ADDRESSBOOK_STATUS}</f:facet> - <h:outputFormat id="addressbookCreated" value="#{msg[addressbookController.addressbook.addressbookStatus.messageKey]}" title="#{msg.ADDRESSBOOK_STATUS_TITLE}" /> - </h:panelGrid> - </div> - - <div class="table_footer"> - <ui:fragment rendered="#{addressbookController.isOwnAddressbook()}"> - <h:link id="startSharing" outcome="login_start_sharing_addressbook" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK_TITLE}" /> - </ui:fragment> - - <ui:fragment rendered="#{addressbookController.isOtherAddressbook()}"> - Bla bla - </ui:fragment> - </div> - </div> - </ui:fragment> - </ui:define> - </ui:composition> -</html> diff --git a/web/login/login_show_addressbook_entries.xhtml b/web/login/login_show_addressbook_entries.xhtml deleted file mode 100644 index 5f53e615..00000000 --- a/web/login/login_show_addressbook_entries.xhtml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" - xmlns:ui="http://java.sun.com/jsf/facelets" - xmlns:h="http://xmlns.jcp.org/jsf/html" - xmlns:f="http://xmlns.jcp.org/jsf/core" - > - - <ui:composition template="/WEB-INF/templates/login/login_base.tpl"> - <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES}</ui:define> - - <ui:define name="content_header"> - #{msg.CONTENT_TITLE_LOGIN_SHOW_ADDRESSBOOK_ENTRIES} - </ui:define> - - <ui:define name="content"> - Here goes your content. - </ui:define> - </ui:composition> -</html> diff --git a/web/user/show_addressbook.xhtml b/web/user/show_addressbook.xhtml new file mode 100644 index 00000000..9bf683e4 --- /dev/null +++ b/web/user/show_addressbook.xhtml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html" + xmlns:f="http://xmlns.jcp.org/jsf/core" + > + + <f:metadata> + <f:viewParam id="addressbookId" name="addressbookId" 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> + + <ui:composition template="/WEB-INF/templates/#{loginController.templateType}/#{loginController.templateType}_base.tpl"> + <ui:define name="login_title">#{msg.PAGE_TITLE_USER_SHOW_ADDRESSBOOK}</ui:define> + <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_SHOW_ADDRESSBOOK}</ui:define> + + <ui:define name="content_header"> + #{msg.CONTENT_TITLE_USER_SHOW_ADDRESSBOOK} + </ui:define> + + <ui:define name="content"> + <ui:fragment rendered="#{addressbookController.isAddressbookLoaded()}"> + <div class="table_big"> + <div class="table_header"> + #{msg.TABLE_HEADER_SHOW_ADDRESSBOOK} + </div> + + <div class="para"> + <h:panelGrid headerClass="table_header_column" columns="5"> + <f:facet name="header">#{msg.ADDRESSBOOK_ID}</f:facet> + <h:outputText id="addressbookId" value="#{addressbookController.addressbookId}" /> + + <f:facet name="header">#{msg.ADDRESSBOOK_NAME}</f:facet> + <h:outputText id="addressbookName" value="#{addressbookController.addressbookName}" /> + + <f:facet name="header">#{msg.ADDRESSBOOK_OWNER}</f:facet> + <h:link id="addressbookUser" outcome="user_profile" value="#{addressbookController.addressbookUser.userName}" /> + + <f:facet name="header">#{msg.ADDRESSBOOK_CREATED}</f:facet> + <h:outputFormat id="addressbookCreated" value="#{addressbookController.addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}"> + <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" /> + </h:outputFormat> + + <f:facet name="header">#{msg.ADDRESSBOOK_STATUS}</f:facet> + <h:outputFormat id="addressbookCreated" value="#{msg[addressbookController.addressbook.addressbookStatus.messageKey]}" title="#{msg.ADDRESSBOOK_STATUS_TITLE}" /> + </h:panelGrid> + </div> + + <div class="table_footer"> + <ui:fragment rendered="#{addressbookController.isOwnAddressbook()}"> + <h:link id="startSharing" outcome="login_start_sharing_addressbook" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK_TITLE}" /> + </ui:fragment> + + <ui:fragment rendered="#{addressbookController.isOtherAddressbook()}"> + Bla bla + </ui:fragment> + </div> + </div> + </ui:fragment> + </ui:define> + </ui:composition> +</html> diff --git a/web/user/show_addressbook_entries.xhtml b/web/user/show_addressbook_entries.xhtml new file mode 100644 index 00000000..e4cb5aee --- /dev/null +++ b/web/user/show_addressbook_entries.xhtml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html" + xmlns:f="http://xmlns.jcp.org/jsf/core" + > + + <ui:composition template="/WEB-INF/templates/login/login_base.tpl"> + <ui:define name="login_title">#{msg.PAGE_TITLE_USER_SHOW_ADDRESSBOOK_ENTRIES}</ui:define> + + <ui:define name="content_header"> + #{msg.CONTENT_TITLE_USER_SHOW_ADDRESSBOOK_ENTRIES} + </ui:define> + + <ui:define name="content"> + Here goes your content. + </ui:define> + </ui:composition> +</html>