forked from NekoStark/javaee-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote-view.xhtml
More file actions
29 lines (23 loc) · 1004 Bytes
/
note-view.xhtml
File metadata and controls
29 lines (23 loc) · 1004 Bytes
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
<!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>View Note</h2>
<h3>#{noteViewController.note.title}</h3>
<p style="white-space:pre-wrap">#{noteViewController.note.body}</p>
<h5>
<h:outputText value="created at: " />
<h:outputText value="#{noteViewController.note.creationDate}">
<f:convertDateTime pattern="dd/MM/yyyy HH:mm" />
</h:outputText>
</h5>
<h:link styleClass="button button-outline" outcome="home" value="Back"></h:link>
<h:link styleClass="button" outcome="note-edit" value="Edit" style="margin-left: 5px;">
<f:param name="id" value="#{noteViewController.note.id}"></f:param>
</h:link>
</ui:define>
</ui:composition>
</html>