Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Martin Grigorov
On Wed, Jul 24, 2013 at 11:31 AM, Andrew Schetinin wrote: > Hi Martin, > > Thank you for the advise with attributes.getPageParameters() > .get("id") - I did not know about it. > > You wrote: > *Wicket won't call MediaStorageResourceReference#* > *getResource() if the > request url doesn't match th

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Andrew Schetinin
Hi Martin, Thank you for the advise with attributes.getPageParameters() .get("id") - I did not know about it. You wrote: *Wicket won't call MediaStorageResourceReference#* *getResource() if the request url doesn't match the mount path.* Now, that's not quite correct - when I create a resource re

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Martin Grigorov
Hi, On Tue, Jul 23, 2013 at 10:57 PM, Andrew Schetinin wrote: > Hi Cedric, > > I'm not sure what you mean by a quick start, but here you may find the > piece of code I'm using: > > This is how the shared resource is initialized with the application: > > @Override > protected void init() { >

RE: Reading placeholder parameters in mounted resources

2013-07-23 Thread Paul Bors
For direction of creating a quick start see: http://wicket.apache.org/start/quickstart.html -Original Message- From: Andrew Schetinin [mailto:ascheti...@gmail.com] Sent: Tuesday, July 23, 2013 3:58 PM To: users@wicket.apache.org Subject: Re: Reading placeholder parameters in mounted

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Andrew Schetinin
Hi Cedric, I'm not sure what you mean by a quick start, but here you may find the piece of code I'm using: This is how the shared resource is initialized with the application: @Override protected void init() { super.init(); mountResource( "/storage/${id}", new Med

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Cedric Gatay
Hi, I think this is because you're mixing path parameters with query string one. It could be a bug, could you provide a quickstart with this to help us qualify and fix it if it is a bug. Regards, __ Cedric Gatay (@Cedric_Gatay ) http://code-troopers.com | http://w

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Francois Meillet
Try this pattern /storage/${id}/#{shape} Optional parameters are denoted by using a # instead of $ François Meillet Formation Wicket - Développement Wicket Le 23 juil. 2013 à 19:14, Andrew Schetinin a écrit : > Hi, > > I have a shared resource mounted to a URL pattern "/storage/${id}" >