Mercurial > hg > ismi-richfaces
annotate src/main/webapp/events/transferEvent.xhtml @ 117:07e4eae9027f
add id display to event forms.
author | casties |
---|---|
date | Thu, 22 Dec 2016 16:56:36 +0100 |
parents | 59f26a5ef2b3 |
children | 38c13c8e9b78 |
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 <a4j:commandButton value="Create new transfer event" | |
14 actionListener="#{Session.listenerCreateTransferEvent}" /> | |
15 | |
16 <h:panelGrid columns="2" styleClass="createPanel" | |
17 columnClasses="createPanelFirstColumn"> | |
18 | |
117 | 19 <h:outputText value="ID" /> |
20 <h:outputText value="#{Session.transferEventForm.event.id}" /> | |
21 | |
7 | 22 <h:outputLabel value="Own value" /> |
23 <h:outputLabel value="#{Session.transferEventForm.event.ownValue}" /> | |
24 | |
25 <h:outputLabel value="Text"/> | |
26 <h:panelGrid columns="1"> | |
27 <ismi:autocomplete lo="#{Session.transferEventForm.textLo}" /> | |
28 | |
29 <a4j:outputPanel ajaxRendered="true"> | |
30 <h:selectOneMenu | |
31 rendered="#{Session.transferEventForm.textLo.statusImage.ok}" | |
32 value="#{Session.transferEventForm.witnessId}" | |
33 valueChangeListener="#{Session.transferEventForm.listenerChangeWitness}"> | |
34 <f:selectItems value="#{Session.transferEventForm.witnessList}" /> | |
35 <a4j:ajax event="change" render="selectedWitness1" /> | |
36 </h:selectOneMenu> | |
37 | |
38 <h:panelGrid id="selectedWitness1" style="width: 500px;" columns="1" | |
39 rendered="#{Session.transferEventForm.witness != null}"> | |
112
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
40 <h:outputLabel value="Witness:" /> |
7 | 41 <h:outputLabel |
42 value="#{Session.transferEventForm.witness.ownValue} [ID=#{Session.transferEventForm.witness.id}]" /> | |
43 </h:panelGrid> | |
44 <h:outputLabel rendered="#{Session.transferEventForm.witness != null}" /> | |
45 </a4j:outputPanel> | |
46 | |
47 </h:panelGrid> | |
48 | |
49 | |
50 <h:outputLabel value="From"/> | |
112
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
51 <h:panelGrid> |
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
52 <h:outputLabel value="Person from whom transfer was made"/> |
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
53 <ismi:autocomplete lo="#{Session.transferEventForm.personFromLo}" /> |
7 | 54 </h:panelGrid> |
55 | |
56 <h:outputLabel value="To"/> | |
112
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
57 <h:panelGrid > |
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
58 <h:outputLabel value="Person to whom transfer was made"/> |
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
59 <ismi:autocomplete lo="#{Session.transferEventForm.personToLo}" /> |
7 | 60 </h:panelGrid> |
61 | |
62 <h:outputLabel value="Options for transfer"/> | |
63 <h:selectOneMenu | |
64 value="#{Session.transferEventForm.attributes['options_for_transfer']}"> | |
65 <f:selectItems value="#{Session.transferEventForm.suggestedTransferOptions}"/> | |
112
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
66 </h:selectOneMenu> |
7 | 67 |
68 <h:outputLabel value="Price"/> | |
69 <h:inputText value="#{Session.transferEventForm.attributes['price']}"/> | |
70 | |
71 <h:outputLabel value="Original location"/> | |
112
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
72 <ismi:autocomplete lo="#{Session.transferEventForm.placeOriginalLocationLo}" /> |
7 | 73 |
74 <h:outputLabel value="New location"/> | |
112
59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
casties
parents:
7
diff
changeset
|
75 <ismi:autocomplete lo="#{Session.transferEventForm.placeNewLocationLo}" /> |
7 | 76 |
77 <h:outputLabel value="Notes"/> | |
78 <h:inputTextarea cols="80" rows="5" | |
79 value="#{Session.transferEventForm.attributes['notes']}"/> | |
80 | |
81 <h:outputLabel value="Date of Event"/> | |
82 <ismi:date date="#{Session.transferEventForm.date}"/> | |
83 | |
84 <h:outputLabel/> | |
85 <h:commandButton | |
86 value="#{(empty Session.transferEventForm.event.id) ? 'Create' : 'Change'}" | |
87 actionListener="#{Session.transferEventForm.listenerSave}"/> | |
88 | |
89 </h:panelGrid> | |
90 | |
91 </ui:composition> | |
92 </body> | |
93 </html> |