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>
|
89
|
14 <h:outputText value="Place - #{CurrentCity.entity.ownValue}"
|
7
|
15 rendered="#{!empty CurrentCity.entity.ownValue}"
|
|
16 styleClass="titlePanel"/>
|
89
|
17 <h:outputText value="Place"
|
7
|
18 rendered="#{empty CurrentCity.entity.ownValue}"
|
|
19 styleClass="titlePanel"/>
|
|
20 </h:panelGrid>
|
|
21
|
|
22 <h:panelGrid columns="3" styleClass="createPanel"
|
|
23 columnClasses="createPanelFirstColumn" id="placePanel">
|
|
24
|
89
|
25 <h:outputText id="name" value="Name" />
|
7
|
26 <h:inputText size="100" value="#{CurrentCity.attributes['name']}" />
|
|
27 <h:outputText />
|
|
28
|
89
|
29 <h:outputText value="Type" />
|
7
|
30 <h:selectOneListbox size="4" partialSubmit="true"
|
|
31 value="#{CurrentCity.attributes['type']}">
|
|
32 <f:selectItems value="#{CurrentCity.suggestedTypes}" />
|
|
33 </h:selectOneListbox>
|
|
34 <h:outputText />
|
|
35
|
89
|
36 <h:outputText value="This place is part of" />
|
|
37 <ismi:autocomplete lo="#{CurrentCity.countryLo}" />
|
|
38 <h:panelGrid>
|
|
39 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
40 rendered="#{!empty CurrentCity.countryLo.entity.id}"
|
|
41 actionListener="#{CurrentCity.editThisCountryAction}" />
|
|
42 <h:commandButton alt="edit" image="#{ApplicationBean1.imgRemove16}"
|
|
43 rendered="#{!empty CurrentCity.countryLo.entity.id}"
|
|
44 actionListener="#{CurrentCity.removeThisCountryAction}" />
|
|
45 </h:panelGrid>
|
|
46
|
|
47 <h:outputText value="Places that are part of this"/>
|
7
|
48 <h:panelGrid columns="2" id="placePartOfThisPanel">
|
|
49 <rich:dataGrid var="place" style="border:none;"
|
|
50 value="#{CurrentCity.placesPartOfThis}">
|
|
51 <h:column style="border:none;">
|
|
52 <h:selectBooleanCheckbox
|
|
53 value="#{place.selected}" />
|
|
54 </h:column>
|
|
55 <h:column>
|
|
56 <h:outputText value="#{place.label}" />
|
|
57 </h:column>
|
|
58 </rich:dataGrid>
|
|
59 </h:panelGrid>
|
|
60 <h:panelGrid columns="1">
|
|
61 <a4j:commandButton
|
|
62 value="Remove"
|
|
63 actionListener="#{CurrentCity.listenerRemovePlacesPartOfThis}"
|
|
64 render="placePartOfThisPanel"
|
|
65 rendered="#{!empty CurrentCity.placesPartOfThis}"/>
|
|
66 </h:panelGrid>
|
|
67
|
|
68 </h:panelGrid>
|
|
69
|
|
70 <ismi:refWidget entityForm="#{CurrentCity}" />
|
|
71
|
|
72 <h:commandButton value="#{CurrentCity.saveButtonLabel}"
|
|
73 rendered="#{CurrentCity.renderSaveButton}"
|
|
74 onclick="#{ApplicationBean1.JSConfirmationSave}"
|
|
75 action="#{CurrentCity.save}" />
|
|
76 <h:commandButton value="Clear Form"
|
|
77 action="#{CurrentCity.clearAction}"
|
|
78 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
|
|
79
|
|
80 <h:outputText rendered="#{CurrentCity.create_error}"
|
89
|
81 value="Place already exists - not saved!" />
|
7
|
82
|
|
83 <!-- Unity Warning -->
|
|
84 <h:panelGrid id="placeUnityWarningPP">
|
|
85 <h:panelGroup
|
|
86 rendered="#{CurrentCity.renderUnityCheckerDialog}">
|
|
87 <div style="z-index: 100;" class="rf-pp-shade">
|
|
88 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
89 </div>
|
|
90
|
|
91 <h:panelGrid columns="1" class="rf-pp-cntr"
|
|
92 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;">
|
|
93
|
|
94 <div class="rf-pp-shdw"
|
|
95 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
|
|
96 </div>
|
|
97 <div class="rf-pp-hdr " style="cursor: default;">
|
|
98 <div class="rf-pp-hdr-cnt">Unity Warning</div>
|
|
99 </div>
|
|
100
|
|
101 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
|
|
102 style="width: 300px; height: 200px;">
|
|
103
|
|
104 <h:outputText value="#{CurrentCity.unityCheckerMsg}"/>
|
|
105 <h:panelGrid>
|
|
106 <a4j:commandButton value="Load Entity" action="#{CurrentCity.loadCloneEntity}"/>
|
|
107 <a4j:commandButton value="Continue Editing" action="#{CurrentCity.hideUnityCheckerDialog}" />
|
|
108 </h:panelGrid>
|
|
109
|
|
110 </h:panelGrid>
|
|
111 </h:panelGrid>
|
|
112
|
|
113 </h:panelGroup>
|
|
114 </h:panelGrid>
|
|
115
|
|
116 </ui:composition>
|
|
117 </body>
|
|
118 </html>
|