On 8/12/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
>     public final boolean isInstantiationAuthorized(final Class
> componentClass)
>     {
>         if (instanceOf(componentClass, MyPagePage.class))
>         {
>             Map params =
> RequestCycle.get().getRequest().getRequestParameters().getParameters();
>             if(params.get("mykey").equals("cantbethis")) return false;
>         }
>         return true;
>     }
>
> The only thing is that this may not work for mount urls. Because i think
> that getParameters() don't return encoded params like /param1/value

Please note that I am not pleading for doing authorization on pages
based on page parameters.

I am looking for a simple uniform wicket-provided way to protect pages
that have page parameters. Specifically for two use-cases:

  setResponsePage(MyProtectedPage.class, parameters);

and

  new BookmarkablePageLink("fooLink", MyProtectedPage.class, parameters);

Right now support for that is non existent or only possible with hacks
as workarounds.

 S.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to