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