Re: Delete version number in url
Thanks. I figured it out. On Fri, May 16, 2014 at 3:08 PM, Prag pragprog...@gmail.com wrote: @Maxim, your solution works fine, thanks! @Pierre The link does work, but you have to remove the (NoVersionMapper class) suffix: https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java See also here: http://stackoverflow.com/a/23695514/1039774 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Delete-version-number-in-url-tp4665752p4665874.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 -- La vie est source de joie, la mort est source de paix, seule la transition est difficile.
Re: Delete version number in url
@Maxim, your solution works fine, thanks! @Pierre The link does work, but you have to remove the (NoVersionMapper class) suffix: https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java See also here: http://stackoverflow.com/a/23695514/1039774 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Delete-version-number-in-url-tp4665752p4665874.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
Re: Delete version number in url
Good afternoon, I wanted to have a look, but your link gives me a 404. Regards, Pierre On Sun, May 11, 2014 at 4:54 AM, Maxim Solodovnik solomax...@gmail.comwrote: Here is approach we are currently using: https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java(NoVersionMapper class) On Sun, May 11, 2014 at 2:01 AM, RedCarpet bluecar...@gmx.com wrote: http://stackoverflow.com/questions/8602489/delete-version-number-in-url describes a solution (see code below) to remove the version number in urls like: http://localhost/MyPage/SubPage?0 But this solution doesn't work anymore since Wicket 6.13+. Is there a way to get this working in 6.15? Solution for 6.13: = In Application.init(): == mount(new MountedMapperWithoutPageComponentInfo(/subpage, MyPage.class)); == In MountedMapperWithoutPageComponentInfo = public class MountedMapperWithoutPageComponentInfo extends MountedMapper { public MountedMapperWithoutPageComponentInfo(String mountPath, Class? extends IRequestablePage pageClass) { super(mountPath, pageClass, new PageParametersEncoder()); } @Override protected void encodePageComponentInfo(Url url, PageComponentInfo info) { // do nothing so that component info does not get rendered in url } @Override public Url mapHandler(IRequestHandler requestHandler) { if (requestHandler instanceof ListenerInterfaceRequestHandler || requestHandler instanceof BookmarkableListenerInterfaceRequestHandler) { return null; } else { return super.mapHandler(requestHandler); } } } == -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Delete-version-number-in-url-tp4665752.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 -- WBR Maxim aka solomax -- La vie est source de joie, la mort est source de paix, seule la transition est difficile.
Re: Delete version number in url
Here is approach we are currently using: https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java(NoVersionMapper class) On Sun, May 11, 2014 at 2:01 AM, RedCarpet bluecar...@gmx.com wrote: http://stackoverflow.com/questions/8602489/delete-version-number-in-url describes a solution (see code below) to remove the version number in urls like: http://localhost/MyPage/SubPage?0 But this solution doesn't work anymore since Wicket 6.13+. Is there a way to get this working in 6.15? Solution for 6.13: = In Application.init(): == mount(new MountedMapperWithoutPageComponentInfo(/subpage, MyPage.class)); == In MountedMapperWithoutPageComponentInfo = public class MountedMapperWithoutPageComponentInfo extends MountedMapper { public MountedMapperWithoutPageComponentInfo(String mountPath, Class? extends IRequestablePage pageClass) { super(mountPath, pageClass, new PageParametersEncoder()); } @Override protected void encodePageComponentInfo(Url url, PageComponentInfo info) { // do nothing so that component info does not get rendered in url } @Override public Url mapHandler(IRequestHandler requestHandler) { if (requestHandler instanceof ListenerInterfaceRequestHandler || requestHandler instanceof BookmarkableListenerInterfaceRequestHandler) { return null; } else { return super.mapHandler(requestHandler); } } } == -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Delete-version-number-in-url-tp4665752.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 -- WBR Maxim aka solomax