Hi,

You need to return a proper value for its #getCompatibilityScore().
The returned value should be smaller than the ones returned by
MountedMapper (mounted pages) and bigger than PageInstanceMapper's
one.

On Wed, Jul 11, 2012 at 3:28 PM, samzilverberg <samzilverb...@gmail.com> wrote:
> I'm interested in the complex options you mentioned:
>
> Martin Grigorov-4 wrote
>>
>> More complex: see PageInstanceMapper and create your own that does the
>> same job but uses less segments for the url.
>>
> I created a mapper which does not add the extra namespace segment in:
>  public Url mapHandler(IRequestHandler requestHandler)
> and doesn't check the namespace in the method:
> private boolean matches(final Url url)
>
> But I'm having a hard time replacing the original PageInstanceMapper with
> this one.
> In WicketApplicatin - I tried
> getRootRequestMapperAsCompound().add(new TestMapper());
> and then every page was encoded with the given mapper, even mounted
> bookmarkable pages that should use their mount path.
> I tried
> setRootRequestMapper(new TestMapper());
> And just got an lots of 404 exception.
>
> How can I replace the original PageInstanceMapper with my own?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/remove-wicket-in-front-of-url-Wicket-1-5-tp4564704p4650439.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to