I just noticed a boolean allowRender in Component.
According to the doc it is meant for security.
I also saw IAuthorizationStrategy which can be set at the application.
IMO it would be better to set an instance of this at the component.
I can certainly think of scenario's where 1 application wide check is
not what you want.
I know you can always make if statements in the IAuthorizationStrategy,
like
If(component.class==Link.class)
\\use model for security check
Else
\\use component self for security check
But it doesn't feel as clean (especially for very big if-else
statements)
By setting the strategy at the component we could even remove the
component parameters from the interface
________________________________
Maurice Marrink
www.topicus.nl
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop