• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

Cewolf multiple charts one same page, tooltips not working properly

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to display multiple charts one a single JSP page using Cewolf.
In my page i have a foreach loop which prints out the charts however the tooltips are only correct for the first chart. I use one producer for all charts and the charts themselves are correctly rendered. Only the tooltips are the problem.

Here is a snippet of my code:

The problem is that the <cewolf:chart> and <cewolf:img> tags interpret the ids as a string and does not evaluate the EL. If i inpect the generated HTML there is a <map> with id = ab${rowCounter.index} and thus the tooltips does not work correct because each chart uses the same id. I have also tried using scriptlets for the id ala

but this is also not evaluated by the tag and thus results in the same problem. I am sure EL expressions are working on my page, since i have other places on the page where i use EL and it works correctly. For instance the first <td> in the snippet above works correctly for the EL expression ${sra.text}.
Is it really the case that you cant use EL or scriptlets to get unique ids for each chat in the <cewolf:chart> and <cewolf:img> tags?

btw, i have seen this thread: similar issue but the solution offered there has the ids hardcoded which i cant do because i can have a variable number of charts per page.
Posts: 43016
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds as if there is something screwy about your JSTL setup. Here's a simple example that demonstrates that EL substitution works fine:

Also note that you're missing a $ symbol in line 6.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic