public class ValidateComponentNesting
extends java.lang.Object
implements javax.faces.event.SystemEventListener
ValidateFormComponentNesting performs component tree validation to assure ActionSource
, ActionSource2
and EditableValueHolder
components are placed inside a form.
ValidateFormComponentNesting is installed automatically if ProjectStage.Development
is
active.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ValidateComponentNesting.ValidateFormNestingCallback |
Constructor and Description |
---|
ValidateComponentNesting() |
Modifier and Type | Method and Description |
---|---|
private static void |
addOmittedMessage(javax.faces.context.FacesContext jsf,
java.lang.String clientId,
java.lang.String key)
method for adding a message regarding missing ancestor to context
|
boolean |
isListenerForSource(java.lang.Object source) |
void |
processEvent(javax.faces.event.SystemEvent event)
Process PostAddToViewEvent on UIViewRoot to validate form - action/input nesting.
|
public boolean isListenerForSource(java.lang.Object source)
isListenerForSource
in interface javax.faces.event.SystemEventListener
public void processEvent(javax.faces.event.SystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.SystemEventListener
javax.faces.event.AbortProcessingException
private static void addOmittedMessage(javax.faces.context.FacesContext jsf, java.lang.String clientId, java.lang.String key)
ctx
- clientId
- Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.