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 |
Create Queries |
|
10 |
</ui:define> |
|
11 |
<ui:define name="application_name"> |
|
12 |
Create Queries |
|
13 |
</ui:define> |
|
14 |
<ui:define name="content"> |
|
15 |
<h1>Search Users</h1> |
|
16 |
<br class="clear"/> |
|
17 |
<h:form id="viewform"> |
|
18 |
<p class="input"> |
|
19 |
<h:outputLabel value="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.search}" value="Submit" styleClass="btn" /> |
|
26 |
</p> |
|
27 |
|
|
28 |
<h:outputLabel value="Results:"/><br/> |
|
29 |
<br class="clear"/> |
|
30 |
<ul> |
|
31 |
<ui:repeat value="#{hello.results}" var="person"> |
|
32 |
<li> |
|
33 |
<h:outputText value="#{person.id} -- #{person.name}"/> |
|
34 |
|
|
35 |
<br/> |
|
36 |
|
|
37 |
</li> |
|
38 |
</ui:repeat> |
|
39 |
</ul> |
|
40 |
<a href="/create-queries/index.xhtml">Back</a> |
|
41 |
</h:form> |
|
42 |
</ui:define> |
|
43 |
</ui:composition> |