here is something you might want to try:
class JFreeChartImage extends Image {
protected Resource getImageResource() {
Chart chart=(Chart)getModelObject();
return new JFreeChartImageResource(chart, ....
}
}
this way your chart data will be updated from request to request and it can be detachable, etc. models rock!
-Igor
On 6/21/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
Wicket is pretty cool :-)
I created a little JFreeChart experiment. You can see all the code at
http://stuff.sateh.com/JFreeChartImageResource/
The test page looks like this:
http://stuff.sateh.com/JFreeChartImageResource/TestPage.png
I'm sure you all have done this a thousand times already, but I was really surprised how easy it was to create this. In for example Spring MVC I have to jump through hoops to get this done; generating the image, storing it somewhere, keeping a reference, linking it in a page, writing a custom jsp tag probably, etc. etc. With Wicket it is so000 much easer.
Did I mention that Wicket is pretty cool?
S.
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
