<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:h="http://java.sun.com/jsf/html"
|
template="/WEB-INF/templates/default.xhtml">
|
<ui:define name="title">
|
Persist Entity web app
|
</ui:define>
|
<ui:define name="application_name">
|
Persist Entity web app
|
</ui:define>
|
<ui:define name="content">
|
<h1>Persist Entity web app</h1>
|
<br class="clear"/>
|
<h:form id="Personform">
|
<p class="input">
|
<h:outputLabel value="Enter Id:" for="id" />
|
<h:inputText value="#{hello.id}" id="id" required="true" requiredMessage="Id is required"/>
|
</p>
|
<br class="clear"/>
|
<br class="clear"/>
|
<p class="input">
|
<h:commandButton action="#{hello.getPerson()}" value="Submit" styleClass="btn" />
|
</p>
|
<br class="clear"/>
|
<br class="clear"/>
|
<h:messages styleClass="messages"/>
|
<a href="/persist-entity/index.xhtml">Back</a>
|
</h:form>
|
</ui:define>
|
</ui:composition>
|