]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/faces-config.xml
3f463b9a45fe31e8be1527709ddb1e7926dbf74d
[pizzaservice-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         <application>
7                 <locale-config>
8                         <default-locale>de_DE</default-locale>
9                         <supported-locale>en_US</supported-locale>
10                 </locale-config>
11         </application>
12         <validator>
13                 <validator-id>PrivacyTermsCheckboxValidator</validator-id>
14                 <validator-class>org.mxchange.jcoreee.validator.bool.privacy_terms.PrivacyTermsCheckboxValidator</validator-class>
15         </validator>
16         <validator>
17                 <validator-id>NameValidator</validator-id>
18                 <validator-class>org.mxchange.jcoreee.validator.string.names.NameValidator</validator-class>
19         </validator>
20         <validator>
21                 <validator-id>ItemAmountValidator</validator-id>
22                 <validator-class>org.mxchange.jcoreee.validator.number.item_amount.ItemAmountValidator</validator-class>
23         </validator>
24         <navigation-rule>
25                 <from-view-id>*</from-view-id>
26                 <navigation-case>
27                         <from-outcome>customer_register</from-outcome>
28                         <to-view-id>/customer/register.xhtml</to-view-id>
29                 </navigation-case>
30                 <navigation-case>
31                         <from-outcome>index</from-outcome>
32                         <to-view-id>/index.xhtml</to-view-id>
33                 </navigation-case>
34                 <navigation-case>
35                         <from-outcome>customer_lost_passwd</from-outcome>
36                         <to-view-id>/customer/lost_passwd.xhtml</to-view-id>
37                 </navigation-case>
38                 <navigation-case>
39                         <from-outcome>customer_login</from-outcome>
40                         <to-view-id>/customer/login.xhtml</to-view-id>
41                 </navigation-case>
42                 <navigation-case>
43                         <from-outcome>terms</from-outcome>
44                         <to-view-id>/terms.xhtml</to-view-id>
45                 </navigation-case>
46                 <navigation-case>
47                         <from-outcome>privacy</from-outcome>
48                         <to-view-id>/privacy.xhtml</to-view-id>
49                 </navigation-case>
50                 <navigation-case>
51                         <from-outcome>imprint</from-outcome>
52                         <to-view-id>/imprint.xhtml</to-view-id>
53                 </navigation-case>
54                 <navigation-case>
55                         <from-outcome>logout</from-outcome>
56                         <to-view-id>/logout.xhtml</to-view-id>
57                 </navigation-case>
58                 <navigation-case>
59                         <from-outcome>admin_product</from-outcome>
60                         <to-view-id>/admin/admin_product.xhtml</to-view-id>
61                 </navigation-case>
62                 <navigation-case>
63                         <from-outcome>admin_category</from-outcome>
64                         <to-view-id>/admin/admin_category.xhtml</to-view-id>
65                 </navigation-case>
66                 <navigation-case>
67                         <from-outcome>admin_index</from-outcome>
68                         <to-view-id>/admin/index.xhtml</to-view-id>
69                 </navigation-case>
70                 <navigation-case>
71                         <from-outcome>basket</from-outcome>
72                         <to-view-id>/basket.xhtml</to-view-id>
73                 </navigation-case>
74                 <navigation-case>
75                         <from-outcome>item_not_changed</from-outcome>
76                         <to-view-id>/errorHandler.xhtml</to-view-id>
77                 </navigation-case>
78         </navigation-rule>
79         <navigation-rule>
80                 <from-view-id>/basket.xhtml</from-view-id>
81                 <navigation-case>
82                         <from-outcome>checkout</from-outcome>
83                         <to-view-id>/customer/checkout.xhtml</to-view-id>
84                 </navigation-case>
85         </navigation-rule>
86         <navigation-rule>
87                 <from-view-id>/customer/checkout.xhtml</from-view-id>
88                 <navigation-case>
89                         <from-outcome>checkout2</from-outcome>
90                         <to-view-id>/customer/checkout2.xhtml</to-view-id>
91                 </navigation-case>
92         </navigation-rule>
93         <navigation-rule>
94                 <from-view-id>/index.xhtml</from-view-id>
95                 <navigation-case>
96                         <from-outcome>item_added</from-outcome>
97                         <to-view-id>/item_added.xhtml</to-view-id>
98                 </navigation-case>
99         </navigation-rule>
100         <navigation-rule>
101                 <from-view-id>/customer/checkout2.xhtml</from-view-id>
102                 <navigation-case>
103                         <from-outcome>checkout_done</from-outcome>
104                         <to-view-id>/customer/checkout_done.xhtml</to-view-id>
105                 </navigation-case>
106                 <navigation-case>
107                         <from-outcome>empty_basket</from-outcome>
108                         <to-view-id>/customer/empty_basket.xhtml</to-view-id>
109                 </navigation-case>
110         </navigation-rule>
111         <navigation-rule>
112                 <from-view-id>/admin/admin_logout.xhtml</from-view-id>
113                 <navigation-case>
114                         <from-outcome>index</from-outcome>
115                         <to-view-id>/*</to-view-id>
116                 </navigation-case>
117         </navigation-rule>
118         <application>
119                 <locale-config>
120                         <default-locale>de</default-locale>
121                         <supported-locale>en_US</supported-locale>
122                 </locale-config>
123         </application>
124 </faces-config>