schedule.xhtml
5.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:schedule="http://richfaces.org/sandbox/schedule">
<head>
<title></title>
</head>
<body>
<!-- mode should passed to this template as param -->
<ui:composition>
<h:form id="f">
<schedule:schedule id="schedule"
widgetVar="schedule"
switchType="#{mode}"
value="#{myBean.lazyDataModel}"
var="event"
weekMode="#{myBean.weekMode}"
height="#{myBean.height}"
date="#{myBean.initialDate}"
firstDay="#{myBean.firstDay}"
showWeekends="#{myBean.showWeekends}"
allDayText="#{myBean.allDayText}"
allDayByDefault="#{myBean.allDayByDefault}"
allDaySlot="#{myBean.allDaySlot}"
aspectRatio="#{myBean.aspectRatio}"
axisFormat="#{myBean.axisFormat}"
contentHeight="#{myBean.contentHeight}"
defaultEventMinutes="#{myBean.defaultEventMinutes}"
dragOpacity="#{myBean.dragOpacity}"
dragRevertDuration="#{myBean.dragRevertDuration}"
editable="#{myBean.editable}"
selectable="#{myBean.selectable}"
selectHelper="#{myBean.selectHelper}"
unselectAuto="#{myBean.unselectAuto}"
unselectCancel="#{myBean.unselectCancel}"
firstHour="#{myBean.firstHour}"
headerCenter="#{myBean.headerCenter}"
headerLeft="#{myBean.headerLeft}"
headerRight="#{myBean.headerRight}"
isRTL="#{myBean.isRTL}"
maxTime="#{myBean.maxTime}"
minTime="#{myBean.minTime}"
slotMinutes="#{myBean.slotMinutes}"
view="#{myBean.view}"
columnFormat="#{myBean.columnFormat}"
titleFormat="#{myBean.titleFormat}"
timeFormat="#{myBean.timeFormat}"
itemResizeListener="#{myBean.taskResized}"
itemMoveListener="#{myBean.taskMoved}"
itemSelectListener="#{myBean.taskSelected}"
viewChangeListener="#{myBean.viewChanged}"
dateRangeChangeListener="#{myBean.dateRangeChanged}"
dateRangeSelectListener="#{myBean.dateRangeSelected}"
dateSelectListener="#{myBean.dateSelected}"
ondaterangeselect="#{rich:component('schedule')}.unselect()"
>
<schedule:scheduleItem eventId="#{event.id}" startDate="#{event.startDate}" title="#{event.title}"
endDate="#{event.endDate}" allDay="#{event.allDay}"
styleClass="#{event.id == 1 ? 'first' : null}" data="#{event.data}"/>
<schedule:scheduleMonthView weekMode="#{myBean.weekMode}" titleFormat="MM yy" timeFormat="h:m"
columnFormat="dddd" dragOpacity=".1"/>
<schedule:scheduleAgendaDayView titleFormat="d MMM yy" timeFormat="hh:m" columnFormat="ddd"
dragOpacity=".3"/>
<schedule:scheduleBasicDayView titleFormat="dd MMM yy" timeFormat="hh:mm" columnFormat="aaa ddd"
dragOpacity=".5"/>
<schedule:scheduleAgendaWeekView titleFormat="dd MMM yy" timeFormat="hh:mm" columnFormat="aaa ddd"
dragOpacity=".7"/>
<schedule:scheduleBasicWeekView titleFormat="bw dd MMM yy" timeFormat="bw hh:mm" columnFormat="bw ddd"
dragOpacity=".9"/>
<schedule:itemSelectListener binding="#{myBean.additionalListener}"/>
<schedule:itemMoveListener binding="#{myBean.additionalListener}"/>
<schedule:itemResizeListener binding="#{myBean.additionalListener}"/>
<schedule:dateRangeChangeListener binding="#{myBean.additionalListener}"/>
<schedule:dateRangeSelectListener binding="#{myBean.additionalListener}"/>
<schedule:dateSelectListener binding="#{myBean.additionalListener}"/>
<schedule:viewChangeListener binding="#{myBean.additionalListener}"/>
</schedule:schedule>
</h:form>
<rich:insert src="/pages/schedule.xhtml" highlight="xhtml" rendered="#{showSource!=false}"/>
</ui:composition>
</body>
</html>