I've got a Problem:
I am using the basic timeline. Furthermore I fire an ajax request when selecting an event in the timeline. Everything works fine. But now I surrouned the timeline with a datalist. This is still working. For each object I create there is a new timeline.
But what does not work is that when selecting an event there is no ajax request fired.
Code: Select all
<p:dataList var="model" value="#{controller.models}">
<pe:timeline
value="#{model}"
editable="false" eventMargin="5" eventMarginAxis="3"
axisOnTop="false"
timeZone="Europe/Berlin"
selectable="true">
<p:ajax event="select"
listener="#{controller.onSelect}" />
</pe:timeline>
<p:spacer></p:spacer>
</p:dataList>
Code: Select all
public void onSelect(TimelineSelectEvent e) {
System.out.println("onselect");
}
Is my aim not possible? Or is there something obvious I do not see?