#61 More than one chart with one DataSetProducer fails in Resin

cewolf-0.10
open
nobody
Rendering (22)
5
2013-01-13
2005-01-31
Anonymous
No

I have tried to get Cewolf charts to work in Resin
(having got them to work fine in Tomcat 5.5 and
5.0.28). I find that only one of my two charts is
displayed using Resin - it seems not to like the fact that
there is one DataSetProducer for two charts.

Discussion

  • Tom Porter
    Tom Porter
    2005-02-01

    Logged In: YES
    user_id=1209832

    I do not know anything about Resin, but while using the
    0.10.1 version of Cewolf I have stumbled upon a bug that
    may relate to this issue. It is located in
    de.laures.cewolf.taglib.util.DatasetProductionTimesKey. The
    constructor of this class takes the producerId and params
    Map and is supposed to generate a hash key for the unique
    combo. The parameters are correctly passed to the
    constructor, but nothing is done with them once there. They
    do not become part of a new DatasetProductionTimesKey
    object and therefore are not used when it is serialized to
    generate a unique key. Even if this problem is corrected, an
    additional problem surfaces. The data cache key is generated
    once for the <cewolf:chart> tag and once for the
    <cewolf:producer> tag. The producer tag adds an element to
    the params map which will lead to a different data cache key
    being produced from that of the chart tag. I haven't delved
    further into an overall solution for this issue at this time, but
    maybe this comment will help send someone in the right
    direction.

     
  • dimastech
    dimastech
    2005-02-16

    Logged In: YES
    user_id=1220408

    We've resolved this problem by just using <iframe
    src="path/to/graph/file"></iframe> for each individual graph.

     
  • Logged In: NO

    You need to give different chart id for each