Re: [Wicket 8] delete version number in url
It does work! Thanks! I'll update SO as well! On Sun, Jun 3, 2018 at 2:53 PM, Maxim Solodovnik wrote: > This code https://github.com/apache/openmeetings/blob/master/ > openmeetings-web/src/main/java/org/apache/openmeetings/ > web/app/Application.java#L314 > Works for me > > On Sun, Jun 3, 2018 at 7:36 PM, Zala Pierre GOUPIL > wrote: > > All, > > > > There are a number of solutions around to remove the version number part > of > > the browser URL, for instance here: > > > > https://stackoverflow.com/questions/8602489/delete-version-number-in-url > > > > Unfortunately, I haven't figured out a Wicket 8 way of doing this: my > > modification of the code doesn't do the trick for 8.0.0. The migration > > guide has helped me to compile it but it doesn't work: in particular, my > > Ajax calls are stopped. > > > > Any ideas, please? > > > > > > > > -- > > Je n'aime pas seulement ma vie, mais aussi celle des autres. > > > > (Blade Runner) > > > > -- > WBR > Maxim aka solomax > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Je n'aime pas seulement ma vie, mais aussi celle des autres. (Blade Runner)
Re: [Wicket 8] delete version number in url
This code https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.java#L314 Works for me On Sun, Jun 3, 2018 at 7:36 PM, Zala Pierre GOUPIL wrote: > All, > > There are a number of solutions around to remove the version number part of > the browser URL, for instance here: > > https://stackoverflow.com/questions/8602489/delete-version-number-in-url > > Unfortunately, I haven't figured out a Wicket 8 way of doing this: my > modification of the code doesn't do the trick for 8.0.0. The migration > guide has helped me to compile it but it doesn't work: in particular, my > Ajax calls are stopped. > > Any ideas, please? > > > > -- > Je n'aime pas seulement ma vie, mais aussi celle des autres. > > (Blade Runner) -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[Wicket 8] delete version number in url
All, There are a number of solutions around to remove the version number part of the browser URL, for instance here: https://stackoverflow.com/questions/8602489/delete-version-number-in-url Unfortunately, I haven't figured out a Wicket 8 way of doing this: my modification of the code doesn't do the trick for 8.0.0. The migration guide has helped me to compile it but it doesn't work: in particular, my Ajax calls are stopped. Any ideas, please? -- Je n'aime pas seulement ma vie, mais aussi celle des autres. (Blade Runner)
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.
Delete version number in url
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
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