my sentiments exactly.

i think once you are talking about security based on some page parameters you need to build that part into the page hierarchy.
our general security strategy is definetely biosed towards declarative use.

if you want to use AOP thats fine too - you can do that w/out modifying wicket, just intercept (new Page). but then you start relying on parameter names or parameter index or parameter type to identify what is where - and that gets very messsy. cleaner to build this stuff into the hierarchy.

-Igor


On 8/11/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
I'm not in favor of this proposal. A framework should watch out not to
a kitchen sink for everything you can image. You give the example of
page parameters now. But what about constructor arguments in general?
What about the model?

There are many ways in which the generic strategy would not be
sufficient. In think we should keep it simple and focussed like it is
now; the authorization strategy pattern works for declarative use.

If you want to do stuff that is a lot more complex than that - i.e.
relies on logic that involves instance variables and constructor
arguments - you should seek for custom patterns. It shouldn't be hard
to even combine this: use the generic strategy for declarative
authorization, use specific logic - e.g. hidden in a base class - for
specific more complex case, and let them both rely on a common set of
business rules (e.g. implemented in some service).

IComponentInstantiationListener is simply not equipped  for passing in
constructor arguments and I don't think we should extend it to include
that (if that would be possible at all).

An alternative here is to forget about the listener at altogether, but
instead rely on AOP. I would be very interested in reading an article
that displays how to do that with Wicket :)

Eelco

-------------------------------------------------------------------------
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

Reply via email to