<!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:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core">

   		<f:loadBundle basename="resources" var="msg" />

   		<ui:composition template="/templates/common.xhtml">
						
			<ui:define name="pageTitle">Input User Name</ui:define>
  
			<ui:define name="pageHeader">Facelets Hello Application</ui:define>

			<ui:define name="body">
				<h:message showSummary="true" showDetail="false" style="color: red; font-weight: bold;" for="name" />
				<form jsfc="h:form" id="helloForm">
					${msg.prompt}
					<input label="Name" jsfc="h:inputText" required="true" id="name" value="#{person.name}" />
					<input  type="submit" jsfc="h:commandButton" id="submit"
						action="greeting" value="Say Hello" />
				</form>
				
			</ui:define>
		</ui:composition>
</html>
