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>
| 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:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.