register.xhtml 1.93 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
19
20
21
22
23
<!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>
<f:view>
	<f:metadata>
		<f:event type="javax.faces.event.PreRenderViewEvent"
            listener="#{registerUserBean.preRenderView}" />
	</f:metadata>

<ui:composition template="/template/default.xhtml">
	<ui:param name="title" value="#{messages.title}"/>

	<ui:define name="content">

24
	<h:form id="form" styleClass="form full fancy">
michael.simon's avatar
michael.simon committed
25
26
27

		<div class="panel">
			<p:panel header="#{messages.welcome_head}">
michael.simon's avatar
michael.simon committed
28
				<div><h:outputText value="#{messages.welcome_register}" escape="false"/></div>
michael.simon's avatar
michael.simon committed
29
30
31
32
33
		
				<p:messages id="messageBox" showDetail="true" />
		
				<div class="panel">
					<h3><h:outputText value="#{messages.my_data}:"/></h3>
michael.simon's avatar
michael.simon committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
					<div class="panel">
						<p:dataTable var="key" value="#{registerUserBean.printableAttributesList}">
							<p:column headerText="#{messages.name}">
								#{resourceBundleHelper.resolveMessage(key)}
							</p:column>
							<p:column headerText="#{messages.value}">
								#{registerUserBean.printableAttributesMap[key]}
							</p:column>
						</p:dataTable>
					</div>
					<div class="panel">
						<p:dataList var="key" value="#{registerUserBean.unprintableAttributesMap.keySet().toArray()}">
							#{key}: #{registerUserBean.unprintableAttributesMap[key]}
						</p:dataList>
					</div>
michael.simon's avatar
michael.simon committed
49
50
51
52
53
54
55
56
57
58
59
60
					<p:commandButton id="save" action="#{registerUserBean.save}" value="#{messages.confirm}" ajax="false" 
						disabled="#{registerUserBean.errorState}"/>
				</div>
			</p:panel>
		</div>
	</h:form>
	
	</ui:define>
</ui:composition>
</f:view>
</body>
</html>