comparison src/main/webapp/browse/entityDetails.xhtml @ 7:764f47286679

(none)
author jurzua
date Wed, 29 Oct 2014 14:28:34 +0000
parents
children 1389c83028ef
comparison
equal deleted inserted replaced
6:ded3bccf2cf9 7:764f47286679
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
24 <hr/>
25
26 <h:panelGrid columns="3" styleClass="controlPanel">
27 <h:outputLabel value="ID" />
28 <h:inputText value="#{Session.entDetailsForm.currentEntityId}" />
29 <a4j:commandButton value="Submit"
30 actionListener="#{Session.entDetailsForm.listenerShowEntity}"
31 render="entityDetailsPanel" />
32 </h:panelGrid>
33
34 <hr/>
35
36 <h:panelGrid columns="1"
37 rendered="#{Session.entDetailsForm.entity.id != null}"
38 style="width: 100%;">
39
40 <h:panelGrid columns="1" style="text-align:left;color: #3B4186;">
41 <h:outputText
42 value="#{Session.entDetailsForm.entity.objectClass}: #{Session.entDetailsForm.entity.ownValue}" />
43
44 <h:outputText
45 value="[ID=#{Session.entDetailsForm.entity.id}, Version=#{Session.entDetailsForm.entity.version}, #{Session.entDetailsForm.entity.privacity}]"
46 style="font-size: 9pt;"/>
47 <h:panelGroup
48 style="display: block;margin-left: auto;margin-right: auto;">
49 <h:commandButton value="Edit" title="Edit this entity"
50 image="#{ApplicationBean1.imgEdit32}"
51 rendered="#{Session.canEdit}"
52 action="#{Session.entDetailsForm.actionEdit}"
53 style="margin-right: 20px;" />
54 <h:commandButton value="Get previous versions"
55 title="Get previous versions" rendered="#{Session.canEdit}"
56 image="#{ApplicationBean1.imgVersions32}"
57 actionListener="#{Session.entDetailsForm.listenerGetPreviousVersions}"
58 style="margin-right: 20px;" />
59 <h:commandButton value="Remove" title="Remove this entity"
60 rendered="#{Session.canDelete}"
61 image="#{ApplicationBean1.imgRemove32}"
62 onclick="if(!confirm('Do you really want to remove this entity?')){ return; };"
63 action="#{Session.entDetailsForm.listenerDeleteEntity}"
64 style="margin-right: 20px;" />
65 </h:panelGroup>
66 <h:outputText
67 value="Modified by: #{Session.entDetailsForm.entity.user} - Last modification: #{Session.entDetailsForm.entity.timeStamp}"
68 style="font-size: 9pt;"/>
69 </h:panelGrid>
70
71 <hr/>
72
73 <h:panelGrid id="entityDetailsPanel" columns="1"
74 styleClass="entityDetailsPanel" columnClasses="createPanelFirstColumn">
75
76 <h:outputText value="Attributes" styleClass="titlePanel"/>
77
78 <rich:dataTable id="entity"
79 value="#{Session.entDetailsForm.attributeList}" var="attribute"
80 rendered="#{!empty Session.entDetailsForm.attributeList}"
81 styleClass="mainPanel"
82 columnClasses="mainPanelcolumn01,mainPanelcolumn02">
83
84 <h:column rendered="#{ApplicationBean1.confService.debugModus}">
85 <f:facet name="header">
86 <h:outputText value="Debug" />
87 </f:facet>
88 <h:outputText value="#{attribute.id} - #{attribute.rowId}" />
89 </h:column>
90 <h:column>
91 <f:facet name="header">
92 <h:outputText value="Name" />
93 </f:facet>
94 <h:outputText value="#{attribute.name}" />
95 </h:column>
96 <h:column>
97 <f:facet name="header">
98 <h:outputText value="Value" />
99 </f:facet>
100 <h:outputText value="#{attribute.value}" />
101 </h:column>
102 </rich:dataTable>
103
104 <h:outputText value="Source Relations" styleClass="titlePanel"/>
105
106 <rich:dataTable var="srcName"
107 value="#{Session.entDetailsForm.sourceRelationNames}"
108 styleClass="mainPanel"
109 columnClasses="mainPanelcolumn01">
110 <h:column
111 rendered="#{Session.entDetailsForm.sourceRelationCount[srcName] != '0'}">
112
113 <h:outputText
114 value="#{srcName} [#{Session.entDetailsForm.sourceRelationCount[srcName]}]" />
115 <h:commandLink value="show"
116 actionListener="#{Session.entDetailsForm.listenerShowSourceRelations}"
117 rendered="#{empty Session.entDetailsForm.sourceRelations[srcName]}"
118 styleClass="showLink"/>
119
120 <rich:dataTable var="srcRelation"
121 value="#{Session.entDetailsForm.sourceRelations[srcName]}"
122 rendered="#{!empty Session.entDetailsForm.sourceRelations[srcName]}"
123 styleClass="internalPanel"
124 columnClasses="internalPanelColumn,internalPanelColumn,internalPanelColumnLeft">
125
126 <h:column>
127 <f:facet name="header">
128 <h:outputText value="linked from this" />
129 </f:facet>
130 <h:outputText value="#{'x'}" />
131 </h:column>
132
133 <h:column>
134 <f:facet name="header">
135 <h:outputText value="Relation Name" />
136 </f:facet>
137 <h:outputText value="#{srcRelation.ownValue}" />
138 </h:column>
139 <h:column>
140 <f:facet name="header">
141 <h:outputText value="linked to this" />
142 </f:facet>
143 <h:panelGrid styleClass="attLink">
144 <h:outputLink
145 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{srcRelation.target.id}">
146 <h:outputText
147 value="[#{srcRelation.target.objectClass}] #{srcRelation.target.ownValue} [#{srcRelation.target.id}]" />
148 </h:outputLink>
149 </h:panelGrid>
150
151 </h:column>
152 <h:column rendered="#{ApplicationBean1.confService.debugModus}">
153 <h:panelGrid columns="1">
154 <h:outputLabel value="user=#{srcRelation.user}" />
155 <h:outputLabel value="id=#{srcRelation.id}" />
156 <h:outputLabel value="rowId=#{srcRelation.rowId}" />
157 </h:panelGrid>
158 </h:column>
159 </rich:dataTable>
160
161 </h:column>
162 </rich:dataTable>
163
164 <h:outputText value="Target Relations" styleClass="titlePanel"/>
165
166 <rich:dataTable var="tarName"
167 value="#{Session.entDetailsForm.targetRelationNames}"
168 styleClass="mainPanel"
169 columnClasses="mainPanelcolumn01">
170 <h:column
171 rendered="#{Session.entDetailsForm.targetRelationCount[tarName] != '0'}">
172
173 <h:outputText
174 value="#{tarName} [#{Session.entDetailsForm.targetRelationCount[tarName]}]" />
175 <h:commandLink value="show"
176 actionListener="#{Session.entDetailsForm.listenerShowTargetRelations}"
177 rendered="#{empty Session.entDetailsForm.targetRelations[tarName]}"
178 styleClass="showLink"/>
179
180 <rich:dataTable var="tarRelation"
181 value="#{Session.entDetailsForm.targetRelations[tarName]}"
182 rendered="#{!empty Session.entDetailsForm.targetRelations[tarName]}"
183 styleClass="internalPanel"
184 columnClasses="internalPanelColumnLeft,internalPanelColumn,internalPanelColumn">
185 <h:column>
186 <f:facet name="header">
187 <h:outputText value="linked from this" />
188 </f:facet>
189 <h:panelGrid styleClass="attLink">
190 <h:outputLink
191 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{tarRelation.source.id}">
192 <h:outputText
193 value="[#{tarRelation.source.objectClass}] #{tarRelation.source.ownValue} [#{tarRelation.source.id}]" />
194 </h:outputLink>
195 </h:panelGrid>
196
197 </h:column>
198 <h:column>
199 <f:facet name="header">
200 <h:outputText value="Relation Name" />
201 </f:facet>
202 <h:outputText value="#{tarRelation.ownValue}" />
203 </h:column>
204 <h:column>
205 <f:facet name="header">
206 <h:outputText value="linked to this" />
207 </f:facet>
208 <h:outputText value="#{'x'}" />
209 </h:column>
210
211 <h:column rendered="#{ApplicationBean1.confService.debugModus}">
212 <h:panelGrid columns="1">
213 <h:outputLabel value="user=#{tarRelation.user}" />
214 <h:outputLabel value="id=#{tarRelation.id}" />
215 <h:outputLabel value="rowId=#{tarRelation.rowId}" />
216 </h:panelGrid>
217 </h:column>
218 </rich:dataTable>
219 </h:column>
220 </rich:dataTable>
221
222 </h:panelGrid>
223 </h:panelGrid>
224 </h:panelGrid>
225 </ui:define>
226 </ui:composition>
227 </body>
228 </html>