forked from NekoStark/javaee-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.xhtml
More file actions
48 lines (43 loc) · 1.32 KB
/
Copy pathhome.xhtml
File metadata and controls
48 lines (43 loc) · 1.32 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="layout/template.xhtml">
<ui:define name="body">
<h2>Your Notes</h2>
<table>
<thead>
<tr>
<th>Title</th>
<th>Creation Date</th>
<th></th>
</tr>
</thead>
<tbody>
<ui:repeat var="note" value="#{noteListController.notes}">
<tr>
<td>#{note.title}</td>
<td>
<h:outputText value="#{note.creationDate}">
<f:convertDateTime pattern="dd/MM/yyyy HH:mm" />
</h:outputText>
</td>
<td>
<h:link styleClass="button button-outline" outcome="note-view" value="View">
<f:param name="id" value="#{note.id}"></f:param>
</h:link>
<h:link styleClass="button" outcome="note-edit" value="Edit" style="margin-left: 5px;">
<f:param name="id" value="#{note.id}"></f:param>
</h:link>
</td>
</tr>
</ui:repeat>
</tbody>
</table>
<h:link styleClass="button" outcome="note-edit" value="Add New">
<f:param name="add" value="true"></f:param>
</h:link>
</ui:define>
</ui:composition>
</html>