list-roles.xhtml 1.7 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
24
25
26
27
28
29
30
<!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-admin.xhtml">
	<ui:param name="title" value="#{messages.title}"/>

	<ui:define name="content">
	
	<h:form id="form">
	
		<p:dataTable id="dataTable" var="role" value="#{listRoleBean.roleEntityList}">
			<p:column>
				<f:facet name="header">
					<h:outputText value="#{messages.id}" />
				</f:facet>
				<h:outputText value="#{role.id}" />
			</p:column>
			<p:column>
				<f:facet name="header">
					<h:outputText value="#{messages.name}" />
				</f:facet>
31
				<h:link outcome="show-role.xhtml" value="#{role.name}">
michael.simon's avatar
michael.simon committed
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
      				<f:param name="id" value="#{role.id}"/>
    			</h:link>
			</p:column>			
			<p:column>
				<f:facet name="header">
					<h:outputText value="#{messages.class}" />
				</f:facet>
				<h:outputText value="#{role.class.simpleName}" />
			</p:column>			
		</p:dataTable>
 
        <h:link outcome="add-role.xhtml" value="#{messages.add_role}"/><br />
        <h:link outcome="add-admin-role.xhtml" value="#{messages.add_admin_role}"/><br />
        <h:link outcome="add-approver-role.xhtml" value="#{messages.add_approver_role}"/><br />
        <h:link outcome="add-group-admin-role.xhtml" value="#{messages.add_group_admin_role}"/><br />
	
	</h:form>
	</ui:define>
</ui:composition>	
</body>
</html>