-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xhtml
More file actions
29 lines (29 loc) · 1.19 KB
/
index.xhtml
File metadata and controls
29 lines (29 loc) · 1.19 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
27
28
29
<!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://xmlns.jcp.org/jsf/facelets" xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form>
<p:autoUpdate />
<p:growl />
<p:panelGrid columns="2" style="margin:auto">
<f:facet name="header">
<h:outputText value="J-Framework-Web Demo" />
</f:facet>
<p:outputLabel value="Your Name" />
<p:inputText value="#{controller.model.name}" required="true" id="personName"/>
<p:outputLabel value="Your Age" />
<p:inputText value="#{controller.model.age}" required="true"/>
<f:facet name="footer">
<div align="center">
<p:commandButton value="Say Hello" action="#{controller.sayHello()}" process="@this"/>
<p:commandButton value="Say Hello with Name" action="#{controller.sayHelloWithName()}" process="@this,personName"/>
<p:commandButton value="Say Hello with Object" action="#{controller.sayHelloWithObject()}" process="@form"/>
</div>
</f:facet>
</p:panelGrid>
</h:form>
</h:body>
</html>