class FormOmittedChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
SKIP_ITERATION_HINT
Stores the skip hint.
|
Modifier | Constructor and Description |
---|---|
private |
FormOmittedChecker()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static void |
addFormOmittedMessage(javax.faces.context.FacesContext context)
Add the form omitted message.
|
static void |
check(javax.faces.context.FacesContext context)
Check if omitted forms are present.
|
private static boolean |
isForm(javax.faces.component.UIComponent component)
Is the component a form.
|
private static boolean |
isInNeedOfForm(javax.faces.component.UIComponent component)
Is the component in need of a form.
|
private static java.lang.String SKIP_ITERATION_HINT
public static void check(javax.faces.context.FacesContext context)
context
- the Faces context.private static boolean isForm(javax.faces.component.UIComponent component)
Note normally a form inherits from UIForm, but there might be some component libraries out there that might not honor that. So we check the component family to avoid warning in cases where 3rd party form component that does not extend UIForm (eg. tr:form) is used.
component
- the UI component.private static boolean isInNeedOfForm(javax.faces.component.UIComponent component)
component
- the UI component.private static void addFormOmittedMessage(javax.faces.context.FacesContext context)
context
- the Faces context.Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.