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 <[email protected]> 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: [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]