7
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2 <html xmlns="http://www.w3.org/1999/xhtml"
|
|
3 xmlns:h="http://java.sun.com/jsf/html"
|
|
4 xmlns:f="http://java.sun.com/jsf/core"
|
|
5 xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
6 xmlns:a4j="http://richfaces.org/a4j"
|
|
7 xmlns:rich="http://richfaces.org/rich">
|
|
8 <body>
|
|
9 <ui:composition>
|
|
10
|
|
11 <h:outputText value="#{EntityRepository.resultSummaryMsg}"
|
|
12 rendered="#{!empty EntityRepository.resultSummaryMsg}"
|
|
13 styleClass="sumaryMsg"/>
|
|
14
|
|
15 <h:column rendered="#{!empty EntityRepository.entities}">
|
|
16 <h:outputText value="go to page" styleClass="sumaryMsg"/>
|
103
|
17 <h:inputText value="#{EntityRepository.page}" size="4"/>
|
7
|
18 <h:commandButton value="submit"
|
|
19 actionListener="#{EntityRepository.listenerGoToPage}" />
|
|
20 <h:outputText value=" #{EntityRepository.pageMsg}"
|
|
21 rendered="#{!empty EntityRepository.pageMsg}" style="color:red" />
|
|
22 </h:column>
|
|
23
|
|
24
|
|
25 <h:column rendered="#{!empty EntityRepository.entities}">
|
|
26 <h:panelGroup>
|
|
27 <h:commandButton action="#{EntityRepository.first}" title="rewind"
|
|
28 image="/resources/css/xp/css-images/arrow-first.gif" />
|
|
29 <h:commandButton action="#{EntityRepository.fastRewind}"
|
|
30 title="fast rewind" image="/resources/css/xp/css-images//arrow-fr.gif" />
|
|
31 <h:commandButton action="#{EntityRepository.previous}" title="previous"
|
|
32 image="/resources/css/xp/css-images//arrow-previous.gif" />
|
|
33
|
|
34 <h:outputText value="#{EntityRepository.paginator.recordStatus}" styleClass="sumaryMsg" />
|
|
35
|
|
36 <h:commandButton action="#{EntityRepository.next}" title="next"
|
|
37 image="/resources/css/xp/css-images//arrow-next.gif" />
|
|
38 <h:commandButton action="#{EntityRepository.fastForward}"
|
|
39 title="fast forward" image="/resources/css/xp/css-images//arrow-ff.gif" />
|
|
40 <h:commandButton action="#{EntityRepository.last}" title="fast forward"
|
|
41 image="/resources/css/xp/css-images//arrow-last.gif" />
|
|
42 </h:panelGroup>
|
|
43 </h:column>
|
|
44
|
|
45 <h:column>
|
|
46 <rich:dataTable id="entitiesDataTable"
|
|
47 value="#{EntityRepository.entities}"
|
|
48 rendered="#{!empty EntityRepository.entities}" var="entity"
|
|
49 styleClass="rsPanel"
|
|
50 columnClasses="rsPanelColumn">
|
|
51 <h:column>
|
|
52 <h:outputText value="[#{entity.objectClass}] " />
|
|
53 <h:outputLink value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}">
|
|
54 <h:outputText value="#{entity.ownValue} - [#{entity.id}, #{entity.privacity}]" />
|
|
55 </h:outputLink>
|
|
56 <h:commandButton action="#{EntityRepository.actionEdit}"
|
|
57 rendered="#{Session.canEdit}"
|
|
58 image="/resources/css/xp/css-images//edit16.gif"
|
|
59 title="Edit this entity"/>
|
|
60 </h:column>
|
|
61
|
|
62 </rich:dataTable>
|
|
63
|
|
64 </h:column>
|
|
65
|
|
66 <h:column rendered="#{!empty EntityRepository.entities}">
|
|
67 <h:panelGroup>
|
|
68 <h:commandButton action="#{EntityRepository.first}" title="rewind"
|
|
69 image="/resources/css/xp/css-images/arrow-first.gif" />
|
|
70 <h:commandButton action="#{EntityRepository.fastRewind}"
|
|
71 title="fast rewind" image="/resources/css/xp/css-images//arrow-fr.gif" />
|
|
72 <h:commandButton action="#{EntityRepository.previous}" title="previous"
|
|
73 image="/resources/css/xp/css-images//arrow-previous.gif" />
|
|
74
|
|
75 <h:outputText value="#{EntityRepository.paginator.recordStatus}" styleClass="sumaryMsg" />
|
|
76
|
|
77 <h:commandButton action="#{EntityRepository.next}" title="next"
|
|
78 image="/resources/css/xp/css-images//arrow-next.gif" />
|
|
79 <h:commandButton action="#{EntityRepository.fastForward}"
|
|
80 title="fast forward" image="/resources/css/xp/css-images//arrow-ff.gif" />
|
|
81 <h:commandButton action="#{EntityRepository.last}" title="fast forward"
|
|
82 image="/resources/css/xp/css-images//arrow-last.gif" />
|
|
83 </h:panelGroup>
|
|
84 </h:column>
|
|
85
|
103
|
86 <h:column rendered="#{!empty EntityRepository.entities}">
|
|
87 <h:commandButton value="download all as CSV"
|
|
88 actionListener="#{EntityRepository.downloadAllCsv}" />
|
|
89 </h:column>
|
7
|
90
|
|
91 </ui:composition>
|
|
92 </body>
|
|
93 </html> |