Hi Is it possible to get access to the event handler method annotation during rendering of compoment, which triggers corresponding event ? How is it possible (the best way) ?
Let say I have a custom link component SecuredLink placed in TestPage and event handler for SecuredLink event on the same page. I would like to access @Secured annotation content during render of SecuredLink compoment (to be able to make the link conditionally inaccessible). public class TestPage { @Component private SecuredLink securedLink; @Secured({Roles.ADMIN}) void onActionFromSecuredLink() { ... } ... } I know how to make "SecuredInterceptor" for the event listener method, which prevents for unauthorized invocation of the listener. As I say I would like to use annotation also during render of corresponding "triggering" component. Thanks P. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org