Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Execute a method before loading of the JSF page or on unloading it

HayfaMay 25 2022 — edited May 26 2022

Hello,
I have in the code bellow the method "clearFilter" of "gestionPaysBean" executed on load of the JSF page:
<af:serverListener type="onloadEvent"
method="#{gestionPaysBean.clearFilter}"/>
<af:clientListener method="onLoadClient" type="load"/>
<af:resource type="javascript">
function onLoadClient(event) {
AdfCustomEvent.queue(event.getSource(),"onloadEvent",{},false);
return true;
}
</af:resource>
How to change this code to make it executed before the load of page or on unloading the page? I am working with jdev12, java 8

Comments

Processing

Post Details

Added on May 25 2022
8 comments
780 views