Nov 8, 2018

JSF example: event before loading view

<h:body>
       <f:metadata>
             <f:event type="preRenderView" listener="#{showController.pr()}"/>
       </f:metadata>
 <!-- ... -->
</h:body>

Your listener:

 public void pr(ComponentSystemEvent event) {
       // ...
   }