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: [email protected] For additional commands, e-mail: [email protected]
