I've got a p:timeline
Code: Select all
<h:form id="timelineForm">
<p:dialog header="#{bean.title}" widgetVar="timelineModal" width="800">
<div style="width:780;">
<pe:timeline id="eventSequenceTimeline"
value="#{bean.timeLine}" height="250px"
zoomable="true" showMajorLabels="true"
width="100%"
widgetVar="eventTimelineWidget">
<p:ajax event="select"
process="@form"
listener="#{bean.onSelect}"
/>
</pe:timeline>
</s:div>
</p:dialog>
</h:form>
Code: Select all
public void onSelect(TimelineSelectEvent e) {
TimelineEvent timelineEvent = e.getTimelineEvent();
log.info("TimelineSelectEvent #0 timeline event #1 source #2", e,timelineEvent,e.getSource());
}
a) when I don't use process="@form" the event listener is not called (@this does not work either)
b) when I use process="@form" the event listener is called but the TimelineEvent on the TimelineSelectEvent is null!
I've compared what is being submitted on the timeline demo:
Code: Select all
javax.faces.partial.ajax:true
javax.faces.source:timeline
javax.faces.partial.execute:timeline
javax.faces.behavior.event:select
javax.faces.partial.event:select
timeline_eventIdx:1
mainForm:mainForm
selectable_input:on
zoomable_input:on
moveable_input:on
stackEvents_input:on
eventStyle:box
currentTime_input:on
sourceTabView_activeIndex:0
javax.faces.ViewState:-44949295983565729:-5133493712255009419
Code: Select all
javax.faces.partial.ajax:true
javax.faces.source:timelineForm:eventSequenceTimeline
javax.faces.partial.execute:contLifecycleModalForm
javax.faces.behavior.event:select
javax.faces.partial.event:select
timelineForm:timelineForm
javax.faces.ViewState:-6873647107789893800:-7883880389977133050
I can't see any javascript errors.
Any ideas what could be wrong?