ByteArrayResource resource = ... path = urlFor(new ResourceRequestHandler(resource))
On Fri, Mar 23, 2012 at 3:45 PM, Decebal Suiu <[email protected]> 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 onResourceRequested() { > createJsonResource(); > // TODO wicket 1.5 > // jsonResource.onResourceRequested(); > } > No method onResourceRequested() in ByteArrayResource. > > > // CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this, > IResourceListener.INTERFACE); > CharSequence dataPath = RequestCycle.get().urlFor(new > ComponentRenderingRequestHandler(this)); > System.out.println("*** " + dataPath); > > datePath is null after migration to wicket 1.5 > > > Best regards, > Decebal > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/WebResource-in-Wicket-1-5-tp4106181p4498851.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
