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.com>wrote:

> 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.

Reply via email to