Tuesday, September 25, 2012

How to use returnListener in ADF


Use case : If you have to invoke a method before any 'Return' activity from any event (eg : Popup, dialog, etc..)

Solution : Use 'returnListener' component as below


     <af:commandButton text="Employee Lookup" id="cb4"
         rendered="true" 
         action="planlookup" 
         windowEmbedStyle="window" useWindow="true" 
         windowModalityType="modeless" windowHeight="480" 
         windowWidth="650"
         returnListener="#{pageFlowScope.empBean.onReturn}"/>

                                           

No comments:

Post a Comment