• Post Reply Bookmark Topic Watch Topic
  • New Topic

phaseListener not working  RSS feed

 
Denise Smith
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ravindra Rawat
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!