Reputation: 3295
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.
Upvotes: 18
Views: 35356
Reputation: 90467
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 .
Upvotes: 32