I would like to implement some kind of ACL in a SAPUI5 XML view.
<Button press="something" onBeforeRendering="customFunc" />
Is there a way to launch the "customFunc" on some kind of "render"/"before render" event of the control? The "customFunc" is defined in a base controller (currently parent to the one that initializes the view and therefore - the control (in this case, a Button, but not always)).
The "customFunc" as mentioned above, is gonna have to be called in various controls. So is there a global method/event like the mentioned above "onBeforeRendering"?
Is this the best way of handling some globally available, custom methods (via the base controller)?