This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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: 43011
  • 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.
I've never won anything before. Not even a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!