]> git.mxchange.org Git - jfinancials-war.git/commitdiff
added user_profile.xhtml and login_shared_addressbooks.xhtml + their i18n strings
authorRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 13:17:48 +0000 (15:17 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 13:17:48 +0000 (15:17 +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/faces-config.xml
web/login/login_list_sharing_addressbooks.xhtml [new file with mode: 0644]
web/login/login_user_list.xhtml
web/user/user_profile.xhtml [new file with mode: 0644]

index 6ed629a0e00b70e355bb6f340a78eb4451ecb612..91451aa9f03538cfba55fb3655a22806687e51ef 100644 (file)
@@ -213,3 +213,7 @@ USER_CREATED_TITLE=Wann der Benutzer dieser Community beigetreten ist.
 USER_LIST_SHARING_ADDRESSBOOKS=Freigegebene Adressb\u00fccher:
 LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS=Auflisten
 LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS_TITLE=Listet alle mit dem Benutzer geteilte Adressb\u00fccher auf.
+PAGE_TITLE_INDEX_USER_PROFILE=Benutzerprofil
+CONTENT_TITLE_INDEX_USER_PROFILE=\u00d6ffentliches Profil des Benutzers:
+PAGE_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS=Mit einem Benutzer geteilte Adressb\u00fccher
+CONTENT_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS=Mit einem Benutzer geteilte Adressb\u00fccher auflisten:
index 192f6ee158be511230eb59bcd1120efeaf997fb8..1b3b06ad89c1070a74940ad08ecc9b6c08378c96 100644 (file)
@@ -213,3 +213,7 @@ USER_CREATED_TITLE=When the user has joined this community.
 USER_LIST_SHARING_ADDRESSBOOKS=Shared address books:
 LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS=List
 LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS_TITLE=Lists all with this user shared address books.
+PAGE_TITLE_INDEX_USER_PROFILE=User profile
+CONTENT_TITLE_INDEX_USER_PROFILE=Public profile of the user:
+PAGE_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS=With a user shared address books
+CONTENT_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS=List with a user shared address books:
index e3cc2c23b6dcee2acda2156787e38c741c797973..79a7df9fc77733733bf9495f45363b475794fa77 100644 (file)
@@ -3,6 +3,12 @@
                          xmlns="http://xmlns.jcp.org/xml/ns/javaee"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
+       <application>
+               <locale-config>
+                       <default-locale>de</default-locale>
+                       <supported-locale>en_US</supported-locale>
+               </locale-config>
+       </application>
        <validator>
                <validator-id>PrivacyTermsCheckboxValidator</validator-id>
                <validator-class>org.mxchange.jcoreee.validator.bool.privacy_terms.PrivacyTermsCheckboxValidator</validator-class>
                        <from-outcome>login_shared_addressbooks</from-outcome>
                        <to-view-id>/login/login_shared_addressbooks.xhtml</to-view-id>
                </navigation-case>
+               <navigation-case>
+                       <from-outcome>user_profile</from-outcome>
+                       <to-view-id>/user/user_profile.xhtml</to-view-id>
+               </navigation-case>
        </navigation-rule>
        <navigation-rule>
                <from-view-id>/user/login.xhtml</from-view-id>
                        <to-view-id>/login/login_show_addressbook_entries.xhtml</to-view-id>
                </navigation-case>
        </navigation-rule>
-       <application>
-               <locale-config>
-                       <default-locale>de</default-locale>
-                       <supported-locale>en_US</supported-locale>
-               </locale-config>
-       </application>
+       <navigation-rule>
+               <from-view-id>/login/login_user_list.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_list_sharing_addressbooks</from-outcome>
+                       <to-view-id>/login/login_shared_addressbooks.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
 </faces-config>
diff --git a/web/login/login_list_sharing_addressbooks.xhtml b/web/login/login_list_sharing_addressbooks.xhtml
new file mode 100644 (file)
index 0000000..34c13e5
--- /dev/null
@@ -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_LOGIN_LIST_SHARING_ADDRESSBOOKS}</ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.CONTENT_TITLE_LOGIN_LIST_SHARING_ADDRESSBOOKS}
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+       </ui:composition>
+</html>
index 8c53529f2bdffcd3f8b7ad55bb32ed35e09d53d3..d2e485412d963c94e1b1faab417ac47b7cfe888a 100644 (file)
                                <h:dataTable id="userList" var="user" value="#{userController.allPublicUsers()}" headerClass="table_header_column25" summary="#{msg.TABLE_SUMMARY_LOGIN_USER_LIST}" rendered="#{userController.isPublicUserRegistered()}">
                                        <h:column>
                                                <f:facet name="header">#{msg.USER_ID}</f:facet>
-                                               <h:link outcome="login_user_profile" value="#{user.userId}">
+                                               <h:link outcome="user_profile" value="#{user.userId}">
                                                        <f:param name="profile" value="#{user.userId}" />
                                                </h:link>
                                        </h:column>
 
                                        <h:column>
                                                <f:facet name="header">#{msg.USER_NAME}</f:facet>
-                                               <h:link outcome="login_user_profile" value="#{user.userName}">
+                                               <h:link outcome="user_profile" value="#{user.userName}">
                                                        <f:param name="profile" value="#{user.userId}" />
                                                </h:link>
                                        </h:column>
diff --git a/web/user/user_profile.xhtml b/web/user/user_profile.xhtml
new file mode 100644 (file)
index 0000000..4866ab0
--- /dev/null
@@ -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/guest/guest_base.tpl">
+               <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+       </ui:composition>
+</html>