aspose file tools*
The moose likes Other Open Source Projects and the fly likes Cewolf multiple charts one same page, tooltips not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Cewolf multiple charts one same page, tooltips not working properly" Watch "Cewolf multiple charts one same page, tooltips not working properly" New topic
Author

Cewolf multiple charts one same page, tooltips not working properly

ray ach
Greenhorn

Joined: Nov 12, 2012
Posts: 1
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
Marshal

Joined: Mar 22, 2005
Posts: 42600
    
  65
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cewolf multiple charts one same page, tooltips not working properly