Mercurial > hg > ismi-richfaces
annotate src/main/webapp/browse/components/advancedResult.xhtml @ 185:81297da1cb83
fix bug with JSF-table for advancedBrowse being smaller than pager.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 27 Jul 2018 14:48:55 +0200 |
parents | 03dcbaf8b8cf |
children |
rev | line source |
---|---|
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 | |
16 rendered="#{!empty EntityRepository.entities}"> | |
17 <h:outputText value="go to page" styleClass="sumaryMsg"/> | |
103 | 18 <h:inputText value="#{EntityRepository.page}" size="4"/> |
7 | 19 <h:commandButton value="submit" |
20 actionListener="#{EntityRepository.actionGoToPageAdvancedResult}" /> | |
21 <h:outputText value=" #{EntityRepository.pageMsg}" | |
22 rendered="#{!empty EntityRepository.pageMsg}" style="color:red" /> | |
23 </h:column> | |
24 | |
25 | |
26 <h:column rendered="#{!empty EntityRepository.entities}"> | |
27 <h:panelGroup> | |
103 | 28 <h:commandButton image="/resources/css/xp/css-images/arrow-first.gif" |
7 | 29 style="border:none;" title="First Page" |
30 action="#{EntityRepository.advancedFirst}"/> | |
31 | |
103 | 32 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" |
7 | 33 style="border:none;" title="Fast Backwards" |
34 action="#{EntityRepository.advancedFastRewind}"/> | |
35 | |
103 | 36 <h:commandButton image="/resources/css/xp/css-images/arrow-previous.gif" |
7 | 37 style="border:none;" title="Previous Page" |
38 action="#{EntityRepository.advancedPrevious}"/> | |
39 | |
40 <h:outputText value="#{EntityRepository.advancedPaginator.recordStatus}" styleClass="sumaryMsg" /> | |
41 | |
103 | 42 <h:commandButton image="/resources/css/xp/css-images/arrow-next.gif" |
7 | 43 style="border:none;" title="Next Page" |
44 action="#{EntityRepository.advancedNext}"/> | |
45 | |
103 | 46 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" |
7 | 47 style="border:none;" title="Fast Forward" |
48 action="#{EntityRepository.advancedFastForward}"/> | |
49 | |
103 | 50 <h:commandButton image="/resources/css/xp/css-images/arrow-last.gif" |
7 | 51 style="border:none;" title="Last Page" |
52 action="#{EntityRepository.advancedLast}"/> | |
53 </h:panelGroup> | |
54 </h:column> | |
55 | |
185
81297da1cb83
fix bug with JSF-table for advancedBrowse being smaller than pager.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
103
diff
changeset
|
56 <rich:dataTable id="advancedDataTable" rows="20" |
7 | 57 value="#{EntityRepository.currentEntities}" |
58 rendered="#{!empty EntityRepository.currentEntities}" var="entity" | |
59 styleClass="rsPanel" | |
60 columnClasses="rsPanelColumn"> | |
61 <h:column> | |
62 <h:outputText value="[#{entity.objectClass}] " /> | |
63 <h:outputLink value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}"> | |
64 <h:outputText value="#{entity.ownValue} - [#{entity.id}, #{entity.privacity}]" /> | |
65 </h:outputLink> | |
66 <h:commandButton action="#{EntityRepository.actionEdit}" | |
67 rendered="#{Session.canEdit}" | |
68 image="/resources/css/xp/css-images//edit16.gif" | |
69 title="Edit this entity"/> | |
70 </h:column> | |
71 </rich:dataTable> | |
72 | |
73 <h:column rendered="#{!empty EntityRepository.entities}"> | |
74 <h:panelGroup> | |
103 | 75 <h:commandButton image="/resources/css/xp/css-images/arrow-first.gif" |
7 | 76 style="border:none;" title="First Page" |
77 action="#{EntityRepository.advancedFirst}"/> | |
78 | |
103 | 79 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" |
7 | 80 style="border:none;" title="Fast Backwards" |
81 action="#{EntityRepository.advancedFastRewind}"/> | |
82 | |
103 | 83 <h:commandButton image="/resources/css/xp/css-images/arrow-previous.gif" |
7 | 84 style="border:none;" title="Previous Page" |
85 action="#{EntityRepository.advancedPrevious}"/> | |
86 | |
87 <h:outputText value="#{EntityRepository.advancedPaginator.recordStatus}" styleClass="sumaryMsg" /> | |
88 | |
103 | 89 <h:commandButton image="/resources/css/xp/css-images/arrow-next.gif" |
7 | 90 style="border:none;" title="Next Page" |
91 action="#{EntityRepository.advancedNext}"/> | |
92 | |
103 | 93 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" |
7 | 94 style="border:none;" title="Fast Forward" |
95 action="#{EntityRepository.advancedFastForward}"/> | |
96 | |
103 | 97 <h:commandButton image="/resources/css/xp/css-images/arrow-last.gif" |
7 | 98 style="border:none;" title="Last Page" |
99 action="#{EntityRepository.advancedLast}"/> | |
100 </h:panelGroup> | |
101 </h:column> | |
102 | |
103 | 103 <h:column rendered="#{!empty EntityRepository.entities}"> |
104 <h:commandButton value="download all as CSV" | |
105 actionListener="#{EntityRepository.downloadAdvancedCsv}" /> | |
106 </h:column> | |
107 | |
7 | 108 </ui:composition> |
109 </body> | |
110 </html> |