create.xhtml
1.78 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!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">
<ui:composition template="/templates/default-template.xhtml">
<ui:define name="content">
<h:form styleClass="jsfcrud_list_form">
<h:inputText value="#{user.search}" />
<h:commandButton action="userlist" value="Search" />
<h:outputStylesheet name="css/styles.css" />
<h:outputText
value="Item #{catalog.pagingInfo.firstItem + 1} .. #{catalog.pagingInfo.lastItem} of #{catalog.pagingInfo.itemCount} " />
<h:commandButton action="#{user.prevpage}" value="#{msgs.Previous}" />
<h:commandButton action="#{user.nextpage}" value="#{msgs.Next}" />
Size: <h:outputText value="#{user.status.totalHits}" /> pages:<h:outputText
value="#{user.status.getTotalPages()} " />
<h:dataTable id="dt1" value="#{user.items}" var="item">
<h:column>
<f:facet name="header">
<h:outputText value="name" />
</f:facet>
<h:commandLink action="#{user.getDetail}" value="#{item.name}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="id" />
</f:facet>
<h:outputText value="#{item.id}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="nick" />
</f:facet>
<h:outputText value="#{item.nick}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="email" />
</f:facet>
<h:outputText value="#{item.email}"></h:outputText>
</h:column>
</h:dataTable>
</h:form>
</ui:define>
</ui:composition>
</html>