Re: Wikcet Freechart and SVG

2008-06-30 Thread Nino Saturnino Martinez Vazquez Wael
Ahh okay, then you need to create a panel or something(maybe do it like image itself just copy the source and make it attachable to embed) that contains the embed... Manuel Corrales wrote: Sorry for my stupidity :( Ive tried your code, and as said before, the svg is being generated ok, but i

Re: Wikcet Freechart and SVG

2008-06-30 Thread Manuel Corrales
Sorry for my stupidity :( Ive tried your code, and as said before, the svg is being generated ok, but it is not displayed on the browser (attached an image of the page). When i right click on the broken image icon, and press save as, i can download the svg. For what i was reading, i dont think it

Re: Wikcet Freechart and SVG

2008-06-30 Thread Manuel Corrales
I am going to try your code as soon as i can, but i still don't understand where are you generating the svg image on this code. On Mon, Jun 30, 2008 at 1:59 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > hmm whats JFreeChart image? > > > I usually do this, in my domain cla

Re: Wikcet Freechart and SVG

2008-06-30 Thread Nino Saturnino Martinez Vazquez Wael
hmm whats JFreeChart image? I usually do this, in my domain classes : JFreeChart chart = ChartFactory .createTimeSeriesChart( Messages.getString("ReportWeightChart.5", locale), Messages.getString("ReportWeightChart.6", locale), Messages.getString("

Re: Wikcet Freechart and SVG

2008-06-30 Thread Manuel Corrales
Here is the page code: (this is all prototype code, just messing around with graphics on wicket) JFreeChart chart = ChartFactory.createPieChart("Resumen de gastos", dataSet, true, true, false); PiePlot plot = (PiePlot) chart.getPlot(); plot.setSectionOutlinesVisible

Re: Wikcet Freechart and SVG

2008-06-30 Thread Nino Saturnino Martinez Vazquez Wael
Manuel Corrales wrote: Yes, i know, but i have tried with firefox and opera. Also to implement the solution i have to write the image to the disc first and then dynamically set the data attribute on the object tag. Nino: what do you mean by where is the page? If i can see a non SVG image with

Re: Wikcet Freechart and SVG

2008-06-30 Thread Manuel Corrales
Yes, i know, but i have tried with firefox and opera. Also to implement the solution i have to write the image to the disc first and then dynamically set the data attribute on the object tag. Nino: what do you mean by where is the page? If i can see a non SVG image with exactly the same page, sho

Re: Wikcet Freechart and SVG

2008-06-30 Thread Federico Fanton
On Sun, 29 Jun 2008 21:03:29 -0300 "Manuel Corrales" <[EMAIL PROTECTED]> wrote: > Hey, great!! But still having issues, sorry to bother you again. Now i added > the svg to the page, but the browser do not display it. The image is there, > because when i right click the broken image that is display

Re: Wikcet Freechart and SVG

2008-06-29 Thread Nino Saturnino Martinez Vazquez Wael
hmm wheres the page where you create the image? please see this : http://www.wicket-library.com/wicket-examples/images/ Manuel Corrales wrote: Hey, great!! But still having issues, sorry to bother you again. Now i added the svg to the page, but the browser do not display it. The image is there,

Re: Wikcet Freechart and SVG

2008-06-29 Thread Manuel Corrales
Hey, great!! But still having issues, sorry to bother you again. Now i added the svg to the page, but the browser do not display it. The image is there, because when i right click the broken image that is displayed by the broser and press save as, i can save the svg and is good. Should my html tag

Re: Wikcet Freechart and SVG

2008-06-29 Thread Nino Saturnino Martinez Vazquez Wael
instantiate a wicket image, with the resource.. It will not change the format.. Just set the format to svg.. Manuel Corrales wrote: Thanks, but still dont get it. I did that, but now how can i add this image to a page? The add method on page does not accept this DynamicImageResource. Also, this

Re: Wikcet Freechart and SVG

2008-06-29 Thread Manuel Corrales
Thanks, but still dont get it. I did that, but now how can i add this image to a page? The add method on page does not accept this DynamicImageResource. Also, this will render the svg directly to the page? Or will transform it to other format? (the documentation on DynamicImageResource only mention

Re: Wikcet Freechart and SVG

2008-06-29 Thread Nino Saturnino Martinez Vazquez Wael
somewhat like this, and then just add the image as an image...: import org.apache.wicket.markup.html.image.resource.DynamicImageResource; public class ImageResource extends DynamicImageResource { // has to save this. or get the image another way! private byte[] image; public ImageR

Wikcet Freechart and SVG

2008-06-28 Thread Manuel Corrales
Hi, i have some jfreechart generated images on my application. I did this using an example on the wicket wiki. I wonder if i can do the same thing, but sending an SVG image to the client. I have the svg generated by jfreechar but now i dont know how can i use this on the html and on the Page with w