]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/faces-config.xml
more stuff cleaned up + added missing files
[addressbook-war.git] / web / WEB-INF / faces-config.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <faces-config version="2.2"
3                           xmlns="http://xmlns.jcp.org/xml/ns/javaee"
4                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5                           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
6         <validator>
7                 <validator-id>PrivacyTermsCheckboxValidator</validator-id>
8                 <validator-class>org.mxchange.jcoreee.validator.bool.privacy_terms.PrivacyTermsCheckboxValidator</validator-class>
9         </validator>
10         <validator>
11                 <validator-id>NameValidator</validator-id>
12                 <validator-class>org.mxchange.jcoreee.validator.string.names.NameValidator</validator-class>
13         </validator>
14         <navigation-rule>
15                 <from-view-id>*</from-view-id>
16                 <navigation-case>
17                         <from-outcome>user_register</from-outcome>
18                         <to-view-id>/user/register.xhtml</to-view-id>
19                 </navigation-case>
20                 <navigation-case>
21                         <from-outcome>index</from-outcome>
22                         <to-view-id>/index.xhtml</to-view-id>
23                 </navigation-case>
24                 <navigation-case>
25                         <from-outcome>user_lost_passwd</from-outcome>
26                         <to-view-id>/user/lost_passwd.xhtml</to-view-id>
27                 </navigation-case>
28                 <navigation-case>
29                         <from-outcome>user_login</from-outcome>
30                         <to-view-id>/user/login.xhtml</to-view-id>
31                 </navigation-case>
32                 <navigation-case>
33                         <from-outcome>terms</from-outcome>
34                         <to-view-id>/terms.xhtml</to-view-id>
35                 </navigation-case>
36                 <navigation-case>
37                         <from-outcome>privacy</from-outcome>
38                         <to-view-id>/privacy.xhtml</to-view-id>
39                 </navigation-case>
40                 <navigation-case>
41                         <from-outcome>imprint</from-outcome>
42                         <to-view-id>/imprint.xhtml</to-view-id>
43                 </navigation-case>
44                 <navigation-case>
45                         <from-outcome>logout</from-outcome>
46                         <to-view-id>/bye.xhtml</to-view-id>
47                 </navigation-case>
48                 <navigation-case>
49                         <from-outcome>admin_product</from-outcome>
50                         <to-view-id>/admin/product.xhtml</to-view-id>
51                 </navigation-case>
52                 <navigation-case>
53                         <from-outcome>admin_category</from-outcome>
54                         <to-view-id>/admin/category.xhtml</to-view-id>
55                 </navigation-case>
56                 <navigation-case>
57                         <from-outcome>admin_index</from-outcome>
58                         <to-view-id>/admin/index.xhtml</to-view-id>
59                 </navigation-case>
60         </navigation-rule>
61         <navigation-rule>
62                 <from-view-id>/admin/admin_logout.xhtml</from-view-id>
63                 <navigation-case>
64                         <from-outcome>index</from-outcome>
65                         <to-view-id>/*</to-view-id>
66                 </navigation-case>
67         </navigation-rule>
68         <application>
69                 <locale-config>
70                         <default-locale>de</default-locale>
71                         <supported-locale>en_US</supported-locale>
72                 </locale-config>
73         </application>
74 </faces-config>