Setting different tooltips on JSF objects in the same jsp page

Technote (FAQ)


Question

How to set different tooltips (different hitmaps) on JViews related objects in the same JSF page?

Cause

In a single JSP page, when there are two JViews objects, for instance two charts (<jvcf:chartView>), two gantt (<jvgf:ganttView>), or two diagrams (<jvdf:diagrammerView>), each with its own tooltip (using the hitmap technology), if both uses the same servlet, only one of two hitmap classes will be used to generate the tooltip.

Answer

In order to have both hitmap classes to generate tooltips, you need to set different servlet with different hitmap explicitly to each JViews JSF object.

So for instance in the case of charts objects, you set in your web.xml:

<servlet>

<servlet-name>MyTooltipController1</servlet-name>

<servlet-class>ilog.views.chart.faces.servlet.IlvFacesChartServlet</servlet-class>

<init-param>

<param-name>hitmap</param-name>

<param-value>MyDefaultToolTipClass1</param-value>

</init-param>

...

</servlet>

<servlet>

<servlet-name>MyTooltipController2</servlet-name>

<servlet-class>ilog.views.chart.faces.servlet.IlvFacesChartServlet</servlet-class>

<init-param>

<param-name>hitmap</param-name>

<param-value>MyDefaultToolTipClass2</param-value>

</init-param>

...

</servlet>

//-----

And in your jsp file:

<jvcf:chartView id="chart1"

chart=...

[...]

servlet="MyTooltipController1" >

</jvcf:chartView>

<jvcf:chartView id="chart2"

chart=...

[...]

servlet="MyTooltipController2" >
</jvcf:chartView>

Cross reference information
Segment Product Component Platform Version Edition
Business Integration IBM ILOG JViews Charts General Platform Independent 8.8, 8.7 All Editions
Business Integration IBM ILOG JViews Diagrammer General Platform Independent 8.8, 8.7 All Editions
Business Integration IBM ILOG JViews Gantt General Platform Independent 8.8, 8.7 All Editions

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM ILOG JViews Enterprise
General

Software version:

8.7, 8.8

Operating system(s):

Platform Independent

Software edition:

All Editions

Reference #:

1612913

Modified date:

2012-10-04

Translate my page

Machine Translation

Content navigation