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 <decebal.s...@asf.ro> wrote: > 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); > > dataPath is null > > the wicket version is 1.5.4 > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/WebResource-in-Wicket-1-5-tp4106181p4499017.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org