So far I have only known and seen
<f:event type="preRenderView" listener="#{situationHelper.load}"/>
and I wonder where I can find a list of other page (or view) events other than preRenderView
?
Particularly, I'm looking for a event which is triggered before the binding proccess, (preRenderView
runs after components are bound)
Thanks.
Advertisements. When a user clicks a JSF button or link or changes any value in the text field, JSF UI component fires an event, which will be handled by the application code. To handle such an event, an event handler is to be registered in the application code or managed bean.
From the tag library document of JSF 2.1
Name of the event for which to install a listener. The following table lists the valid values for this attribute, and the corresponding event type for which the listener action is registered.
value for "type" tag attribute Type of event sent to listener method preRenderComponent javax.faces.event.PreRenderComponentEvent preRenderView javax.faces.event.PreRenderViewEvent postAddToView javax.faces.event.PostAddToViewEvent preValidate javax.faces.event.PreValidateEvent postValidate javax.faces.event.PostValidateEventIn addition to these values, the fully qualified class name of any java class that extends javax.faces.event.ComponentSystemEvent may be used as the value of the "type" attribute.
So , beside the values listed above , you can also use the fully qualified class name of direct known subclasses of javax.faces.event.ComponentSystemEvent
for the type
tag attribute
, which can be found in the Java docs .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With