Re: Resource mounting: Why has a resource always a lower compatibility score than a page?

2013-06-18 Thread Martin Grigorov
Hi,

Don't know.
But we have to take this into account when/if we start working on the idea
explained at: http://markmail.org/thread/ku6me4odezqqivjy


On Tue, Jun 18, 2013 at 1:16 PM, Per Newgro  wrote:

> Hi,
>
> i would like to mount a resource with a name "/mypath/${param1}/whatever".
> I've already mounted a page with "/mypath".
>
> I was wondering why i was always redirected to the /mypath page.
>
> In ResourceMapper i've found this:
> 
>   @Override
>   public int getCompatibilityScore(Request request)
>   {
> return 0; // pages always have priority over resources
>   }
> 
>
> So i would like to know: Why is the resource not mapped by it's
> appropriate compatibility score
> vs pages?
>
> Thanks for your support
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Resource mounting: Why has a resource always a lower compatibility score than a page?

2013-06-18 Thread Per Newgro
Hi,

i would like to mount a resource with a name "/mypath/${param1}/whatever".
I've already mounted a page with "/mypath".

I was wondering why i was always redirected to the /mypath page.

In ResourceMapper i've found this:

  @Override
  public int getCompatibilityScore(Request request)
  {
return 0; // pages always have priority over resources
  }


So i would like to know: Why is the resource not mapped by it's appropriate 
compatibility score
vs pages?

Thanks for your support
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org