public class RestoreStateUtils extends Object
Constructor and Description |
---|
RestoreStateUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
recursivelyHandleComponentReferencesAndSetValid(FacesContext facesContext,
UIComponent parent)
Walk the component tree, executing any component-bindings to reattach
components to their backing beans.
|
static void |
recursivelyHandleComponentReferencesAndSetValid(FacesContext facesContext,
UIComponent parent,
boolean forceHandle) |
public static void recursivelyHandleComponentReferencesAndSetValid(FacesContext facesContext, UIComponent parent)
Note that this method effectively breaks encapsulation; instead of asking each component to update itself and its children, this method just reaches into each component. That makes it impossible for any component to customise its behaviour at this point.
This has been filed as an issue against the spec. Until this issue is resolved, we'll add a new marker-interface for components to allow them to define their interest in handling children bindings themselves.
public static void recursivelyHandleComponentReferencesAndSetValid(FacesContext facesContext, UIComponent parent, boolean forceHandle)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.