Ravi Srinivasan
2018-09-10 aaf094af7ecf98e07e31a231fdab871b25961bd1
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="Personform">
18             <p class="input">
19                 <h:outputLabel value="Enter Id:" for="id" />
20                 <h:inputText value="#{hello.id}" id="id" required="true" requiredMessage="Id is required"/>
21             </p>
22             <br class="clear"/>
23             <br class="clear"/>
24             <p class="input">
25                 <h:commandButton action="#{hello.getPerson()}"  value="Submit" styleClass="btn" />
26             </p>
27             <br class="clear"/>
28             <br class="clear"/>
29             <h:messages styleClass="messages"/>
30             <a href="/persist-entity/index.xhtml">Back</a>
31         </h:form>
32     </ui:define>
33 </ui:composition>