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!

Phase listener is not working (JSF + ADFBc)

PrazzyJayJul 18 2008 — edited Jul 21 2008
Hi,

I have created a phase listener class and registered in faces-config.xml.

When I run the jsf page, the procedures afterPhase() and beforePhase() are not getting called at all.
what is wrong with my code.. Did I missed out some steps?


Here is the code..

PagePhase.java
==============

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

public class PagePhase implements PhaseListener {

public void afterPhase(PhaseEvent phaseEvent) {
System.out.println("after h");
.....
.....
}

public void beforePhase(PhaseEvent phaseEvent) {
System.out.println("before h");
.....
.....
}

public PhaseId getPhaseId() {
System.out.println("phase id h");
return null;
}
}


faces-config.xml
==============
.....
.....
<lifecycle>
<phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
<phase-listener>soa.npi.view.PagePhase</phase-listener>
</lifecycle>
.....
.....


Thanks,
Prasanna
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2008
Added on Jul 18 2008
3 comments
1,289 views