TimeLine Events Problem

Community Driven Extensions Project
Post Reply
hosshoss
Posts: 1
Joined: 17 Aug 2014, 15:38

17 Aug 2014, 15:55

Hi evryone i am using primeface 5.0 and primefaces-extenstios 2.0.0 , i have a problem in the events in my timeline , i've tried the change event and this is my code :

Code: Select all

<pe:timeline id="timeline" value="#{plageHoraireView.model}"  
             editable="true" eventMargin="10" eventMarginAxis="0"  
             locale="#{plageHoraireView.locale}"  
             start="#{plageHoraireView.start}"  
             end="#{plageHoraireView.end}"  
             showNavigation="true" showButtonNew="true"  
             axisOnTop="true" stackEvents="true" themable="false"
             
             >
 <p:ajax event="change"  listener="#{plageHoraireView.onChange()}" process="@form" />  

   
</pe:timeline>
And this is The ChangeEvent Function on the Bean :

Code: Select all

public void onChange(TimelineModificationEvent e) {
		TimelineEvent ev = e.getTimelineEvent();
		System.out.println(ev.getEndDate());
		System.out.println("okkkkkkkkkkkk");		
	}

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests