i was running the threadtest App1Test1 which does this

               "/app1?wicket:bookmarkablePage=one:
wicket.threadtest.apps.app1.Home",
               "/app1?wicket:bookmarkablePage=two:
wicket.threadtest.apps.app1.Home",

"/app1?wicket:interface=two:${iteration}:link::ILinkListener",

"/app1?wicket:interface=one:${iteration}:link::ILinkListener",

"/app1?wicket:interface=two:${iteration}:link::ILinkListener"


i altered some behaviour in the link.onclick. But then i noticed that the
last 3 calls where never called!

it is this code first thing in WicketFilter.doGet(_

       String relativePath = getRelativePath(servletRequest);
       // Special-case for home page - we redirect to add a trailing slash.
       if (relativePath.length() == 0 && !Strings.stripJSessionId(
servletRequest.getRequestURI()).endsWith("/"))
       {
           String foo = servletRequest.getRequestURI() + "/";
           servletResponse.sendRedirect(foo);
           return;
       }


so when the url doesn't end with / then we send a response to xxx/
What about the params!????

Shouldn't the test be there if there are request params then it is not a
request to home??

johan

Reply via email to