commit | author | age
|
41d500
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
RS |
2 |
|
|
3 |
<ui:composition xmlns="http://www.w3.org/1999/xhtml" |
|
4 |
xmlns:ui="http://java.sun.com/jsf/facelets" |
|
5 |
xmlns:f="http://java.sun.com/jsf/core" |
|
6 |
xmlns:h="http://java.sun.com/jsf/html" |
|
7 |
template="/WEB-INF/templates/default.xhtml"> |
|
8 |
<ui:define name="title"> |
|
9 |
Group View web app |
|
10 |
</ui:define> |
|
11 |
<ui:define name="application_name"> |
|
12 |
Group View web app |
|
13 |
</ui:define> |
|
14 |
<ui:define name="content"> |
|
15 |
<h1>Group View web app</h1> |
|
16 |
<br class="clear"/> |
|
17 |
<h:form id="form"> |
|
18 |
<p class="input"> |
|
19 |
<h:outputLabel value="Select a Group:" for="group" /> |
|
20 |
<h:selectOneMenu id="group" value="#{groupView.currentGroup}" valueChangeListener="#{groupView.update}" onchange="submit()" converter="SelectItemToEntityConverter"> |
|
21 |
<f:selectItem itemLabel="Choose one ..." itemValue="#{null}"/> |
|
22 |
<f:selectItems value="#{groupView.groups}" var="group" itemValue="#{group}" itemLabel="#{group.name}"/> |
|
23 |
</h:selectOneMenu> |
|
24 |
</p> |
|
25 |
<br class="clear"/> |
|
26 |
<br class="clear"/> |
|
27 |
<p> |
|
28 |
<br class="clear"/> |
|
29 |
<br class="clear"/> |
|
30 |
<h:outputLabel value="Employees:"/> |
|
31 |
<br class="clear"/> |
|
32 |
<ul> |
|
33 |
<ui:repeat value="#{groupView.userList}" var="person"> |
|
34 |
<li> |
|
35 |
<strong>Name:</strong><h:outputText value="#{person.name}"/><br/> |
|
36 |
<strong>Email:</strong><h:outputText value="#{person.email.address}"/> |
|
37 |
</li> |
|
38 |
</ui:repeat> |
|
39 |
</ul> |
|
40 |
</p> |
|
41 |
</h:form> |
|
42 |
</ui:define> |
|
43 |
</ui:composition> |