Yeah, sorry about that stupid bug.

However, I still don't understand what you mean. Enabled and rendering
are two different things. Also, the security settings /allways/
override any component setting. That may look like we're doing stuff
double, but it deliberately.

Eelco

On 10/31/05, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> Ok, I get that. The point i really was trying to make (i realize i was
> not clear in that in the previous mail) is that you are duplicating
> behavior.
> You made a Boolean for rendering and a flag for enabled, this is already
> covered in the strategy. So let's use it then.
> It also would have prevented a small but annoying bug you just
> introduced.
> See next mail for that.
>
> ________________________________
>
> Maurice Marrink
> www.topicus.nl
>
> -----Original Message-----
> From: Eelco Hillenius [mailto:[EMAIL PROTECTED]
> Sent: maandag 31 oktober 2005 9:47
> To: [email protected]
> Subject: Re: [Wicket-develop] security
>
> If you want to do it for one/ a couple of components, do it right
> there. In that case there certainly is no need for a generalized
> strategy.
>
> The trick - the next thing to build on top of the basic authorization
> mechanism - is to find some way of adding metadata to your components
> (/ instances) that can be used by a certain authorization strategy. A
> big if/else is clearly not the point of this low-level implementation.
>
> Eelco
>
>
> On 10/31/05, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> > 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
> >
>
>
> -------------------------------------------------------
> 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
>
>
>
> -------------------------------------------------------
> 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
>


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

Reply via email to