see IRequestCycleListener#onUrlMapped() -igor
On Tue, Feb 26, 2013 at 6:35 PM, Florian Braun <florianbrau...@gmail.com> wrote: > Hello, > > I am currently in the process of migrating an application from Wicket 1.4 to > Wicket 6. > > In my application I have a parameter that needs to be part of every request > (kind of like pageMaps used to be in 1.4). > This means I have to check each request to see if the parameter is there and > if not create a new one and add it. > > In Wicket 1.4 I had logic in the resolve() method of the > WebRequestCycleProcessor where I basically called setResponsePage() with the > new parameter and threw a AbstractRestartResponseException(). > > In Wicket 6 I was able to achieve the same by creating a custom Mapper that > extends the MountedMapper. > In this Mapper I added logic to the parseRequest method to check if the > UrlInfo includes the parameter and if not create a new UrlInfo instance based > on the original one that includes the parameter. > > This works but it requires that all pages are mounted with this specific > Mapper. > > Is there a better way to add this logic so that it automatically applies to > every request and does not require the developers to use the custom mapper? > > Thanks, > Florian --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org