org.apache.myfaces.shared.util
Class RestoreStateUtils

java.lang.Object
  extended by org.apache.myfaces.shared.util.RestoreStateUtils

public class RestoreStateUtils
extends java.lang.Object

Version:
$Revision: 169655 $ $Date: 2005-05-11 18:45:06 +0200 (Mi, 11 Mai 2005) $
Author:
Martin Marinschek (latest modification by $Author: grantsmith $)

Constructor Summary
RestoreStateUtils()
           
 
Method Summary
static void recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent parent)
          Walk the component tree, executing any component-bindings to reattach components to their backing beans.
static void recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent parent, boolean forceHandle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreStateUtils

public RestoreStateUtils()
Method Detail

recursivelyHandleComponentReferencesAndSetValid

public static void recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext,
                                                                   javax.faces.component.UIComponent parent)
Walk the component tree, executing any component-bindings to reattach components to their backing beans.

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.


recursivelyHandleComponentReferencesAndSetValid

public static void recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext,
                                                                   javax.faces.component.UIComponent parent,
                                                                   boolean forceHandle)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.