/
pretty-config.xml
86 lines (72 loc) · 2.92 KB
/
pretty-config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!--
This file is part of SocialPM: Agile Project Management Tools (SocialPM)
Copyright (c)2010 Lincoln Baxter, III <lincoln@ocpsoft.com> (OcpSoft)
If you are developing and distributing open source applications under
the GPL Licence, then you are free to use SocialPM under the GPL
License:
SocialPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SocialPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SocialPM. If not, see <http://www.gnu.org/licenses/>.
For OEMs, ISVs, and VARs who distribute SocialPM with their products,
or host SocialPM online, OcpSoft provides flexible OEM commercial
Licences:
To purchase a License, contact OcpSoft (http://ocpsoft.com)
-->
<pretty-config xmlns="http://ocpsoft.com/prettyfaces/2.0.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.com/prettyfaces/2.0.4
http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-2.0.4.xsd">
<rewrite match=".*/" trailingSlash="remove"/>
<!-- Content Pages -->
<!-- Admin Pages -->
<url-mapping id="admin">
<pattern value="/admin" />
<view-id> /faces/pages/admin.xhtml </view-id>
</url-mapping>
<!-- Begin Exception Mappings -->
<url-mapping id="404">
<pattern value="/404" />
<view-id> /faces/pages/404.xhtml </view-id>
</url-mapping>
<url-mapping id="error">
<pattern value="/error" />
<view-id> /faces/pages/error.xhtml </view-id>
</url-mapping>
<!-- End Exception Mappings -->
<url-mapping id="home">
<pattern value="/" />
<view-id> /faces/pages/home/loggedOffHome.xhtml </view-id>
</url-mapping>
<url-mapping id="login">
<pattern value="/login" />
<view-id> /faces/pages/login.xhtml </view-id>
</url-mapping>
<url-mapping id="logout">
<pattern value="/logout" />
<view-id> /faces/pages/login.xhtml </view-id>
<action>#{loginBean.doLogout}</action>
</url-mapping>
<url-mapping id="recover">
<pattern value="/recover" />
<view-id> /faces/pages/register.xhtml </view-id>
</url-mapping>
<url-mapping id="register">
<pattern value="/register" />
<view-id> /faces/pages/register.xhtml </view-id>
</url-mapping>
<url-mapping id="userAccount">
<pattern value="/account" />
<view-id> /faces/pages/profile/userAccount.xhtml </view-id>
</url-mapping>
<url-mapping id="userProfile">
<pattern value="/users/#{paramsBean.userName}" />
<view-id> /faces/pages/profile/userProfile.xhtml </view-id>
</url-mapping>
</pretty-config>