Java Code Examples for javax.faces.event.PhaseId#ANY_PHASE

The following examples show how to use javax.faces.event.PhaseId#ANY_PHASE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JsfRequestLifecycleBroadcaster.java    From deltaspike with Apache License 2.0 6 votes vote down vote up
protected void broadcastBeforeEvent(PhaseEvent phaseEvent)
{
    //TODO discuss exception handling

    //fire to phase-observer methods
    this.phaseEvent.select(createAnnotationLiteral(phaseEvent.getPhaseId(), true)).fire(phaseEvent);
    this.beforeAnyPhaseEvent.fire(phaseEvent);

    //fire to ds-phase-listeners
    for (PhaseListener phaseListener : this.phaseListeners)
    {
        PhaseId targetPhase = phaseListener.getPhaseId();

        if (targetPhase == PhaseId.ANY_PHASE || targetPhase == phaseEvent.getPhaseId())
        {
            phaseListener.beforePhase(phaseEvent);
        }
    }
}
 
Example 2
Source File: JsfRequestLifecyclePhaseListener.java    From deltaspike with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId()
{
    return PhaseId.ANY_PHASE;
}
 
Example 3
Source File: DebugPhaseListener.java    From ee7-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
   return PhaseId.ANY_PHASE;
}
 
Example 4
Source File: RequestLoggingPhaseListener.java    From ee8-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
Example 5
Source File: CustomPhaseListener.java    From journaldev with MIT License 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {

	return PhaseId.ANY_PHASE;
}
 
Example 6
Source File: DebugPhaseListener.java    From ee7-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
   return PhaseId.ANY_PHASE;
}
 
Example 7
Source File: SakaiPhaseListener.java    From sakai with Educational Community License v2.0 4 votes vote down vote up
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
Example 8
Source File: RequestLoggingPhaseListener.java    From ee8-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
Example 9
Source File: RequestLoggingPhaseListener.java    From ee8-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
Example 10
Source File: DelegatingPhaseListenerMulticaster.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
Example 11
Source File: DebugPhaseListener.java    From ee7-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
   return PhaseId.ANY_PHASE;
}
 
Example 12
Source File: MessageHandler.java    From development with Apache License 2.0 4 votes vote down vote up
public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
Example 13
Source File: RequestLoggingPhaseListener.java    From javaee8-jsf-sample with GNU General Public License v3.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
Example 14
Source File: PhaseListener.java    From org.openntf.domino with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
Example 15
Source File: DelegatingPhaseListenerTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
Example 16
Source File: DebugPhaseListener.java    From ee7-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
   return PhaseId.ANY_PHASE;
}
 
Example 17
Source File: DebugPhaseListener.java    From ee7-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public PhaseId getPhaseId() {
   return PhaseId.ANY_PHASE;
}
 
Example 18
Source File: MessageHandler.java    From ee8-sandbox with Apache License 2.0 2 votes vote down vote up
/**
 * Return the identifier of the request processing phase during which this
 * listener is interested in processing PhaseEvent events.
 */
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
Example 19
Source File: MessageHandler.java    From ee8-sandbox with Apache License 2.0 2 votes vote down vote up
/**
 * Return the identifier of the request processing phase during which this
 * listener is interested in processing PhaseEvent events.
 */
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
Example 20
Source File: MessageHandler.java    From ee8-sandbox with Apache License 2.0 2 votes vote down vote up
/**
 * Return the identifier of the request processing phase during which this
 * listener is interested in processing PhaseEvent events.
 */
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}