org.apache.myfaces.lifecycle
Interface RestoreViewSupport

All Known Implementing Classes:
DefaultRestoreViewSupport

public interface RestoreViewSupport

Support class for restore view phase

Version:
$Revision: 517403 $ $Date: 2007-03-12 16:17:00 -0500 (Mon, 12 Mar 2007) $
Author:
Mathias Broekelmann (latest modification by $Author: mbr $)

Method Summary
 String calculateViewId(FacesContext facesContext)
           Calculates the view id from the given faces context by the following algorithm
 boolean isPostback(FacesContext facesContext)
           Determine if the current request is a post back by the following algorithm.
 void processComponentBinding(FacesContext facesContext, UIComponent component)
          Processes the component tree.
 

Method Detail

calculateViewId

String calculateViewId(FacesContext facesContext)

Calculates the view id from the given faces context by the following algorithm


processComponentBinding

void processComponentBinding(FacesContext facesContext,
                             UIComponent component)
Processes the component tree. For each component (including the given one) in the tree determine if a value expression for the attribute "binding" is defined. If the expression is not null set the component instance to the value of this expression

Parameters:
facesContext -
component - the root component

isPostback

boolean isPostback(FacesContext facesContext)

Determine if the current request is a post back by the following algorithm.

Find the render-kit-id for the current request by calling calculateRenderKitId() on the Application’s ViewHandler. Get that RenderKit’s ResponseStateManager and call its isPostback() method, passing the given FacesContext.

Parameters:
facesContext -
Returns:


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