error.xhtml 1.28 KB
Newer Older
michael.simon's avatar
michael.simon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:bw="http://www.scc.kit.edu/bwfacelets"
	xmlns:p="http://primefaces.org/ui">
<head>
<title></title>
</head>
<body>
<ui:composition template="/template/default.xhtml">
	<ui:param name="title" value="#{messages.title}"/>

	<ui:define name="content">

michael.simon's avatar
michael.simon committed
19
		<h3 class="full"><h:outputText value="#{messages.error_msg}"/></h3>
michael.simon's avatar
michael.simon committed
20

michael.simon's avatar
michael.simon committed
21
		<div class="full">
michael.simon's avatar
michael.simon committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
			<p:panel header="#{messages.error_detail}">
				<div style="font-weight: bold;">
					#{requestScope['javax.servlet.error.message']}
				</div>
				<ul>
				    <li>HTTP user agent: #{header['user-agent']}</li>
				    <li>Request URI: #{requestScope['javax.servlet.error.request_uri']}</li>
				    <li>Status code: #{requestScope['javax.servlet.error.status_code']}</li>
				    <li>Exception type: #{requestScope['javax.servlet.error.exception_type']}</li>
				</ul>
				<div>#{errorPageBean.exception}</div>
			</p:panel>
		</div>

	</ui:define>
</ui:composition>
</body>
</html>