Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!

ray ach

+ Follow
since Nov 12, 2012
Apples and Likes
Apples
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ray ach

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.