org.apache.myfaces.test.mock.lifecycle
Interface RestoreViewSupport

All Known Implementing Classes:
DefaultRestoreViewSupport

public interface RestoreViewSupport

Support class for restore view phase

Since:
1.0.0
Version:
$Revision: 517403 $ $Date: 2007-03-12 22:17:00 +0100 (Mo, 12 Mrz 2007) $
Author:
Mathias Broekelmann (latest modification by $Author: mbr $)

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

Method Detail

calculateViewId

String calculateViewId(javax.faces.context.FacesContext facesContext)

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


processComponentBinding

void processComponentBinding(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.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(javax.faces.context.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 © 2014 The Apache Software Foundation. All Rights Reserved.