]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/WEB-INF/faces-config.xml
Continued a bit:
[addressbook-war.git] / web / WEB-INF / faces-config.xml
index 2078bf98f1b48902718bb5ce04a2c28592bf76c7..c0b8019492aba09c983047ced82d592d0f1761dc 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_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>
                <validator-id>NameValidator</validator-id>
                <validator-class>org.mxchange.jcoreee.validator.string.names.NameValidator</validator-class>
        </validator>
+       <validator>
+               <validator-id>AddressbookNameValidator</validator-id>
+               <validator-class>org.mxchange.addressbook.validator.names.AddressbookNameValidator</validator-class>
+       </validator>
+       <validator>
+               <validator-id>PhoneNumberValidator</validator-id>
+               <validator-class>org.mxchange.jphone.validators.PhoneNumberValidator</validator-class>
+       </validator>
+       <validator>
+               <validator-id>AddressbookIdValidator</validator-id>
+               <validator-class>org.mxchange.addressbook.validator.addressbook.AddressbookIdValidator</validator-class>
+       </validator>
+       <validator>
+               <validator-id>UserProfileVisibilityValidator</validator-id>
+               <validator-class>org.mxchange.addressbook.validator.booleans.UserProfileVisibilityValidator</validator-class>
+       </validator>
+       <validator>
+               <validator-id>UserIdValidator</validator-id>
+               <validator-class>org.mxchange.addressbook.validator.user.UserIdValidator</validator-class>
+       </validator>
+       <validator>
+               <validator-id>AddressbookUserPasswordValidator</validator-id>
+               <validator-class>org.mxchange.addressbook.validators.password.AddressbookUserPasswordValidator</validator-class>
+       </validator>
        <navigation-rule>
                <from-view-id>*</from-view-id>
                <navigation-case>
                </navigation-case>
                <navigation-case>
                        <from-outcome>logout</from-outcome>
-                       <to-view-id>/bye.xhtml</to-view-id>
+                       <to-view-id>/logout.xhtml</to-view-id>
                </navigation-case>
                <navigation-case>
                        <from-outcome>admin_index</from-outcome>
                        <to-view-id>/admin/index.xhtml</to-view-id>
                </navigation-case>
-           <navigation-case>
-               <from-outcome>login_index</from-outcome>
-               <to-view-id>/login/index.xhtml</to-view-id>
-           </navigation-case>
+               <navigation-case>
+                       <from-outcome>login_index</from-outcome>
+                       <to-view-id>/login/login_index.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>user_resend_link</from-outcome>
+                       <to-view-id>/user/resend_link.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>login_own_addressbooks</from-outcome>
+                       <to-view-id>/login/login_own_addressbooks.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_logout</from-outcome>
+                       <to-view-id>/admin/admin_logout.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>basket</from-outcome>
+                       <to-view-id>/basket.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>exception</from-outcome>
+                       <to-view-id>/exception.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_list_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_list.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_list_countries</from-outcome>
+                       <to-view-id>/admin/country/admin_country_list.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_list_mobile_provider</from-outcome>
+                       <to-view-id>/admin/mobile_provider/admin_mobile_provider_list.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_list_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_list.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/user/login.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login</from-outcome>
+                       <to-view-id>/login/login_index.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/user/register.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>register_done</from-outcome>
+                       <to-view-id>/user/register_done.xhtml</to-view-id>
+               </navigation-case>
        </navigation-rule>
        <navigation-rule>
                <from-view-id>/admin/admin_logout.xhtml</from-view-id>
                <navigation-case>
                        <from-outcome>index</from-outcome>
-                       <to-view-id>/*</to-view-id>
+                       <to-view-id>/index.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>/user/login.xhtml</from-view-id>
-        <navigation-case>
-            <from-outcome>login</from-outcome>
-            <to-view-id>/login/index.xhtml</to-view-id>
-        </navigation-case>
-    </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/login/login_own_addressbooks.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_add_addressbook</from-outcome>
+                       <to-view-id>/login/login_add_addressbook.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>user_show_addressbook</from-outcome>
+                       <to-view-id>/user/show_addressbook.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>show_addressbook_entries</from-outcome>
+                       <to-view-id>/user/show_addressbook_entries.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/user/user_list.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_list_sharing_addressbooks</from-outcome>
+                       <to-view-id>/login/login_list_sharing_addressbooks.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <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>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/login/login_shared_addressbooks.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>user_show_addressbook</from-outcome>
+                       <to-view-id>/user/show_addressbook.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/login/login_edit_user_data.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_change_email_address</from-outcome>
+                       <to-view-id>/login/login_change_email_address.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>login_change_password</from-outcome>
+                       <to-view-id>/login/login_change_password.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>login_change_personal_data</from-outcome>
+                       <to-view-id>/login/login_change_personal_data.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/login/login_change_password.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_data_saved</from-outcome>
+                       <to-view-id>/login/login_data_saved.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/login/login_change_email_address.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_data_saved</from-outcome>
+                       <to-view-id>/login/login_data_saved.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_product</from-outcome>
+                       <to-view-id>/admin/admin_product_delete.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/login/login_change_personal_data.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>login_data_saved</from-outcome>
+                       <to-view-id>/login/login_data_saved.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_category</from-outcome>
+                       <to-view-id>/admin/admin_category_delete.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/country/admin_country_list.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_edit_country</from-outcome>
+                       <to-view-id>/admin/country/admin_country_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_country</from-outcome>
+                       <to-view-id>/admin/country/admin_country_delete.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/mobile_provider/admin_mobile_provider_list.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_edit_mobile_provider</from-outcome>
+                       <to-view-id>/admin/mobile_provider/admin_mobile_provider_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_mobile_provider</from-outcome>
+                       <to-view-id>/admin/mobile_provider/admin_mobile_provider_delete.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_show_mobile_provider</from-outcome>
+                       <to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/user/admin_user_list.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_show_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_show.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_delete.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_unlock_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_unlock.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/user/admin_user_show.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_show_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_show.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_unlink_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_unlink.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_delete.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_unlock_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_unlock.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_contact</from-outcome>
+                       <to-view-id>/admin/contact/admin_contact_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_show_mobile_provider</from-outcome>
+                       <to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/cellphone/admin_contact_cellphone_list.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_show_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_show.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/cellphone/admin_contact_cellphone_show.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_show_mobile_provider</from-outcome>
+                       <to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_edit.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_delete_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_delete.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_unlink_contact_cellphone</from-outcome>
+                       <to-view-id>/admin/cellphone/admin_contact_cellphone_unlink.xhtml</to-view-id>
+               </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_show_contact</from-outcome>
+                       <to-view-id>/admin/contact/admin_contact_show.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
+       <!--
+       <factory>
+               <exception-handler-factory>
+                       org.mxchange.jcoreee.exceptions.CustomExceptionHandlerFactory
+               </exception-handler-factory>
+       </factory>
+       //-->
 </faces-config>