Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/repository.xhtml @ 139:9cd25e1a58f0
change save button to a4j to show busy indicator for person, text, and other entry forms.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 16 Jun 2017 19:21:44 +0200 |
parents | 3e620f32ed5e |
children |
rev | line source |
---|---|
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="Repository - #{CurrentRepository.entity.ownValue}" | |
16 rendered="#{!empty CurrentRepository.entity.ownValue}" | |
17 styleClass="titlePanel"/> | |
18 <h:outputText value="Repository" | |
19 rendered="#{empty CurrentRepository.entity.ownValue}" | |
20 styleClass="titlePanel"/> | |
21 </h:panelGrid> | |
22 | |
23 <h:panelGrid columns="4" styleClass="createPanel" | |
24 columnClasses="createPanelFirstColumn" id="repoPanel"> | |
25 | |
26 <h:outputLabel value="Country" /> | |
27 <ismi:autocomplete lo="#{CurrentRepository.countryLo}" /> | |
28 <h:outputText /> | |
29 <h:panelGrid> | |
30 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
31 rendered="#{!empty CurrentRepository.countryLo.entity.id}" | |
32 actionListener="#{CurrentRepository.editThisCountryAction}" /> | |
33 </h:panelGrid> | |
34 | |
35 <h:outputLabel value="Place/City" /> | |
36 <ismi:autocomplete lo="#{CurrentRepository.cityLo}" /> | |
37 <h:panelGrid> | |
38 <h:selectOneMenu | |
39 rendered="#{!empty CurrentRepository.citiesInCurrentCountry}" | |
40 valueChangeListener="#{CurrentRepository.inCurrentCountryListener}"> | |
41 <f:selectItems value="#{CurrentRepository.citiesInCurrentCountry}" /> | |
42 <a4j:ajax event="change" render="repoPanel" /> | |
43 </h:selectOneMenu> | |
44 </h:panelGrid> | |
45 <h:panelGrid> | |
46 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
47 rendered="#{!empty CurrentRepository.cityLo.entity.id}" | |
48 actionListener="#{CurrentRepository.editThisCityAction}" /> | |
49 </h:panelGrid> | |
50 | |
51 <h:outputText /> | |
52 <h:commandButton | |
53 actionListener="#{CurrentRepository.checkConsistencyFromCountryToCodex}" | |
54 value="Check Consistency From Country To Codex" /> | |
55 <h:outputText /> | |
56 <h:outputText /> | |
57 | |
58 <h:outputLabel value="Repository Name" /> | |
59 <h:inputText size="100" | |
60 value="#{CurrentRepository.attributes['name']}" /> | |
61 <h:outputText /> | |
62 <h:outputText /> | |
63 | |
64 </h:panelGrid> | |
65 | |
66 <ismi:refWidget entityForm="#{CurrentRepository}" /> | |
67 | |
68 <h:panelGrid columns="4"> | |
69 <h:outputText value="ID of the Repository" /> | |
70 <h:inputText value="#{CurrentRepository.currentId}" /> | |
71 <h:commandButton value="Load Repository By ID" | |
72 action="#{CurrentRepository.actionReloadEntity}" | |
73 onclick="confirm('Do you really want to reload the entity?');" /> | |
74 <h:outputText value="#{CurrentRepository.currentIdMsg}" | |
75 style="color:red" /> | |
76 </h:panelGrid> | |
77 | |
139
9cd25e1a58f0
change save button to a4j to show busy indicator for person, text, and other entry forms.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
79
diff
changeset
|
78 <a4j:commandButton value="#{CurrentRepository.saveButtonLabel}" |
7 | 79 rendered="#{CurrentRepository.renderSaveButton}" |
80 onclick="#{ApplicationBean1.JSConfirmationSave}" | |
81 action="#{CurrentRepository.save}" /> | |
82 <h:commandButton value="Clear Form" | |
83 action="#{CurrentRepository.clearAction}" | |
84 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
85 | |
86 <h:outputText rendered="#{CurrentRepository.create_error}" | |
87 value="City already exists - not saved!" /> | |
88 | |
89 | |
90 <!-- Unity Warning --> | |
91 <h:panelGrid id="repUnityWarningPP"> | |
92 <h:panelGroup | |
93 rendered="#{CurrentRepository.renderUnityCheckerDialog}"> | |
94 <div style="z-index: 100;" class="rf-pp-shade"> | |
95 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
96 </div> | |
97 | |
98 <h:panelGrid columns="1" class="rf-pp-cntr" | |
99 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;"> | |
100 | |
101 <div class="rf-pp-shdw" | |
102 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> | |
103 </div> | |
104 <div class="rf-pp-hdr " style="cursor: default;"> | |
105 <div class="rf-pp-hdr-cnt">Unity Warning</div> | |
106 </div> | |
107 | |
108 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" | |
109 style="width: 300px; height: 200px;"> | |
110 | |
111 <h:outputText value="#{CurrentRepository.unityCheckerMsg}"/> | |
112 <h:panelGrid> | |
113 <a4j:commandButton value="Load Entity" action="#{CurrentRepository.loadCloneEntity}"/> | |
114 <a4j:commandButton value="Continue Editing" action="#{CurrentRepository.hideUnityCheckerDialog}" /> | |
115 </h:panelGrid> | |
116 | |
117 </h:panelGrid> | |
118 </h:panelGrid> | |
119 | |
120 </h:panelGroup> | |
121 </h:panelGrid> | |
122 | |
123 </ui:composition> | |
124 </body> | |
125 </html> |