Re: [Wicket-user] Role authorization per page

2006-10-26 Thread ChuckDeal
Damn it! I was this close . I modified my MetaDataComponentProtector class (very close to the MetaDataRoleAuthorizationStrategy, but I need to store a Predicate (commons-collections) with the action for dynamic evaluation) to be an IAuthorizationStrategy removed the onBeforeRender and it worke

Re: [Wicket-user] Role authorization per page

2006-10-21 Thread Eelco Hillenius
> I went through all that not only for your benefit :), but also because I > have a question. Currently, when I mark a component as protected, I add the > Component to a List on the Page (protectedComponents) so that onBeforeRender > doesn't have to go to every child Compoennt of the page (which c

Re: [Wicket-user] Role authorization per page

2006-10-19 Thread ChuckDeal
Eelco Hillenius wrote: > >> Attempting to play with the application or Session AuthorizationStrategy >> doesn't seem to be a good idea because it I would need to somehow inject >> the >> current page into the "Authorization Process". > > I think you are trying too hard to fit the existing autho

Re: [Wicket-user] Role authorization per page

2006-10-19 Thread Eelco Hillenius
> Attempting to play with the application or Session AuthorizationStrategy > doesn't seem to be a good idea because it I would need to somehow inject the > current page into the "Authorization Process". I think you are trying too hard to fit the existing authorization strategies, which in fact are

Re: [Wicket-user] Role authorization per page

2006-10-17 Thread ChuckDeal
OK, so narrowing down my thought process... Attempting to play with the application or Session AuthorizationStrategy doesn't seem to be a good idea because it I would need to somehow inject the current page into the "Authorization Process". So, I am back to adding the AuthorizationStrategy to

[Wicket-user] Role authorization per page

2006-10-16 Thread ChuckDeal
I am using the RoleAuthorizationStrategy (which uses MetaDataRoleAuthorizationStrategyinternally) in my app and it works fine. I have a user object that has a list of valid roles in the application. What I want to do now is make my pages role-based. For example, if you are an originator, you wo