org.omnifaces.component.input.componentidparam
Class ConditionalWriterListener

java.lang.Object
  extended by org.omnifaces.component.input.componentidparam.ConditionalWriterListener
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener

public class ConditionalWriterListener
extends java.lang.Object
implements javax.faces.event.PhaseListener

PhaseListener intended to work in conjunction with the ComponentIdParam component.

This installs a ResponseWriter that only renders specific components.

Since:
1.1
Author:
Arjan Tijms
See Also:
Serialized Form

Constructor Summary
ConditionalWriterListener(javax.faces.context.FacesContext facesContext, java.util.List<java.lang.String> componentIds, java.util.List<java.lang.String> clientIds, boolean renderChildren)
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
           
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalWriterListener

public ConditionalWriterListener(javax.faces.context.FacesContext facesContext,
                                 java.util.List<java.lang.String> componentIds,
                                 java.util.List<java.lang.String> clientIds,
                                 boolean renderChildren)
Method Detail

getPhaseId

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

beforePhase

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

afterPhase

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