Re: Buffered Image - shared resource

2015-05-16 Thread Chris
Hi Martin, when reading an image as shared resource as follows, String relativeUrl = RequestCycle.get().urlFor(WicketApplication.get().getSharedResources().get("images"), params).toString(); URL url = new URL(RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(relativeUrl))); ImageIO.

Re: Buffered Image - shared resource

2015-05-16 Thread Chris
Hi Martin, at localhost, the mounting of the resource works, but not at the server (cannot find the image). Do you know a tip why this only works at localhost? ResourceReference r = new ResourceReference("facebook") { @Override public IResource getResource() { return new QRResou

Re: Buffered Image - shared resource

2015-05-16 Thread Martin Grigorov
Hi, Check http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/. You may use Wicket's Session to decide what to serve for different users. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, May 16, 2015 at 8:14 PM, Chris wrote: > Hi all, > > I woul

Re: Buffered Image - shared resource

2015-05-16 Thread Chris
Hi all, I would like to combine several shared image resources into a new dynamic image resource. The image itself should not be displayed on a Wicket page but its URL is needed as input to a JS script. Is there a quick way to read the shared image resources (other then via RequestCycle.get().u

Buffered Image - shared resource

2015-05-16 Thread Chris
Hi all, how is it possible to assign a shared image resource to a bufferedImage? The shared resource reference is „image“ which is a file folder serving different images, which are specified via page parameters. final PageParameters params = new PageParameters(); params.set("fileName", "image.jp