Tooltip for TimelineEvent

Community Driven Extensions Project
Post Reply
User avatar
Posts: 56
Joined: 05 Oct 2012, 12:02

16 Jan 2013, 17:06

Hi all,

I would like to know if it is possible to associate a tooltip to a TimelineEvent.

Thanks in advance.
PrimeFaces 4.0, PrimeFaces Extensions 1.2.0, Mojarra 2.1.13, Tomcat 7.0.42, Eclipse Indigo SR2

Posts: 110
Joined: 10 Nov 2010, 13:43
Location: Pune, India

18 Jan 2013, 08:24

Have you tried custom events?

I think you can try custom events and associate tooltip to event.

Let me know if this approach works or not.
Nilesh N. Mali
Angular 2.x | Prime NG
FF: latest | Chrome: latest | vscode
Blog: | PrimeFaces Extensions:

User avatar
Posts: 56
Joined: 05 Oct 2012, 12:02

18 Jan 2013, 18:35

I tried to associate a tooltip to a timeline event, but my approach does not work.

Code: Select all

	<h:form id="mainForm">
	<p:spacer width="100%" height="10" />
		<p:tab title="accordion">
			<pe:timeline id="accTimeline" value="#{timelineController.unavailabilities}"
				<p:ajax event="eventSelect" 

	<pe:tooltip for="#{timelineController.selectedEvent}" value="Informazioni principali (da definire)" 
		showEvent="slideToggle" hideEvent="slideToggle" />
	<p:dialog id="viewDialog" modal="true" 
			dynamic="true" widgetVar="viewDlg" 
			appendToBody="true" resizable="false"
			header="Dettagli" width="350">
			<h:panelGrid columns="2">
				<h:outputText value="Responsabile:" />
				<h:outputText value="#{timelineController.selectedEvent.title}" />
				<h:outputText value="Data Inizio:" />
				<h:outputText value="#{timelineController.selectedEvent.startDate}">
					<f:convertDateTime pattern="dd MMM yyyy" />
				<h:outputText value="Data Fine:" />
				<h:outputText value="#{timelineController.selectedEvent.endDate}">
					<f:convertDateTime pattern="dd MMM yyyy" />

If I uncomment the pe:tooltip object, the following exception occurs:

Code: Select all

java.lang.IllegalArgumentException: ""
	at javax.faces.component.UIComponentBase.findComponent(
	at org.primefaces.extensions.util.ComponentUtils.findTarget(
	at org.primefaces.extensions.util.ComponentUtils.findTarget(
	at org.primefaces.extensions.component.tooltip.TooltipRenderer.encodeEnd(
	at javax.faces.component.UIComponentBase.encodeEnd(
	at javax.faces.component.UIComponent.encodeAll(
	at javax.faces.render.Renderer.encodeChildren(
	at javax.faces.component.UIComponentBase.encodeChildren(
	at javax.faces.component.UIComponent.encodeAll(
	at javax.faces.component.UIComponent.encodeAll(
	at javax.faces.component.UIComponent.encodeAll(
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(
	at com.sun.faces.application.view.MultiViewHandler.renderView(
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(
	at com.sun.faces.lifecycle.Phase.doPhase(
	at com.sun.faces.lifecycle.LifecycleImpl.render(
	at javax.faces.webapp.FacesServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.valves.AccessLogValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.AbstractHttp11Processor.process(
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$
PrimeFaces 4.0, PrimeFaces Extensions 1.2.0, Mojarra 2.1.13, Tomcat 7.0.42, Eclipse Indigo SR2

User avatar
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Jan 2013, 19:52

I would like to know if it is possible to associate a tooltip to a TimelineEvent.
What is the problem? I don't know if you can assign a styleClass to timeline events, but if you can it, you can use "forSelector" attribiute then, e.g.

Code: Select all

<pe:tooltip value="Informazioni principali (da definire)"  forSelector=".styleClassOfTimelineEvent"/>
Simple look in Firebug what CSS class has a container element for timeline event.
PrimeFaces Cookbook (2. edition): Learning Angular UI Development with PrimeNG: ... th-primeng Blog:

Posts: 57
Joined: 19 Apr 2013, 19:13

23 Jan 2014, 21:01

Ramo, Oleg,

Have you guys figured out if you can put tooltips on each timeline item.

I just started using this extension and need help with toolltips as well.

I need to be able to pass some information from the bean side and once you mouse over a timeline item, I want to display that info.

This is the demo I am using. ... custom.jsf



Posts: 4
Joined: 26 Apr 2014, 10:58

17 Oct 2014, 22:04

The trick is:
  • place tooltips outside the pe:timeline definition
  • define in the data associated with the timeline events some unique identifier and based on add unique class identifier to each event
  • use jquery type selectors in tooltip for attribute (using the same class definition algorithm as mentioned before)
  • add ajax rangechanged event to update the container of externally defined tooltips; if one timeline event is far enough from visible area it is not created at first page GET so tooltip for attribute will not work

Code: Select all

<pe:timeline id="timelineInvoicing" value="#{phaseController.invoicingMilestonesModel}" var="milestone" varGroup="group"  widgetVar="timelineInvoicingWdgt">
		<f:facet name="group" >
				<h:outputText value="#{group}" style="font-weight:bold;" />  

		<h:panelGrid columns="1" class="invoicingMilestonesModelClass4Id_#{}" >
				<h:outputText value="#{milestone.value}">
						<f:convertNumber pattern="#,##0" />

		<p:ajax event="rangechanged" global="false" update="tooltips4TimelineInvoicing"/>

<p:panel id="tooltips4TimelineInvoicing" style="display: none">
		<ui:repeat value="#{}" var="milestone4Tooltip" >
				<p:tooltip for="@(.invoicingMilestonesModelClass4Id_#{})">
						<h:outputText value="#{}" >
								<f:convertDateTime pattern="dd.MM.yyyy" />


Posts: 1
Joined: 22 Oct 2014, 05:20

22 Oct 2014, 06:12

Thankx for this great and very helpful help......

Posts: 8
Joined: 08 May 2015, 13:59

26 Jul 2019, 23:32


I know that is old post but have one question. I set up it in me project and is it working autil timeline range change. After that stops work, ay updates do not help.What is the reason and how to solve it?

Posts: 1479
Joined: 22 Apr 2013, 15:48

27 Jul 2019, 14:19

Thanks for posting your question in PF forum instead since the component has moved to PF from PFE.

But I think your issue is:
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile:
PrimeFaces Elite 7.0.8 / PF Extensions 7.0.3

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests