Forum Stats

  • 3,874,702 Users
  • 2,266,767 Discussions
  • 7,911,956 Comments

Discussions

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

Hayfa
Hayfa Member Posts: 12 Red Ribbon
edited May 26, 2022 9:36AM in JDeveloper and ADF

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

Tagged:

Answers