Dear users, I'm using wicket 1.3.6 version. I need to add a further authentication mechanism to some Link or Form I need to be able to force authentication every time on certain links and buttons when they are pressed. This behavior must be configurable dinamically, I would like to be able to control the forced authentication of my links and buttons in a unique point, I would like to avoid having to modify each point individually. I try to achieve this objective extending a WaspAuthorizationStrategy , overriding isActionAuthorized(Component component, Action action). This method allows me to add a new Validator when I find a matching form component, but apparently it is not applicable for Link components: I tried to add a new Behavior to them but any effort got the Runtime Exception
<!-- @page { margin: 0.79in } P { margin-bottom: 0.08in; text-align: justify } P.western { font-size: 11pt } P.cjk { font-size: 10pt } --> “Cannot modify component hierarchy after render phase has started”. Do you know a better position to add this behavior dinamically in the lifecycle of the application to avoid this runtime Exception?