How to register custom FacesPageLifecycle?

10-11  Source: Network gathering  Views:2 

Advertisement
Hi,
In 10G, to customize the way errors are presented to the users I was extending ADFPhaseListener to provide my custom FacesPageLifecycle.
However, in 11G ADFPhaseListener is marked as deprecated saying that to customize the lifecycle I must register a listener in adf-config.xml.
This does not tell me how to register a custom page lifecycle. The latest developer's guide is still referring the SRDemo way (see section 37.3.1).
What is the 11G way of achieving this?
Thanx!
Olivier
This works for me in TP2.
package test.view;
import oracle.adf.controller.v2.lifecycle.PagePhaseEvent;
import oracle.adf.controller.v2.lifecycle.PagePhaseListener;
public class MyPagePhaseListener implements PagePhaseListener
   public void afterPhase(PagePhaseEvent event)
      System.out.println("In afterPhase " + event.getPhaseId());
   public void beforePhase(PagePhaseEvent event)
      System.out.println("In beforePhase " + event.getPhaseId());
}and the adf-config.xml file entry:
<?xml version="1.0" encoding="windows-1252" ?>
<adf-config xmlns="http://xmlns.oracle.com/adf/config"
            xmlns:sec="http://xmlns.oracle.com/adf/security/config">
  <!-- etc -->
  <adfc-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
    <lifecycle>
      <phase-listener>
        <listener-id>MyPagePhaseListener</listener-id>
        <class>test.view.MyPagePhaseListener </class>
      </phase-listener>
    </lifecycle>
  </adfc-controller-config>
</adf-config>
Related articles
  • How to register custom FacesPageLifecycle? 10-11

    Hi, In 10G, to customize the way errors are presented to the users I was extending ADFPhaseListener to provide my custom FacesPageLifecycle. However, in 11G ADFPhaseListener is marked as deprecated saying that to customize the lifecycle I must regist

  • How to register custom report under Custom Development Application 10-11

    Hi 2 all How to register custom report under the Custom Development application in R12 vision DB, and also confirm location/folder of Custom Development application in R12. Thanks ZulqarnainHi, You may or may not need to "register" the workflow

  • How to register custom workflow in oracle apps ? 10-11

    Hello I am new to workflow. I have customized an oracle standard workflow and now i want to register this custom one. Please help how to register the custom workflow. What steps need to achieve this. ThanksHi, You may or may not need to "register&quo

  • How to register custom forms & reports 10-11

    Hi, Please anyone help me the steps required to register custom forms & reports to e-business suite 11i. regards svaHi, Please refer to the following document. Note: 216589.1 - Step By Step Guide to Creating a Custom Application in Applications 11i h

  • How to register custom form into Oracle Applications 10-11

    I created a custom form based on a custome table, then I registered in Oracle applications, but it is not opening properly in Oracle applications. It is running fine outside of Oracle Applications. Are there any standard packages which I need to atta

  • How to register Custom Escalation class or project as a part of soa installer? 10-11

    Hi, I have written a custom class for human task escalation which is part of project i created which contains all libraries and other files related to escalation. To test it i manually put in oracle.soa.ext jar inside soa module in weblogic server. H

  • How to register User custom field using PHP? 10-11

    Hi! I am looking for a way to share user specific data between connected users. For example, all participants should know each other IDs(our own system IDs, not LCCS). User's custom fields looks the best solution for this, but I can't find a way to r

  • How to register a custom plsql code 10-11

    Hi i have wrritten a custom plsql code for my Overtime entries validation for payroll processing. Can any body tell me how to register it in application. Secondly i want to get the output file generated by report submission on my desktop.i want to kn

  • How to Register OAF Custom Page on oracle application. 10-11

    can any one help me out in how to register OAF page in oracle application.By using AOL u need to create a Function eg. TestFunc with type as SSWA... and attach the page path as OA.jsp?page=/compName/oracle/apps/per/ijp/webui/TestPG After creating the

  • How to create custom adapter for Products and CommerceService 10-11

    Hi guys! First of all I wanted to say that I did search. Only relevant material I found was this http://dev.day.com/docs/en/cq/5-5/ecommerce/eCommerce-framework.html Unfortunately it doesn't go in details enough... I'm trying to follow geometrixx-out

  • How to register cwui.ocx in Windows 7 10-11

    Hello,  I'm having trouble installing cwui.ocx (from Measurement Studio) in Windows 7. The software for our product was developed with Measurement Studio for Visual Basic V. 6. When I try to run it in Windows 7, I get the message "Can't load (or regi

  • How to register a report program ins EBS? 10-11

    HI, I made a new report program called APVOUCHER.rdf it is developed/tested/ and running on Reports 10g windows. Then I ftp it to my EBS R12 linux server. Then I put it under the base path of $AP_TOP/reports/us. Then I register it in EBS using this a

  • How to register a Printer In Apps 11-30

    I am trying To run the Report of Oracle Finanicle But it Gives The error Printer Inilization error Please Tell how to Register a Printer and What is style and drive RelationIn addition : TEMPLATE.fmb should be used for creation of custom form for APP

  • If my ipad was stolen, how to register my ipad for the stolen goods, and lock the hardware requirements? 11-30

    If my ipad was stolen, how to register my ipad for the stolen goods, and lock the hardware requirements?It's really disappointing as a newly converted Apple customer who has already had his iPad stolen, that Apple just sits back and let's this happen

  • How to register ADF pages in Oracle Applications 11.5.10 or 12 11-30

    Hi, I have created an ADF application with JSF pages. Now I want to register this application into Oracle Applications 11.5.10.2 or Release 12. Any idea how can I do this? Is that possible now? Thanks in advance RGRam, What I mean is once we deploy t

  • How to register the recipient when create job by function 10-11

    I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email. Can you tell me how to register the recipient when create the job. ( in sm36, it is easily to do but ho

  • How to register multiple ipods on same email account 10-11

    how do register multiple ipods using the same email account?Maybe here How to use multiple iPods, iPads, or iPhones with one computer You can have an unlimited number of devices that you own or control for private use tied to one iTunes account. But

  • How to show custom error message in WebADI Excel template? 10-11

    Hi, I've  created a custom Web ADI integrator and associated it with a 'Procedure' based custom interface. WebADI Interface API Returns is set to  "Error Message". I'm using  raise_application_error(-20001, "Actual Error Message") for

  • How to Created custom report for Ship not Billed (SD/FI)? 10-11

    Hi all, I am anticipating  to write some abap reports..Here is one of them.. Anyone can help  me with writing a Report , how to do 'Custom Report for shipped not Billed(SD/FI)' ..But since I am new to Abap , if you wish to reply, please use a little

  • How to Extract Customized Financial Statement Version from R/3 to BW 10-11

    Hi Gurus, Could anybody tell me how to Extract Customized Financial Statement Version from R/3 to BW. Also send me docs on FICO and COPA extraction from R/3 to BW. Thanks in advance... Regards RafiSayed Please see this BW Best Practice link http://he