commit | author | age
|
aaf094
|
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 |
Persist Entity web app |
|
10 |
</ui:define> |
|
11 |
<ui:define name="application_name"> |
|
12 |
Persist Entity web app |
|
13 |
</ui:define> |
|
14 |
<ui:define name="content"> |
|
15 |
<h1>Persist Entity web app</h1> |
|
16 |
<br class="clear"/> |
|
17 |
<h:form id="form"> |
|
18 |
<p class="input"> |
|
19 |
<h:outputLabel value="Enter your name:" for="name" /> |
|
20 |
<h:inputText value="#{hello.name}" id="name" required="true" requiredMessage="Name is required"/> |
|
21 |
</p> |
|
22 |
<br class="clear"/> |
|
23 |
<br class="clear"/> |
|
24 |
<p class="input"> |
|
25 |
<h:commandButton action="#{hello.sayHello()}" value="Submit" styleClass="btn" /> |
|
26 |
</p> |
|
27 |
<br class="clear"/> |
|
28 |
<br class="clear"/> |
|
29 |
<h:messages styleClass="messages"/> |
|
30 |
<a href="/persist-entity/viewPersons.xhtml">View all names</a> |
|
31 |
<a href="/persist-entity/viewPerson.xhtml">Search a name</a> |
|
32 |
</h:form> |
|
33 |
</ui:define> |
|
34 |
</ui:composition> |