Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cewolf multiple charts one same page, tooltips not working properly

 
ray ach
Greenhorn
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic