Package com.sun.faces.application
Class ValidateComponentNesting
- java.lang.Object
-
- com.sun.faces.application.ValidateComponentNesting
-
- All Implemented Interfaces:
FacesListener
,SystemEventListener
,EventListener
public class ValidateComponentNesting extends Object implements SystemEventListener
ValidateFormComponentNesting performs component tree validation to assure
ActionSource
,ActionSource2
andEditableValueHolder
components are placed inside a form. ValidateFormComponentNesting is installed automatically ifProjectStage.Development
is active.- Author:
- dueni
-
-
Constructor Summary
Constructors Constructor Description ValidateComponentNesting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isListenerForSource(Object source)
This method must returntrue
if and only if this listener instance is interested in receiving events from the instance referenced by thesource
parameter.void
processEvent(SystemEvent event)
Process PostAddToViewEvent on UIViewRoot to validate form - action/input nesting.
-
-
-
Method Detail
-
isListenerForSource
public boolean isListenerForSource(Object source)
Description copied from interface:SystemEventListener
This method must return
true
if and only if this listener instance is interested in receiving events from the instance referenced by thesource
parameter.- Specified by:
isListenerForSource
in interfaceSystemEventListener
- Parameters:
source
- the source that is inquiring about the appropriateness of sending an event to this listener instance.- Returns:
- the value as specified above
-
processEvent
public void processEvent(SystemEvent event) throws AbortProcessingException
Process PostAddToViewEvent on UIViewRoot to validate form - action/input nesting.- Specified by:
processEvent
in interfaceSystemEventListener
- Parameters:
event
- theSystemEvent
instance that is being processed.- Throws:
AbortProcessingException
- if lifecycle processing should cease for this request.
-
-