{
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
john
On 8/11/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
On 8/11/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> how exactly do you plan on passing the Object[] arguments to the strategy?
Hm. Tricky indeed :-)
I must admin that I have not looked in detail to the wicket internals.
Let's discuss.
As far as I can see there are basically three ways to set a result page.
Class
Class + PageParameters
Page
The first two cases are easy since the page creation is managed by Wicket.
The latter is problematic because plain Wicket has no idea about me
creating a new Page instance. I say 'plain' here because there are
ways for example with AOP but I am not sure what the team's opinion
about that is :-)
If there is no way to intercept, let's call it 'dynamic page
creation', then I guess I could settle for having a:
boolean isInstantiationAuthorized(Class componentClass,
PageParameters parameters);
It is kind of limiting, but at least it allows you to protect pages
that have parameters.
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
------------------------------------------------------------------------- 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