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:panelGrid id="defEditorPpPanel">
|
|
12
|
|
13 <!-- Attribute Editor -->
|
|
14 <h:panelGroup
|
|
15 rendered="#{Session.defForm.tmpLWDefinition != null}">
|
|
16 <div style="z-index: 100;" class="rf-pp-shade">
|
|
17 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
18 </div>
|
|
19
|
|
20 <h:panelGrid columns="1" class="rf-pp-cntr"
|
|
21 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 500px; z-index: 100;">
|
|
22
|
|
23 <div class="rf-pp-shdw"
|
|
24 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
|
|
25 </div>
|
|
26 <div class="rf-pp-hdr " style="cursor: default;">
|
|
27 <div class="rf-pp-hdr-cnt">Attribute Editor</div>
|
|
28 </div>
|
|
29
|
|
30 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
|
|
31 style="width: 500px; height: 329px;">
|
|
32 <h:panelGrid columns="1" class="rf-pp-cnt">
|
|
33 <h:panelGrid columns="2">
|
|
34 <h:outputLabel value="Name of the definition"/>
|
|
35 <h:inputText value="#{Session.defForm.tmpLWDefinition.ownValue}"/>
|
|
36 <h:panelGroup>
|
|
37 <h:commandButton
|
|
38 value="Create"
|
|
39 actionListener="#{Session.defForm.saveLWDefinition}"/>
|
|
40 <h:commandButton
|
|
41 value="Cancel"
|
|
42 actionListener="#{Session.defForm.cancelCreationDefinition}"/>
|
|
43 </h:panelGroup>
|
|
44
|
|
45
|
|
46 </h:panelGrid>
|
|
47 </h:panelGrid>
|
|
48 </h:panelGrid>
|
|
49 </h:panelGrid>
|
|
50
|
|
51 </h:panelGroup>
|
|
52
|
|
53 <!-- Relation Editor -->
|
|
54 <h:panelGroup
|
|
55 rendered="#{Session.defForm.selectedRelation != null}">
|
|
56 <div style="z-index: 100;" class="rf-pp-shade">
|
|
57 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
58 </div>
|
|
59
|
|
60 <h:panelGrid columns="1" class="rf-pp-cntr"
|
|
61 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 500px; z-index: 100;">
|
|
62
|
|
63 <div class="rf-pp-shdw"
|
|
64 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
|
|
65 </div>
|
|
66 <div class="rf-pp-hdr " style="cursor: default;">
|
|
67 <div class="rf-pp-hdr-cnt">Relation Editor</div>
|
|
68 </div>
|
|
69
|
|
70 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
|
|
71 style="width: 500px; height: 329px;">
|
|
72 <h:panelGrid columns="1" class="rf-pp-cnt">
|
|
73
|
|
74 <h:panelGrid columns="2">
|
|
75 <h:outputLabel value="Source"/>
|
|
76 <h:outputLabel
|
|
77 value="#{Session.defForm.selectedLWDefinition.ownValue}"
|
|
78 rendered="#{Session.defForm.sourceRelation}"/>
|
|
79
|
|
80 <h:selectOneMenu
|
|
81 value="#{Session.defForm.selectedRelation.sourceId}"
|
|
82 rendered="#{!Session.defForm.sourceRelation}">
|
|
83 <f:selectItems value="#{Session.defForm.defSelectList}"/>
|
|
84 </h:selectOneMenu>
|
|
85
|
|
86 <h:outputLabel value="Relation name"/>
|
|
87 <h:inputText value="#{Session.defForm.selectedRelation.ownValue}"/>
|
|
88
|
|
89 <h:outputLabel value="Target"/>
|
|
90 <h:outputLabel
|
|
91 value="#{Session.defForm.selectedLWDefinition.ownValue}"
|
|
92 rendered="#{!Session.defForm.sourceRelation}"/>
|
|
93 <h:selectOneMenu
|
|
94 value="#{Session.defForm.selectedRelation.targetId}"
|
|
95 rendered="#{Session.defForm.sourceRelation}">
|
|
96 <f:selectItems value="#{Session.defForm.defSelectList}"/>
|
|
97 </h:selectOneMenu>
|
|
98 </h:panelGrid>
|
|
99
|
|
100
|
|
101
|
|
102 <h:panelGrid columns="1">
|
|
103 <h:outputLabel value="Attributes for relation"/>
|
|
104 <h:panelGrid columns="2">
|
|
105 <h:commandButton value="Add Attribute"
|
|
106 actionListener="#{Session.defForm.listenerCreateAttributeForRelation}"/>
|
|
107 <h:commandButton value="Remove selected attributes"
|
|
108 rendered="#{!empty Session.defForm.selectedRelationAttributes}"
|
|
109 actionListener="#{Session.defForm.listenerDeleteAttributesForRelation}"
|
|
110 onclick="if(!confirm('Do you really want to remove the selected attributes. This change this be executed directly in the DB.?')){ return; };"/>
|
|
111 </h:panelGrid>
|
|
112 <h:dataTable
|
|
113 value="#{Session.defForm.selectedRelationAttributes}"
|
|
114 rendered="#{!empty Session.defForm.selectedRelationAttributes}"
|
|
115 var="relAttObj">
|
|
116 <h:column>
|
|
117 <f:facet name="header">
|
|
118 <h:outputText value="name"/>
|
|
119 </f:facet>
|
|
120 <h:inputText value="#{relAttObj.obj.ownValue}" style="width: 250px;"/>
|
|
121 </h:column>
|
|
122 <h:column>
|
|
123 <f:facet name="header">
|
|
124 <h:outputText value="content type"/>
|
|
125 </f:facet>
|
|
126 <h:selectOneMenu value="#{relAttObj.obj.contentType}">
|
|
127 <f:selectItems value="#{Session.defForm.contentTypeList}"/>
|
|
128 </h:selectOneMenu>
|
|
129 </h:column>
|
|
130 <h:column>
|
|
131 <f:facet name="header">
|
|
132 <h:outputText value="select"/>
|
|
133 </f:facet>
|
|
134 <h:selectBooleanCheckbox value="#{relAttObj.selected}"/>
|
|
135 </h:column>
|
|
136 </h:dataTable>
|
|
137
|
|
138 </h:panelGrid>
|
|
139
|
|
140
|
|
141
|
|
142 <h:panelGroup>
|
|
143 <h:commandButton
|
|
144 value="Save"
|
|
145 actionListener="#{Session.defForm.listenerSaveRelation}"
|
|
146 onclick="if(!confirm('Do you really want to save the changes?')){ return; };"/>
|
|
147 <h:commandButton
|
|
148 value="Close"
|
|
149 actionListener="#{Session.defForm.listenerCancelEditionOfRelation}"
|
|
150 onclick="if(!confirm('Do you really want to cancel the edition?')){ return; };"/>
|
|
151 </h:panelGroup>
|
|
152
|
|
153 </h:panelGrid>
|
|
154 </h:panelGrid>
|
|
155 </h:panelGrid>
|
|
156
|
|
157 </h:panelGroup>
|
|
158
|
|
159 <!-- Attribute Editor -->
|
|
160 <h:panelGroup
|
|
161 rendered="#{Session.defForm.selectedAttribute != null}">
|
|
162 <div style="z-index: 100;" class="rf-pp-shade">
|
|
163 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
164 </div>
|
|
165
|
|
166 <h:panelGrid columns="1" class="rf-pp-cntr"
|
|
167 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 500px; z-index: 100;">
|
|
168
|
|
169 <div class="rf-pp-shdw"
|
|
170 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
|
|
171 </div>
|
|
172 <div class="rf-pp-hdr " style="cursor: default;">
|
|
173 <div class="rf-pp-hdr-cnt">Attribute Editor</div>
|
|
174 </div>
|
|
175
|
|
176 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
|
|
177 style="width: 500px; height: 329px;">
|
|
178 <h:panelGrid columns="1" class="rf-pp-cnt">
|
|
179
|
|
180
|
|
181 <h:panelGrid columns="2">
|
|
182 <h:outputLabel value="Name"/>
|
|
183 <h:inputText value="#{Session.defForm.selectedAttribute.ownValue}"/>
|
|
184 <h:outputText/>
|
|
185
|
|
186 <h:outputLabel value="Content type"/>
|
|
187 <h:selectOneMenu value="#{Session.defForm.selectedAttribute.contentType}">
|
|
188 <f:selectItems value="#{Session.defForm.contentTypeList}"/>
|
|
189 </h:selectOneMenu>
|
|
190 <h:outputText/>
|
|
191
|
|
192 <h:outputLabel value="Possible values"/>
|
|
193 <h:panelGroup>
|
|
194 <h:panelGrid columns="2">
|
|
195 <h:commandButton value="Add"
|
|
196 actionListener="#{Session.defForm.listenerAddPossibleValue}"/>
|
|
197 <h:commandButton value="Remove selected values"
|
|
198 actionListener="#{Session.defForm.listenerDeletePossibleValues}"
|
|
199 rendered="#{!empty Session.defForm.possibleValuesList}"/>
|
|
200 </h:panelGrid>
|
|
201 <rich:dataTable
|
|
202 var="possibleValueObj"
|
|
203 rendered="#{!empty Session.defForm.possibleValuesList}"
|
|
204 value="#{Session.defForm.possibleValuesList}">
|
|
205 <h:column>
|
|
206 <f:facet name="header">
|
|
207 <h:outputText value="name"/>
|
|
208 </f:facet>
|
|
209 <h:inputText value="#{possibleValueObj.obj}" style="width: 250px;"/>
|
|
210 </h:column>
|
|
211 <h:column>
|
|
212 <f:facet name="header">
|
|
213 <h:outputText value="select"/>
|
|
214 </f:facet>
|
|
215 <h:selectBooleanCheckbox value="#{possibleValueObj.selected}"/>
|
|
216 </h:column>
|
|
217 </rich:dataTable>
|
|
218 </h:panelGroup>
|
|
219 </h:panelGrid>
|
|
220 <h:outputText/>
|
|
221
|
|
222
|
|
223 <h:panelGroup>
|
|
224 <h:commandButton
|
|
225 value="Save"
|
|
226 actionListener="#{Session.defForm.listenerSaveAttribute}"
|
|
227 onclick="if(!confirm('Do you really want to save the changes?')){ return; };"/>
|
|
228 <h:commandButton
|
|
229 value="Close"
|
|
230 actionListener="#{Session.defForm.listenerCancelEditionOfAttribute}"
|
|
231 onclick="if(!confirm('Do you really want to cancel the edition?')){ return; };"/>
|
|
232 </h:panelGroup>
|
|
233
|
|
234 </h:panelGrid>
|
|
235 </h:panelGrid>
|
|
236 </h:panelGrid>
|
|
237
|
|
238 </h:panelGroup>
|
|
239
|
|
240 </h:panelGrid>
|
|
241
|
|
242 </ui:composition>
|
|
243 </body>
|
|
244 </html> |