Mercurial > hg > ismi-richfaces
comparison src/main/webapp/entry/place.xhtml @ 7:764f47286679
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 14:28:34 +0000 |
parents | |
children | 3e620f32ed5e |
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 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi"> | |
9 | |
10 <body> | |
11 <ui:composition> | |
12 | |
13 <h:panelGrid> | |
14 <h:outputText value="City - #{CurrentCity.entity.ownValue}" | |
15 rendered="#{!empty CurrentCity.entity.ownValue}" | |
16 styleClass="titlePanel"/> | |
17 <h:outputText value="City" | |
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 | |
25 <h:outputText value="Country/is part of " /> | |
26 <ismi:autocomplete lo="#{CurrentCity.countryLo}" /> | |
27 <h:panelGrid> | |
28 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
29 rendered="#{!empty CurrentCity.countryLo.entity.id}" | |
30 actionListener="#{CurrentCity.editThisCountryAction}" /> | |
31 </h:panelGrid> | |
32 | |
33 <h:outputText id="name" value="City/Place Name" /> | |
34 <h:inputText size="100" value="#{CurrentCity.attributes['name']}" /> | |
35 <h:outputText /> | |
36 | |
37 <h:outputText value="Type (choose region for country)" /> | |
38 <h:selectOneListbox size="4" partialSubmit="true" | |
39 value="#{CurrentCity.attributes['type']}"> | |
40 <f:selectItems value="#{CurrentCity.suggestedTypes}" /> | |
41 </h:selectOneListbox> | |
42 <h:outputText /> | |
43 | |
44 <h:outputText value="Places part of this"/> | |
45 <h:panelGrid columns="2" id="placePartOfThisPanel"> | |
46 <rich:dataGrid var="place" style="border:none;" | |
47 value="#{CurrentCity.placesPartOfThis}"> | |
48 <h:column style="border:none;"> | |
49 <h:selectBooleanCheckbox | |
50 value="#{place.selected}" /> | |
51 </h:column> | |
52 <h:column> | |
53 <h:outputText value="#{place.label}" /> | |
54 </h:column> | |
55 </rich:dataGrid> | |
56 </h:panelGrid> | |
57 <h:panelGrid columns="1"> | |
58 <a4j:commandButton | |
59 value="Remove" | |
60 actionListener="#{CurrentCity.listenerRemovePlacesPartOfThis}" | |
61 render="placePartOfThisPanel" | |
62 rendered="#{!empty CurrentCity.placesPartOfThis}"/> | |
63 </h:panelGrid> | |
64 | |
65 <h:outputText value="People, who lived here"/> | |
66 <h:panelGrid columns="2" id="peopleLivedInPanel"> | |
67 <rich:dataGrid var="place" style="border:none;" | |
68 value="#{CurrentCity.peopleLivedIn}"> | |
69 <h:column style="border:none;"> | |
70 <h:selectBooleanCheckbox | |
71 value="#{place.selected}" /> | |
72 </h:column> | |
73 <h:column> | |
74 <h:outputText value="#{place.label}" /> | |
75 </h:column> | |
76 <h:column> | |
77 <h:outputLink value="#{ApplicationBean1.root}/search/displayAuthor.xhtml?personId=#{place.obj.id}" | |
78 title="Display this person"> | |
79 <h:graphicImage url="#{ApplicationBean1.displayImage}" /> | |
80 </h:outputLink> | |
81 </h:column> | |
82 </rich:dataGrid> | |
83 | |
84 </h:panelGrid> | |
85 <h:panelGrid columns="1"> | |
86 <a4j:commandButton | |
87 value="Remove" | |
88 actionListener="#{CurrentCity.listenerRemovePeopleLivedIn}" | |
89 render="peopleLivedInPanel" | |
90 rendered="#{!empty CurrentCity.peopleLivedIn}"/> | |
91 </h:panelGrid> | |
92 | |
93 | |
94 | |
95 </h:panelGrid> | |
96 | |
97 <ismi:refWidget entityForm="#{CurrentCity}" /> | |
98 | |
99 <h:commandButton value="#{CurrentCity.saveButtonLabel}" | |
100 rendered="#{CurrentCity.renderSaveButton}" | |
101 onclick="#{ApplicationBean1.JSConfirmationSave}" | |
102 action="#{CurrentCity.save}" /> | |
103 <h:commandButton value="Clear Form" | |
104 action="#{CurrentCity.clearAction}" | |
105 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
106 <h:commandButton value="Save as new Entity" | |
107 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}" | |
108 rendered="#{(CurrentCity.entity.id != null and Session.canCreate)}" | |
109 action="#{CurrentCity.saveAsNewEntity}" /> | |
110 | |
111 <h:outputText rendered="#{CurrentCity.create_error}" | |
112 value="City already exists - not saved!" /> | |
113 | |
114 <!-- Unity Warning --> | |
115 <h:panelGrid id="placeUnityWarningPP"> | |
116 <h:panelGroup | |
117 rendered="#{CurrentCity.renderUnityCheckerDialog}"> | |
118 <div style="z-index: 100;" class="rf-pp-shade"> | |
119 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
120 </div> | |
121 | |
122 <h:panelGrid columns="1" class="rf-pp-cntr" | |
123 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;"> | |
124 | |
125 <div class="rf-pp-shdw" | |
126 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> | |
127 </div> | |
128 <div class="rf-pp-hdr " style="cursor: default;"> | |
129 <div class="rf-pp-hdr-cnt">Unity Warning</div> | |
130 </div> | |
131 | |
132 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" | |
133 style="width: 300px; height: 200px;"> | |
134 | |
135 <h:outputText value="#{CurrentCity.unityCheckerMsg}"/> | |
136 <h:panelGrid> | |
137 <a4j:commandButton value="Load Entity" action="#{CurrentCity.loadCloneEntity}"/> | |
138 <a4j:commandButton value="Continue Editing" action="#{CurrentCity.hideUnityCheckerDialog}" /> | |
139 </h:panelGrid> | |
140 | |
141 </h:panelGrid> | |
142 </h:panelGrid> | |
143 | |
144 </h:panelGroup> | |
145 </h:panelGrid> | |
146 | |
147 </ui:composition> | |
148 </body> | |
149 </html> |