Mercurial > hg > ismi-richfaces
annotate src/main/webapp/browse/entityDetails.xhtml @ 157:2522985f44af
add "query builder" button to entityDetails form.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 20 Oct 2017 12:44:15 +0200 |
parents | b40a84944716 |
children | 1611da70e43e |
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 | |
9 <body> | |
10 <ui:composition template="/templates/publicTemplate.xhtml"> | |
11 | |
12 <ui:define name="publicContent"> | |
13 | |
14 <h:outputStylesheet name="/css/ismi-db/repository.css" /> | |
15 | |
16 <div id="pageTitle"> | |
17 <h:outputText value="Entity Details" /> | |
18 </div> | |
19 | |
20 <h:panelGrid columns="1" | |
21 style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> | |
22 | |
23 <hr/> | |
24 | |
25 <h:panelGrid columns="3" styleClass="controlPanel"> | |
26 <h:outputLabel value="ID" /> | |
27 <h:inputText value="#{Session.entDetailsForm.currentEntityId}" /> | |
28 <a4j:commandButton value="Submit" | |
29 actionListener="#{Session.entDetailsForm.listenerShowEntity}" | |
30 render="entityDetailsPanel" /> | |
31 </h:panelGrid> | |
32 | |
33 <hr/> | |
34 | |
35 <h:panelGrid columns="1" | |
36 rendered="#{Session.entDetailsForm.entity.id != null}" | |
37 style="width: 100%;"> | |
38 | |
39 <h:panelGrid columns="1" style="text-align:left;color: #3B4186;"> | |
40 <h:outputText | |
41 value="#{Session.entDetailsForm.entity.objectClass}: #{Session.entDetailsForm.entity.ownValue}" /> | |
42 | |
43 <h:outputText | |
44 value="[ID=#{Session.entDetailsForm.entity.id}, Version=#{Session.entDetailsForm.entity.version}, #{Session.entDetailsForm.entity.privacity}]" | |
45 style="font-size: 9pt;"/> | |
46 <h:panelGroup | |
47 style="display: block;margin-left: auto;margin-right: auto;"> | |
48 <h:commandButton value="Edit" title="Edit this entity" | |
49 image="#{ApplicationBean1.imgEdit32}" | |
50 rendered="#{Session.canEdit}" | |
51 action="#{Session.entDetailsForm.actionEdit}" | |
52 style="margin-right: 20px;" /> | |
53 <h:commandButton value="Remove" title="Remove this entity" | |
54 rendered="#{Session.canDelete}" | |
55 image="#{ApplicationBean1.imgRemove32}" | |
56 onclick="if(!confirm('Do you really want to remove this entity?')){ return; };" | |
57 action="#{Session.entDetailsForm.listenerDeleteEntity}" | |
58 style="margin-right: 20px;" /> | |
157
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
59 <h:commandButton value="Query Builder" |
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
60 onclick="window.open('#{ApplicationBean1.generateQueryBrowserUrlForId(Session.entDetailsForm.entity.id)}')" |
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
61 title="Start Query Builder with this id" |
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
62 type="button"/> |
7 | 63 </h:panelGroup> |
64 <h:outputText | |
65 value="Modified by: #{Session.entDetailsForm.entity.user} - Last modification: #{Session.entDetailsForm.entity.timeStamp}" | |
66 style="font-size: 9pt;"/> | |
67 </h:panelGrid> | |
68 | |
69 <hr/> | |
70 | |
71 <h:panelGrid id="entityDetailsPanel" columns="1" | |
72 styleClass="entityDetailsPanel" columnClasses="createPanelFirstColumn"> | |
73 | |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
74 <h:outputText value="Publication state: #{Session.entDetailsForm.entity.privacity}" styleClass="titlePanel"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
75 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
76 <h:panelGroup |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
77 rendered="#{Session.canEdit}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
78 style="display:block; margin-left:auto; margin-right:auto;"> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
79 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
80 <a4j:commandButton value="Make entity public" title="Change publication state of this entity" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
81 rendered="#{!Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
82 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
83 onclick="if(!confirm('Do you really want to make this entity public?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
84 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
85 <a4j:commandButton value="Make entity private" title="Change publication state of this entity" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
86 rendered="#{Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
87 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
88 onclick="if(!confirm('Do you really want to make this entity private?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
89 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
90 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
91 <a4j:commandButton value="Make related entities public" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
92 title="Change publication state of directly related entities" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
93 rendered="#{Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
94 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
95 onclick="if(!confirm('Do you really want to make all related entities public?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
96 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
97 <a4j:commandButton value="Make related entities private" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
98 title="Change publication state of directly related entities" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
99 rendered="#{!Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
100 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
101 onclick="if(!confirm('Do you really want to make all related entities private?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
102 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
103 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
104 </h:panelGroup> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
105 |
7 | 106 <h:outputText value="Attributes" styleClass="titlePanel"/> |
107 | |
108 <rich:dataTable id="entity" | |
109 value="#{Session.entDetailsForm.attributeList}" var="attribute" | |
110 rendered="#{!empty Session.entDetailsForm.attributeList}" | |
111 styleClass="mainPanel" | |
112 columnClasses="mainPanelcolumn01,mainPanelcolumn02"> | |
113 | |
114 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
115 <f:facet name="header"> | |
116 <h:outputText value="Debug" /> | |
117 </f:facet> | |
118 <h:outputText value="#{attribute.id} - #{attribute.rowId}" /> | |
119 </h:column> | |
120 <h:column> | |
121 <f:facet name="header"> | |
122 <h:outputText value="Name" /> | |
123 </f:facet> | |
124 <h:outputText value="#{attribute.name}" /> | |
125 </h:column> | |
126 <h:column> | |
127 <f:facet name="header"> | |
128 <h:outputText value="Value" /> | |
129 </f:facet> | |
130 <h:outputText value="#{attribute.value}" /> | |
131 </h:column> | |
132 </rich:dataTable> | |
133 | |
134 <h:outputText value="Source Relations" styleClass="titlePanel"/> | |
135 | |
136 <rich:dataTable var="srcName" | |
137 value="#{Session.entDetailsForm.sourceRelationNames}" | |
138 styleClass="mainPanel" | |
139 columnClasses="mainPanelcolumn01"> | |
140 <h:column | |
141 rendered="#{Session.entDetailsForm.sourceRelationCount[srcName] != '0'}"> | |
142 | |
143 <h:outputText | |
144 value="#{srcName} [#{Session.entDetailsForm.sourceRelationCount[srcName]}]" /> | |
145 <h:commandLink value="show" | |
146 actionListener="#{Session.entDetailsForm.listenerShowSourceRelations}" | |
147 rendered="#{empty Session.entDetailsForm.sourceRelations[srcName]}" | |
148 styleClass="showLink"/> | |
149 | |
150 <rich:dataTable var="srcRelation" | |
151 value="#{Session.entDetailsForm.sourceRelations[srcName]}" | |
152 rendered="#{!empty Session.entDetailsForm.sourceRelations[srcName]}" | |
153 styleClass="internalPanel" | |
154 columnClasses="internalPanelColumn,internalPanelColumn,internalPanelColumnLeft"> | |
155 | |
156 <h:column> | |
157 <f:facet name="header"> | |
158 <h:outputText value="linked from this" /> | |
159 </f:facet> | |
160 <h:outputText value="#{'x'}" /> | |
161 </h:column> | |
162 | |
163 <h:column> | |
164 <f:facet name="header"> | |
165 <h:outputText value="Relation Name" /> | |
166 </f:facet> | |
167 <h:outputText value="#{srcRelation.ownValue}" /> | |
168 </h:column> | |
169 <h:column> | |
170 <f:facet name="header"> | |
171 <h:outputText value="linked to this" /> | |
172 </f:facet> | |
173 <h:panelGrid styleClass="attLink"> | |
174 <h:outputLink | |
175 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{srcRelation.target.id}"> | |
176 <h:outputText | |
147
1389c83028ef
show public information in Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
7
diff
changeset
|
177 value="[#{srcRelation.target.objectClass}] #{srcRelation.target.ownValue} [#{srcRelation.target.id}, #{srcRelation.target.privacity}]" /> |
7 | 178 </h:outputLink> |
179 </h:panelGrid> | |
180 | |
181 </h:column> | |
182 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
183 <h:panelGrid columns="1"> | |
184 <h:outputLabel value="user=#{srcRelation.user}" /> | |
185 <h:outputLabel value="id=#{srcRelation.id}" /> | |
186 <h:outputLabel value="rowId=#{srcRelation.rowId}" /> | |
187 </h:panelGrid> | |
188 </h:column> | |
189 </rich:dataTable> | |
190 | |
191 </h:column> | |
192 </rich:dataTable> | |
193 | |
194 <h:outputText value="Target Relations" styleClass="titlePanel"/> | |
195 | |
196 <rich:dataTable var="tarName" | |
197 value="#{Session.entDetailsForm.targetRelationNames}" | |
198 styleClass="mainPanel" | |
199 columnClasses="mainPanelcolumn01"> | |
200 <h:column | |
201 rendered="#{Session.entDetailsForm.targetRelationCount[tarName] != '0'}"> | |
202 | |
203 <h:outputText | |
204 value="#{tarName} [#{Session.entDetailsForm.targetRelationCount[tarName]}]" /> | |
205 <h:commandLink value="show" | |
206 actionListener="#{Session.entDetailsForm.listenerShowTargetRelations}" | |
207 rendered="#{empty Session.entDetailsForm.targetRelations[tarName]}" | |
208 styleClass="showLink"/> | |
209 | |
210 <rich:dataTable var="tarRelation" | |
211 value="#{Session.entDetailsForm.targetRelations[tarName]}" | |
212 rendered="#{!empty Session.entDetailsForm.targetRelations[tarName]}" | |
213 styleClass="internalPanel" | |
214 columnClasses="internalPanelColumnLeft,internalPanelColumn,internalPanelColumn"> | |
215 <h:column> | |
216 <f:facet name="header"> | |
217 <h:outputText value="linked from this" /> | |
218 </f:facet> | |
219 <h:panelGrid styleClass="attLink"> | |
220 <h:outputLink | |
221 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{tarRelation.source.id}"> | |
222 <h:outputText | |
147
1389c83028ef
show public information in Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
7
diff
changeset
|
223 value="[#{tarRelation.source.objectClass}] #{tarRelation.source.ownValue} [#{tarRelation.source.id}, #{tarRelation.source.privacity}]" /> |
7 | 224 </h:outputLink> |
225 </h:panelGrid> | |
226 | |
227 </h:column> | |
228 <h:column> | |
229 <f:facet name="header"> | |
230 <h:outputText value="Relation Name" /> | |
231 </f:facet> | |
232 <h:outputText value="#{tarRelation.ownValue}" /> | |
233 </h:column> | |
234 <h:column> | |
235 <f:facet name="header"> | |
236 <h:outputText value="linked to this" /> | |
237 </f:facet> | |
238 <h:outputText value="#{'x'}" /> | |
239 </h:column> | |
240 | |
241 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
242 <h:panelGrid columns="1"> | |
243 <h:outputLabel value="user=#{tarRelation.user}" /> | |
244 <h:outputLabel value="id=#{tarRelation.id}" /> | |
245 <h:outputLabel value="rowId=#{tarRelation.rowId}" /> | |
246 </h:panelGrid> | |
247 </h:column> | |
248 </rich:dataTable> | |
249 </h:column> | |
250 </rich:dataTable> | |
251 | |
252 </h:panelGrid> | |
253 </h:panelGrid> | |
254 </h:panelGrid> | |
255 </ui:define> | |
256 </ui:composition> | |
257 </body> | |
258 </html> |