forked from NekoStark/javaee-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote-edit.xhtml
More file actions
26 lines (24 loc) · 1.06 KB
/
note-edit.xhtml
File metadata and controls
26 lines (24 loc) · 1.06 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
<!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>Edit Note</h2>
<h:form>
<fieldset>
<label for="title">Title</label>
<h:inputText id="title" value="#{noteEditController.note.title}"></h:inputText>
<label for="password">Content</label>
<h:inputTextarea value="#{noteEditController.note.body}"></h:inputTextarea>
<h:link styleClass="button button-outline" outcome="home" value="Back"></h:link>
<h:commandButton styleClass="button-primary" action="#{noteEditController.save()}" value="Save">
<f:param name="id" value="#{noteEditController.note.id}"></f:param>
<f:param name="add" value="#{noteEditController.adding}"></f:param>
</h:commandButton>
</fieldset>
</h:form>
</ui:define>
</ui:composition>
</html>