|
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 study event"
|
|
|
14 actionListener="#{Session.listenerCreateStudyEvent}" />
|
|
|
15
|
|
|
16 <h:panelGrid columns="2" styleClass="createPanel"
|
|
|
17 columnClasses="createPanelFirstColumn">
|
|
|
18
|
|
117
|
19 <h:outputText value="ID" />
|
|
|
20 <h:outputText value="#{Session.studyEventForm.event.id}" />
|
|
|
21
|
|
7
|
22 <h:outputLabel value="Own value" />
|
|
|
23 <h:outputLabel value="#{Session.studyEventForm.event.ownValue}" />
|
|
|
24
|
|
|
25 <h:outputText value="Text" />
|
|
|
26 <h:panelGrid columns="1">
|
|
|
27 <ismi:autocomplete lo="#{Session.studyEventForm.textLo}" />
|
|
|
28
|
|
|
29 <a4j:outputPanel ajaxRendered="true">
|
|
|
30 <h:selectOneMenu
|
|
|
31 rendered="#{Session.studyEventForm.textLo.statusImage.ok}"
|
|
|
32 value="#{Session.studyEventForm.witnessId}"
|
|
|
33 valueChangeListener="#{Session.studyEventForm.listenerChangeWitness}">
|
|
|
34 <f:selectItems value="#{Session.studyEventForm.witnessList}" />
|
|
|
35 <a4j:ajax event="change" render="selectedWitness" />
|
|
|
36 </h:selectOneMenu>
|
|
|
37
|
|
|
38 <h:panelGrid id="selectedWitness" style="width: 500px;" columns="1"
|
|
|
39 rendered="#{Session.studyEventForm.witness != null}">
|
|
|
40 <h:outputLabel value="Witness associated:" />
|
|
|
41 <h:outputLabel
|
|
|
42 value="#{Session.studyEventForm.witness.ownValue} [ID=#{Session.studyEventForm.witness.id}]" />
|
|
|
43 </h:panelGrid>
|
|
|
44 <h:outputLabel rendered="#{Session.studyEventForm.witness != null}" />
|
|
|
45 </a4j:outputPanel>
|
|
|
46
|
|
|
47 </h:panelGrid>
|
|
|
48
|
|
|
49
|
|
|
50 <h:panelGrid columns="1">
|
|
|
51 <h:outputText value="Person" />
|
|
|
52 <h:outputText value="(engaging with text)" />
|
|
|
53 </h:panelGrid>
|
|
|
54 <ismi:autocomplete lo="#{Session.studyEventForm.personLo}" />
|
|
|
55
|
|
|
56 <h:outputText value="Options for engagement" />
|
|
|
57 <h:selectOneMenu
|
|
|
58 value="#{Session.studyEventForm.attributes['options_for_engagement']}">
|
|
|
59 <f:selectItems
|
|
|
60 value="#{Session.studyEventForm.suggestedEngagementOptions}" />
|
|
|
61 </h:selectOneMenu>
|
|
|
62
|
|
|
63 <h:panelGrid columns="1">
|
|
|
64 <h:outputText value="Person with whom" />
|
|
|
65 <h:outputText value="one read, dictated or" />
|
|
|
66 <h:outputText value="studied the text" />
|
|
|
67 </h:panelGrid>
|
|
|
68 <ismi:autocomplete lo="#{Session.studyEventForm.advisorLo}" />
|
|
|
69
|
|
|
70 <h:outputText value="Place" />
|
|
|
71 <ismi:autocomplete lo="#{Session.studyEventForm.placeLo}" />
|
|
|
72
|
|
|
73 <h:outputText value="Notes" />
|
|
|
74 <h:inputTextarea cols="80" rows="5"
|
|
|
75 value="#{Session.studyEventForm.attributes['notes']}"/>
|
|
|
76
|
|
|
77 <h:outputText value="Date of Event" />
|
|
|
78 <ismi:date date="#{Session.studyEventForm.date}"/>
|
|
|
79
|
|
|
80 <h:outputText/>
|
|
|
81 <h:commandButton
|
|
|
82 value="#{(empty Session.studyEventForm.event.id) ? 'Create' : 'Change'}"
|
|
|
83 actionListener="#{Session.studyEventForm.listenerSave}"/>
|
|
|
84
|
|
|
85 </h:panelGrid>
|
|
|
86 </ui:composition>
|
|
|
87 </body>
|
|
|
88
|
|
|
89 </html> |