* Johan Compagner:
> you can use a Page that you also display and then in the configureResponse()
> you can set the right status
> like the AccessDeniedPage does:
>
> protected void configureResponse()
> {
> super.configureResponse();
>
> getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(
> HttpServletResponse.SC_FORBIDDEN);
> }
>
>
> or if you don't want a page but only set the status you can do:
>
> RequestCycle.get().setRequestTarget(new IRequestTarget()
> {
> respond()
> {
> getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(
> HttpServletResponse.SC_FORBIDDEN);
> }
> });
Or you set the response code and setRequestTarget(new EmptyRequestTarget())
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user