It's possible to attach event listeners to UIComponent events, like preRenderComponent or preRenderView in f:event.

General Usage

Just implement a method passing a ComponentSystemEvent parameter and it will be invoked whenever that event occurs. To see the possible values of type, just see f:event VDL.

Component with id inputTextComponentEventId generated an event.
Component with id outputTextcomponentEventId generated an event.

Source Code

Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20