Forums Register Login

phaseListener not working

+Pie Number of slices to send: Send
Hi,

My phaselistener use to work... I migrated to a different server and now it's not working. I also can't get any servlet filters to trigger.

here is the definition in faces config:
<lifecycle>
<phase-listener>
net.ongov.arrest.resources.PhaseIndicator</phase-listener>
<phase-listener> com.ibm.faces.webapp.ValueResourcePhaseListener</phase-listener>
</lifecycle>


here is the phase listener:
/*
* Created on Jul 18, 2006
* itrjone
*
*
* Window - Preferences - Java - Code Style - Code Templates
*/
package net.ongov.arrest.resources;

//import java.sql.SQLException;


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



//import net.ongov.webrici.RiciFtp;
//import net.ongov.webrici.RiciPhoto;

/**
* @author itrjone
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class PhaseIndicator implements PhaseListener {



/* (non-Javadoc)
* @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
*/
public void afterPhase(PhaseEvent arg0) {
//
System.out.println("after - " + arg0.getPhaseId().toString());


}

/* (non-Javadoc)
* @see javax.faces.event.PhaseListener#beforePhase(javax.faces.event.PhaseEvent)
*/
public void beforePhase(PhaseEvent arg0) {
//

if(arg0.getPhaseId() == PhaseId.RENDER_RESPONSE){
System.out.println("Processing New Request:");

}



System.out.println("before - " + arg0.getPhaseId().toString());
if(arg0.getPhaseId() == PhaseId.RENDER_RESPONSE){
System.out.println("Done With Request!");
}

}

/* (non-Javadoc)
* @see javax.faces.event.PhaseListener#getPhaseId()
*/
public PhaseId getPhaseId() {
//
return PhaseId.ANY_PHASE;
}

}

Any suggestions would be greatly appreciated-Did I forget the do something???

Thanks
Denise
+Pie Number of slices to send: Send
Can you kindly provide the server details that you migrated to? If servlet filters are not triggering then you might want to check what version of Servlet spec is supported by the new application server.

Warm Regards
Ravindra
Paper jam tastes about as you would expect. Try some on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2116 times.
Similar Threads
JSF: Tracking user views
Question on rendering
JSF Phase Listener????
Using setTransient(true) to correct Duplicate Component Id
navigation disable in FIREFOX
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:07:38.