p:timeline Problem switching from Extensions to Primefaces

UI Components for JSF
Post Reply
koekiebox
Posts: 50
Joined: 18 Mar 2014, 15:44

17 Jun 2016, 11:22

I migrated to Primefaces 5.3.14 and switched to using the p:timeline instead of the Primefaces Extensions timeline.

I am receiving a page error and Primefaces error on my timeline component (Chrome and Firefox).

See below;

Image

Code:

Code: Select all


<p:timeline id="timeline"
                 widgetVar="timelineWdgt"
                 value="#{scheduleBean.timelineModel}"
                 showNavigation="true"
                 axisOnTop="true"
                 selectable="true"
                 zoomable="true"
                 showCurrentTime="true"
                 moveable="true"
                 eventMargin="10"
                 eventMarginAxis="0"
                 zoomMax="#{scheduleBean.timelineZoomMax}"
                 zoomMin="#{scheduleBean.timelineZoomMin}"
                 start="#{scheduleBean.timelineStartDate}"
                 end="#{scheduleBean.timelineEndDate}"
                 unselectable="false"
                 editable="false"
                 showButtonNew="false"
                 stackEvents="false"
                 themable="false">
        <p:ajax event="select" process="@this" update=":scheduleEventInfoForm"
                listener="#{scheduleBean.actionOnPassEventSelect}"/>
    </p:timeline>

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

17 Jun 2016, 11:33

The errors you are getting are going to be more helpful than just your code.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

koekiebox
Posts: 50
Joined: 18 Mar 2014, 15:44

17 Jun 2016, 11:44

I noticed now that its not PrimeFaces timeline.

I actually have a PrimeFaces extensions timer. Which seems to be causing the issue.

If I remove it, it works fine.
I posted a screenshot of the actual error.

Code: Select all

<h:form rendered="#{item.active}" id="nextRunTimer">
                <pe:timer timeout="#{item.basePeriodicScheduleTask.secondsBeforeNextRun}"
                          format="#{item.basePeriodicScheduleTask.countDownTimerFormat}"/>
            </h:form>
            <p:outputLabel rendered="#{not item.active}" value="-" />

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 49 guests