Commit | Line | Data |
---|---|---|
59e4c94a MS |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <pages xmlns="http://jboss.com/products/seam/pages" | |
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
4 | xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd" | |
5 | ||
6 | no-conversation-view-id="/home.xhtml" | |
7 | login-view-id="/login.xhtml"> | |
8 | ||
9 | <page view-id="*"> | |
10 | <navigation> | |
11 | <rule if-outcome="home"> | |
12 | <redirect view-id="/home.xhtml"/> | |
13 | </rule> | |
14 | </navigation> | |
15 | </page> | |
16 | ||
17 | <exception class="org.jboss.seam.framework.EntityNotFoundException"> | |
18 | <redirect view-id="/error.xhtml"> | |
19 | <message severity="warn">Record not found</message> | |
20 | </redirect> | |
21 | </exception> | |
22 | ||
23 | <exception class="javax.persistence.EntityNotFoundException"> | |
24 | <redirect view-id="/error.xhtml"> | |
25 | <message severity="warn">Record not found</message> | |
26 | </redirect> | |
27 | </exception> | |
28 | ||
29 | <exception class="javax.persistence.EntityExistsException"> | |
30 | <redirect view-id="/error.xhtml"> | |
31 | <message severity="warn">Duplicate record</message> | |
32 | </redirect> | |
33 | </exception> | |
34 | ||
35 | <exception class="javax.persistence.OptimisticLockException"> | |
36 | <end-conversation/> | |
37 | <redirect view-id="/error.xhtml"> | |
38 | <message severity="warn">Another user changed the same data, please try again</message> | |
39 | </redirect> | |
40 | </exception> | |
41 | ||
42 | <exception class="org.jboss.seam.security.AuthorizationException"> | |
43 | <redirect view-id="/error.xhtml"> | |
44 | <message severity="error">You don't have permission to access this resource</message> | |
45 | </redirect> | |
46 | </exception> | |
47 | ||
48 | <exception class="org.jboss.seam.security.NotLoggedInException"> | |
49 | <redirect view-id="/login.xhtml"> | |
50 | <message severity="warn">Por favor, efetue login para acessar este recurso!</message> | |
51 | </redirect> | |
52 | </exception> | |
53 | ||
54 | <exception class="javax.faces.application.ViewExpiredException"> | |
55 | <redirect view-id="/error.xhtml"> | |
56 | <message severity="warn">Your session has timed out, please try again</message> | |
57 | </redirect> | |
58 | </exception> | |
59 | ||
60 | <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" log-level="trace"> | |
61 | <http-error error-code="503" /> | |
62 | </exception> | |
63 | ||
64 | <exception> | |
65 | <redirect view-id="/error.xhtml"> | |
66 | <message severity="error">Unexpected error, please try again</message> | |
67 | </redirect> | |
68 | </exception> | |
69 | ||
70 | </pages> |