Try with trunk. I believe this is fixed. On Fri, Apr 22, 2011 at 5:51 PM, drewzilla80 <andrew.eas...@gmail.com> wrote: > I'm using Wicket 1.5-rc2 and have noticed that I'm getting what I believe to > be unnecessary 302 redirects for bookmarkable/stateless pages. > > In my application.init(), I'm doing the following: > > mountPage("/myPage", MyPage.class) > > When I request this page in my browser at http://localhost:8080/myPage, the > application issues a 302 Found response to which the client responds to by > making a second request to > http://localhost:8080/myPage from which it receives a 200 OK response. > > I'm also see this with the homepage as well, i.e. a request to > http://localhost:8080/ > > I can see that, under the covers, Wicket is creating a > RenderPageRequestHandler for bookmarkable pages with the default redirect > policy of AUTO_REDIRECT. The code has a comment to specify under which > conditions a redirect with be issued when auto redirect policy is in use. > However, I'm not convinced a redirect should be taking place in this > situation. > > It makes me feel nervous that I don't really understand this behaviour. I > started an earlier thread about building my own root request mapper, within > which I'm creating a RenderPageRequestHandler that specifies REDIRECT_NEVER, > but I'm concerned about fiddling with these settings when I clearly seem to > be missing some form of understanding about it. > > Can someone explain why I might be getting the 302 redirect for what is a > completely static page? > > Thanks, > > dz > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/mountPage-issuing-a-302-redirect-tp3468114p3468114.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 > >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org