Re: remove /wicket in front of url Wicket 1.5

2012-07-12 Thread Martin Grigorov
On Wed, Jul 11, 2012 at 8:51 PM, samzilverberg samzilverb...@gmail.com wrote: I tried all kind of different values in my TestMapper : 1, 1000, Integer.MAX_VALUE, -1000. But none of them made any change. I even put a break point in the MountMapper getCompatibilityScore method to I know the

Re: remove /wicket in front of url Wicket 1.5

2012-07-11 Thread samzilverberg
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

Re: remove /wicket in front of url Wicket 1.5

2012-07-11 Thread Martin Grigorov
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

Re: remove /wicket in front of url Wicket 1.5

2012-07-11 Thread samzilverberg
I tried all kind of different values in my TestMapper : 1, 1000, Integer.MAX_VALUE, -1000. But none of them made any change. I even put a break point in the MountMapper getCompatibilityScore method to see what values it returns and ran in debug mode, but the app never breaks there... Am I missing

remove /wicket in front of url Wicket 1.5

2012-04-17 Thread Taag
Hey, I'm haveing a problem one url. Is there a way to remove the /wicket that is added to the url when this is run. The page opens up in a new window, from the popup settings added to the link: setResponsePage( new OwnWindowPage( object ) ); The url i get is ...wicket/page?5 I only want it like

Re: remove /wicket in front of url Wicket 1.5

2012-04-17 Thread Martin Grigorov
Hi, Easy solution: replace 'wicket' with 'myOwnPrefix' by registering custom IMapperContext by overriding Application#newMapperContext() method More complex: see PageInstanceMapper and create your own that does the same job but uses less segments for the url. On Tue, Apr 17, 2012 at 4:22 PM,

Re: remove /wicket in front of url Wicket 1.5

2012-04-17 Thread Taag
Maby a dumb question, but i can't seem to find the right place to do this. And do i need a prefix? Is there a code example with this? =) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/remove-wicket-in-front-of-url-Wicket-1-5-tp4564704p4564757.html Sent from the Users

Re: remove /wicket in front of url Wicket 1.5

2012-04-17 Thread Martin Grigorov
On Tue, Apr 17, 2012 at 4:40 PM, Taag sae...@hotmail.com wrote: Maby a dumb question, but i can't seem to find the right place to do this. And do i need a prefix? Is there a code example with this? =) To do which option ? -- View this message in context:

Re: remove /wicket in front of url Wicket 1.5

2012-04-17 Thread Taag
The easy one. I only need this for a popupwindow that I want to change the path on. from /wicket/.. to /.. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/remove-wicket-in-front-of-url-Wicket-1-5-tp4564704p4564787.html Sent from the Users forum mailing list archive at

Re: remove /wicket in front of url Wicket 1.5

2012-04-17 Thread Martin Grigorov
In YourApp class: public IMapperContext newMapperContext() { return new MyMapperContext(); } MyMapperContext.java: class MyMapperContext extends DefaultMapperContext { @Override public String getNamespace() { return mine; } } On Tue, Apr 17, 2012 at 4:50 PM, Taag sae...@hotmail.com