Re: WebResource in Wicket 1.5

2012-03-23 Thread Martin Grigorov
you can give different names (constructor parameter) for the ResourceReference's On Fri, Mar 23, 2012 at 5:12 PM, Decebal Suiu wrote: > Works but I have a question: > The json data path is wicket/resource/org.apache.wicket.Application/jsonRes > and I think that if I have many charts on the same p

Re: WebResource in Wicket 1.5

2012-03-23 Thread Decebal Suiu
Works but I have a question: The json data path is wicket/resource/org.apache.wicket.Application/jsonRes and I think that if I have many charts on the same page (my case), each chart with another json data, on your solution I am in treble. Right? Best regards, Decebal -- View this message in cont

Re: WebResource in Wicket 1.5

2012-03-23 Thread Martin Grigorov
Right. This will work only for static resources. Sorry. ResourceReference ref = new ResourceReference("jsonRes") { public IResource getResource() {return resource;} } urlFor(new ResourceReferenceHandler(reference)) On Fri, Mar 23, 2012 at 4:29 PM, Decebal Suiu wrote: > Thanks Martin for the your

Re: WebResource in Wicket 1.5

2012-03-23 Thread Decebal Suiu
Thanks Martin for the your prompt response. In constructor of OpenFlashChart I have these lines: jsonResource = new ByteArrayResource("text/plain", getJsonData().getBytes()); CharSequence dataPath = urlFor(new ResourceRequestHandler(jsonResource, null)); System.out.println("*** " + dataPath); d

Re: WebResource in Wicket 1.5

2012-03-23 Thread Martin Grigorov
ByteArrayResource resource = ... path = urlFor(new ResourceRequestHandler(resource)) On Fri, Mar 23, 2012 at 3:45 PM, Decebal Suiu wrote: > Hi > > I have the same problem. I changed WebResource to ByteArrayResource but I > don't know how I can migrate the following lines: > > public void onResour

Re: WebResource in Wicket 1.5

2012-03-23 Thread Decebal Suiu
Hi I have the same problem. I changed WebResource to ByteArrayResource but I don't know how I can migrate the following lines: public void onResourceRequested() { createJsonResource(); // TODO wicket 1.5 // jsonResource.onResourceRequested(); } No method onResourceRequested(

Re: WebResource in Wicket 1.5

2011-11-30 Thread nazeem
Yes, I am not yet thru with my wicket 1.5 migration. so was changing my 1.4 version and testing the same. I think its some thing to do with apache proxy. If i directly access the :8080/erp it works but when i access thru the apache /erp i face this problem. my apache config - Pr

Re: WebResource in Wicket 1.5

2011-11-30 Thread Martin Grigorov
On Wed, Nov 30, 2011 at 2:31 PM, nazeem wrote: > Thanks Vineet, I managed to change WebResource to ByteArrayResource. > > But I am stuck with a problem in the url for json constructed. > > CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this, > IResourceListener.INTERFACE); > Stri

Re: WebResource in Wicket 1.5

2011-11-30 Thread nazeem
Thanks Vineet, I managed to change WebResource to ByteArrayResource. But I am stuck with a problem in the url for json constructed. CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this, IResourceListener.INTERFACE); String url = RequestUtils.toAbsolutePath(dataPath.toString())

Re: WebResource in Wicket 1.5

2011-11-25 Thread vineet semwal
hi use bytearrayresource On Fri, Nov 25, 2011 at 7:49 AM, nazeem wrote: > I have a open flash chart implementation following the link below. > > https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html > > But when i upgrade to wicket 1.5 im stuck at this.. > > In class OpenFlashChart, >

WebResource in Wicket 1.5

2011-11-24 Thread nazeem
I have a open flash chart implementation following the link below. https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html But when i upgrade to wicket 1.5 im stuck at this.. In class OpenFlashChart, WebResource jsonResource = new WebResource() { @Override public IRes