By default resources are cachable.
You have to turn that off first:

SpclChartResource resource = new SpclChartResource() {
/// fooo
};
resource.setCacheable(false);

Image tmpImage2 = new Image("image2", resource);

johan


On 2/28/06, Anders Peterson < [EMAIL PROTECTED]> wrote:
Hi,

On one page I'm displaying dynamic charts (JFreeChart) as images. The
charts, the data they're based on, are constantly changed by the users.

The problem (as I understand it): The web browser doesn't know that the
image has changed and therefore (sometimes) uses a cached image. Which
means incorrect data is displayed.

How can I make sure the browser always asks for a fresh image?

/Anders


Image tmpImage2 = new Image("image2", new SpclChartResource() {

        public AbstractChartFactory getFactory() {

        this.setHeight(300);
        this.setWidth(600);

        DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory();
         retVal.setLegend(true);
        retVal.setType(AbstractChartFactory.TYPE_BarChart);
        ...
--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to