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 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
|
|
9
|
|
10 <body>
|
|
11 <ui:composition>
|
|
12
|
|
13 <h:panelGrid>
|
|
14 <h:outputText
|
|
15 value="Collection - #{CurrentCollection.entity.ownValue}"
|
|
16 rendered="#{!empty CurrentCollection.entity.ownValue}"
|
|
17 styleClass="titlePanel" />
|
|
18 <h:outputText value="Collection"
|
|
19 rendered="#{empty CurrentCollection.entity.ownValue}"
|
|
20 styleClass="titlePanel" />
|
|
21 </h:panelGrid>
|
|
22
|
|
23 <h:panelGrid columns="4" styleClass="createPanel"
|
|
24 columnClasses="createPanelFirstColumn" id="collectionRepoPanel">
|
|
25
|
|
26 <h:outputLabel value="Country" />
|
|
27 <ismi:autocomplete lo="#{CurrentCollection.countryLo}" />
|
|
28 <h:outputText />
|
|
29 <h:panelGrid>
|
|
30 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
31 rendered="#{!empty CurrentCollection.countryLo.entity.id}"
|
|
32 actionListener="#{CurrentCollection.editThisCountryAction}" />
|
|
33 </h:panelGrid>
|
|
34
|
|
35 <h:outputLabel value="Place/City" />
|
|
36 <ismi:autocomplete lo="#{CurrentCollection.cityLo}" />
|
|
37 <h:panelGrid>
|
|
38 <h:selectOneMenu
|
|
39 rendered="#{!empty CurrentCollection.citiesInCurrentCountry}"
|
|
40 valueChangeListener="#{CurrentCollection.inCurrentCountryListener}">
|
|
41 <f:selectItems value="#{CurrentCollection.citiesInCurrentCountry}" />
|
|
42 <a4j:ajax event="change" render="collectionRepoPanel" />
|
|
43 </h:selectOneMenu>
|
|
44 </h:panelGrid>
|
|
45 <h:panelGrid>
|
|
46 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
47 rendered="#{!empty CurrentCollection.cityLo.entity.id}"
|
|
48 actionListener="#{CurrentCollection.editThisCityAction}" />
|
|
49 </h:panelGrid>
|
|
50
|
|
51
|
|
52 <h:outputLabel value="Repository" />
|
|
53 <ismi:autocomplete lo="#{CurrentCollection.repositoryLo}" />
|
|
54 <h:panelGrid>
|
|
55 <h:selectOneMenu partialSubmit="true"
|
|
56 rendered="#{!empty CurrentCollection.repositoriesInCurrentCity}"
|
|
57 valueChangeListener="#{CurrentCollection.inCurrentCityListener}">
|
|
58 <f:selectItems
|
|
59 value="#{CurrentCollection.repositoriesInCurrentCity}" />
|
|
60 <a4j:ajax event="change" render="collectionRepoPanel" />
|
|
61 </h:selectOneMenu>
|
|
62 <h:outputText
|
|
63 rendered="#{empty CurrentCollection.repositoriesInCurrentCity}" />
|
|
64 </h:panelGrid>
|
|
65 <h:panelGrid>
|
|
66 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
67 rendered="#{!empty CurrentCollection.repositoryLo.entity.id}"
|
|
68 actionListener="#{CurrentCollection.editThisRepositoryAction}" />
|
|
69 </h:panelGrid>
|
|
70
|
|
71 <h:outputText />
|
|
72 <h:commandButton
|
|
73 actionListener="#{CurrentCollection.checkConsistencyFromCountryToCodex}"
|
|
74 value="Check Consistency From Country To Codex" />
|
|
75 <h:outputText />
|
|
76 <h:outputText />
|
|
77
|
|
78 <h:outputLabel value="Collection name" />
|
|
79 <h:inputText size="100"
|
|
80 value="#{CurrentCollection.attributes['name']}" />
|
|
81 <h:outputText />
|
|
82 <h:outputText />
|
|
83
|
|
84 </h:panelGrid>
|
|
85
|
|
86 <ismi:refWidget entityForm="#{CurrentCollection}" />
|
|
87
|
|
88 <h:panelGrid columns="4">
|
|
89 <h:outputText value="ID of the Collection"/>
|
|
90 <h:inputText value="#{CurrentCollection.currentId}"/>
|
|
91 <h:commandButton value="Load Collection By ID" action="#{CurrentCollection.actionReloadEntity}"
|
|
92 onclick="confirm('Do you really want to reload the entity?');"/>
|
|
93 <h:outputText value="#{CurrentCollection.currentIdMsg}" style="color:red"/>
|
|
94 </h:panelGrid>
|
|
95
|
|
96 <h:commandButton value="#{CurrentCollection.saveButtonLabel}"
|
|
97 rendered="#{CurrentCollection.renderSaveButton}"
|
|
98 action="#{CurrentCollection.save}"
|
|
99 onclick="#{ApplicationBean1.JSConfirmationSave}" />
|
|
100 <h:commandButton value="Clear Form"
|
|
101 action="#{CurrentCollection.clearAction}"
|
|
102 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
|
|
103 <h:commandButton value="Save as new Entity"
|
|
104 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"
|
|
105 rendered="#{(CurrentCollection.entity.id != null and Session.canCreate)}"
|
|
106 action="#{CurrentCollection.saveAsNewEntity}" />
|
|
107
|
|
108
|
|
109
|
|
110 <!-- Unity Warning -->
|
|
111 <h:panelGrid id="collUnityWarningPP">
|
|
112 <h:panelGroup
|
|
113 rendered="#{CurrentCollection.renderUnityCheckerDialog}">
|
|
114 <div style="z-index: 100;" class="rf-pp-shade">
|
|
115 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
116 </div>
|
|
117
|
|
118 <h:panelGrid columns="1" class="rf-pp-cntr"
|
|
119 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;">
|
|
120
|
|
121 <div class="rf-pp-shdw"
|
|
122 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
|
|
123 </div>
|
|
124 <div class="rf-pp-hdr " style="cursor: default;">
|
|
125 <div class="rf-pp-hdr-cnt">Unity Warning</div>
|
|
126 </div>
|
|
127
|
|
128 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
|
|
129 style="width: 300px; height: 200px;">
|
|
130
|
|
131 <h:outputText value="#{CurrentCollection.unityCheckerMsg}"/>
|
|
132 <h:panelGrid>
|
|
133 <a4j:commandButton value="Load Entity" action="#{CurrentCollection.loadCloneEntity}"/>
|
|
134 <a4j:commandButton value="Continue Editing" action="#{CurrentCollection.hideUnityCheckerDialog}" />
|
|
135 </h:panelGrid>
|
|
136
|
|
137 </h:panelGrid>
|
|
138 </h:panelGrid>
|
|
139
|
|
140 </h:panelGroup>
|
|
141 </h:panelGrid>
|
|
142
|
|
143
|
|
144 </ui:composition>
|
|
145 </body>
|
|
146 </html>
|