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