Mercurial > hg > ismi-richfaces
comparison src/main/webapp/clean/components/missingText.xhtml @ 180:0d31c8be7c31
new MissingRelations feature and UI.
including searchByRelations() with Filter in FullEntityRepositoryBean.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 13 Jun 2018 14:57:13 +0200 |
parents | |
children | 52aa06772336 |
comparison
equal
deleted
inserted
replaced
179:c9dec00f0f17 | 180:0d31c8be7c31 |
---|---|
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 | |
9 <body> | |
10 <ui:composition> | |
11 | |
12 <h:panelGrid columns="3" styleClass="displayPanel" | |
13 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
14 | |
15 <a4j:commandButton value="show witnesses without text" | |
16 actionListener="#{Session.missingRelations.actionFindMissingTexts}" | |
17 render="showWitnessPanel" /> | |
18 <h:outputText/> | |
19 <h:outputText/> | |
20 | |
21 </h:panelGrid> | |
22 | |
23 <h:panelGrid id="showWitnessPanel" columns="1" | |
24 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"> | |
25 | |
26 <h:outputText | |
27 value="#{Session.missingRelations.browseBean.resultSummaryMsg}" | |
28 rendered="#{!empty Session.missingRelations.browseBean.resultSummaryMsg}" | |
29 styleClass="sumaryMsg" /> | |
30 | |
31 <h:column | |
32 rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
33 <h:outputText value="go to page" styleClass="sumaryMsg" /> | |
34 <h:inputText value="#{Session.missingRelations.browseBean.page}" | |
35 size="4" /> | |
36 <h:commandButton value="submit" | |
37 actionListener="#{Session.missingRelations.browseBean.actionGoToPageAdvancedResult}" /> | |
38 <h:outputText value=" #{Session.missingRelations.browseBean.pageMsg}" | |
39 rendered="#{!empty Session.missingRelations.browseBean.pageMsg}" | |
40 style="color:red" /> | |
41 </h:column> | |
42 | |
43 | |
44 <h:column | |
45 rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
46 <h:panelGroup> | |
47 <h:commandButton | |
48 image="/resources/css/xp/css-images/arrow-first.gif" | |
49 style="border:none;" title="First Page" | |
50 action="#{Session.missingRelations.browseBean.advancedFirst}" /> | |
51 | |
52 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" | |
53 style="border:none;" title="Fast Backwards" | |
54 action="#{Session.missingRelations.browseBean.advancedFastRewind}" /> | |
55 | |
56 <h:commandButton | |
57 image="/resources/css/xp/css-images/arrow-previous.gif" | |
58 style="border:none;" title="Previous Page" | |
59 action="#{Session.missingRelations.browseBean.advancedPrevious}" /> | |
60 | |
61 <h:outputText | |
62 value="#{Session.missingRelations.browseBean.advancedPaginator.recordStatus}" | |
63 styleClass="sumaryMsg" /> | |
64 | |
65 <h:commandButton | |
66 image="/resources/css/xp/css-images/arrow-next.gif" | |
67 style="border:none;" title="Next Page" | |
68 action="#{Session.missingRelations.browseBean.advancedNext}" /> | |
69 | |
70 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" | |
71 style="border:none;" title="Fast Forward" | |
72 action="#{Session.missingRelations.browseBean.advancedFastForward}" /> | |
73 | |
74 <h:commandButton | |
75 image="/resources/css/xp/css-images/arrow-last.gif" | |
76 style="border:none;" title="Last Page" | |
77 action="#{Session.missingRelations.browseBean.advancedLast}" /> | |
78 </h:panelGroup> | |
79 </h:column> | |
80 | |
81 <rich:dataTable id="witnessDataTable" rows="30" | |
82 value="#{Session.missingRelations.browseBean.currentEntities}" | |
83 rendered="#{!empty Session.missingRelations.browseBean.currentEntities}" | |
84 var="entity" styleClass="rsPanel" columnClasses="rsPanelColumn"> | |
85 <h:column style="text-align:left"> | |
86 <f:facet name="header">Witness</f:facet> | |
87 <h:outputLink target="_blank" | |
88 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}"> | |
89 <h:outputText | |
90 value="#{entity.ownValue} [#{entity.id}]" /> | |
91 </h:outputLink> | |
92 <h:commandButton | |
93 action="#{Session.missingRelations.browseBean.actionEdit}" | |
94 rendered="#{Session.canEdit}" | |
95 image="/resources/css/xp/css-images/edit16.gif" | |
96 title="Edit this entity" /> | |
97 </h:column> | |
98 <h:column style="text-align:left"> | |
99 <f:facet name="header">State</f:facet> | |
100 <h:outputText value="#{entity.privacity}" /> | |
101 </h:column> | |
102 </rich:dataTable> | |
103 | |
104 <h:column | |
105 rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
106 <h:panelGroup> | |
107 <h:commandButton | |
108 image="/resources/css/xp/css-images/arrow-first.gif" | |
109 style="border:none;" title="First Page" | |
110 action="#{Session.missingRelations.browseBean.advancedFirst}" /> | |
111 | |
112 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" | |
113 style="border:none;" title="Fast Backwards" | |
114 action="#{Session.missingRelations.browseBean.advancedFastRewind}" /> | |
115 | |
116 <h:commandButton | |
117 image="/resources/css/xp/css-images/arrow-previous.gif" | |
118 style="border:none;" title="Previous Page" | |
119 action="#{Session.missingRelations.browseBean.advancedPrevious}" /> | |
120 | |
121 <h:outputText | |
122 value="#{Session.missingRelations.browseBean.advancedPaginator.recordStatus}" | |
123 styleClass="sumaryMsg" /> | |
124 | |
125 <h:commandButton | |
126 image="/resources/css/xp/css-images/arrow-next.gif" | |
127 style="border:none;" title="Next Page" | |
128 action="#{Session.missingRelations.browseBean.advancedNext}" /> | |
129 | |
130 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" | |
131 style="border:none;" title="Fast Forward" | |
132 action="#{Session.missingRelations.browseBean.advancedFastForward}" /> | |
133 | |
134 <h:commandButton | |
135 image="/resources/css/xp/css-images/arrow-last.gif" | |
136 style="border:none;" title="Last Page" | |
137 action="#{Session.missingRelations.browseBean.advancedLast}" /> | |
138 </h:panelGroup> | |
139 </h:column> | |
140 | |
141 | |
142 </h:panelGrid> | |
143 | |
144 | |
145 | |
146 </ui:composition> | |
147 </body> | |
148 </html> |