com.liferay.faces.bridge.event
Class IPCPhaseListener

java.lang.Object
  extended by com.liferay.faces.bridge.event.IPCPhaseListener
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class IPCPhaseListener
extends Object
implements javax.faces.event.PhaseListener

This inner-class is a phase listener that listens to the RESTORE_VIEW phase of the JSF lifecycle. It satisfies multiple requirements in the Spec related to Portlet 2.0 Inter-Portlet Communication (IPC), including JSF lifecycle handling of Public Render Parameters and Events. See the inline comments for more details about specific requirements that are satisfied.

Author:
Neil Griffin
See Also:
Serialized Form

Constructor Summary
IPCPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
           
 void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
           
 javax.faces.event.PhaseId getPhaseId()
           
 void processIncomingPublicRenderParameters(BridgeContext bridgeContext, javax.faces.context.FacesContext facesContext)
          This method processes the "incoming" Public Render Parameters in accordance with Section 5.3.2 of the Spec.
 void processOutgoingPublicRenderParameters(BridgeContext bridgeContext, javax.faces.context.FacesContext facesContext)
          This method processes the "outgoing" Public Render Parameters in accordance with Section 5.3.3 of the Spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPCPhaseListener

public IPCPhaseListener()
Method Detail

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
beforePhase in interface javax.faces.event.PhaseListener

processIncomingPublicRenderParameters

public void processIncomingPublicRenderParameters(BridgeContext bridgeContext,
                                                  javax.faces.context.FacesContext facesContext)
This method processes the "incoming" Public Render Parameters in accordance with Section 5.3.2 of the Spec.


processOutgoingPublicRenderParameters

public void processOutgoingPublicRenderParameters(BridgeContext bridgeContext,
                                                  javax.faces.context.FacesContext facesContext)
This method processes the "outgoing" Public Render Parameters in accordance with Section 5.3.3 of the Spec.


getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener


Copyright © 2014 Liferay, Inc.. All Rights Reserved.