You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ista Pouss <is...@gmail.com> on 2009/04/03 12:04:23 UTC
JFreeChart and Wicket : width and height please
Hi,
I'm beguining to use JFreeChart. My tutorial is "JFreeChart and wicket
example" (http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).
That's work fine, except two things.
First, I think modestly there is a very little error : the tutorial
says "JFreeChart chart = (JFreeChart)getModelObject();", but it's work
better with "JFreeChart chart = (JFreeChart) getDefaultModelObject();"
for me.
Second (the question), how it is possible to set the width and height
in the html img of the graph ?
The generated html is <img wicket:id="graphe"
src="?wicket:interface=:2:votes:resultats:graphe:1:IResourceListener::">,
and I should prefer <img wicket:id="graphe"
src="?wicket:interface=:2:votes:resultats:graphe:1:IResourceListener::"
width="something" height="someother">
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: JFreeChart and Wicket : width and height please
Posted by James Carman <jc...@carmanconsulting.com>.
On Fri, Apr 3, 2009 at 6:04 AM, Ista Pouss <is...@gmail.com> wrote:
> Second (the question), how it is possible to set the width and height
> in the html img of the graph ?
I implemented something simple for JFreeChart in an Advanced Wicket
presentation I did:
http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java
It just allows you to show the chart as an image and it allows you to
specify the width/height.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org