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

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 chris...@gmx.at wrote: Hi

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)));

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