JSF-Spring

de.mindmatters.faces.lifecycle
Class RestoreViewPhase

java.lang.Object
  extended by de.mindmatters.faces.lifecycle.AbstractPhase
      extended by de.mindmatters.faces.lifecycle.RestoreViewPhase
All Implemented Interfaces:
Phase
Direct Known Subclasses:
RestoreViewPhase

public class RestoreViewPhase
extends AbstractPhase

Implements the default Restore View phase of the faces lifecycle.

Author:
Andreas Kuhrwahl

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.mindmatters.faces.lifecycle.Phase
Phase.PhaseIdName
 
Constructor Summary
RestoreViewPhase()
           
 
Method Summary
protected  UIViewRoot buildView(FacesContext context, ViewBuilder viewBuilder, java.lang.String viewId)
          Perform whatever actions are required to build the view associated with the specified FacesContext and viewId.
protected  UIViewRoot createView(FacesContext context, ViewHandler viewHandler, java.lang.String viewId)
          Perform whatever actions are required to create the view associated with the specified FacesContext and viewId.
protected  void doPerComponentActions(FacesContext context, UIComponent component)
          Do any per-component actions necessary during reconstitute.
protected  void executePhase(FacesContext context)
          Perform all state transitions required by the current phase of the request processing Lifecycle for a particular request.
 PhaseId getId()
          Returns the current Lifecycle Phase identifier.
protected  UIViewRoot restoreView(FacesContext context, ViewHandler viewHandler, java.lang.String viewId)
          Perform whatever actions are required to restore the view associated with the specified FacesContext and viewId.
 
Methods inherited from class de.mindmatters.faces.lifecycle.AbstractPhase
afterPhase, beforePhase, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreViewPhase

public RestoreViewPhase()
Method Detail

getId

public final PhaseId getId()
Returns the current Lifecycle Phase identifier.

Returns:
phase identifier

executePhase

protected final void executePhase(FacesContext context)
Perform all state transitions required by the current phase of the request processing Lifecycle for a particular request.

Specified by:
executePhase in class AbstractPhase
Parameters:
context - FacesContext for the current request being processed
See Also:
Phase.execute(FacesContext)

restoreView

protected UIViewRoot restoreView(FacesContext context,
                                 ViewHandler viewHandler,
                                 java.lang.String viewId)
Perform whatever actions are required to restore the view associated with the specified FacesContext and viewId. Default implementation delegates to ViewHandler.restoreView(FacesContext, String).

Parameters:
context - FacesContext for the current request
viewHandler - ViewHandler for the current request
viewId - the view identifier for the current request
Returns:
the restored view
Throws:
FacesException - in case of errors

buildView

protected UIViewRoot buildView(FacesContext context,
                               ViewBuilder viewBuilder,
                               java.lang.String viewId)
Perform whatever actions are required to build the view associated with the specified FacesContext and viewId. Default implementation delegates to ViewBuilder.buildView(FacesContext, String).

Parameters:
context - FacesContext for the current request
viewBuilder - ViewBuilder for the current request
viewId - the view identifier for the current request
Returns:
the built view
Throws:
FacesException - in case of errors

createView

protected UIViewRoot createView(FacesContext context,
                                ViewHandler viewHandler,
                                java.lang.String viewId)
Perform whatever actions are required to create the view associated with the specified FacesContext and viewId. Default implementation delegates to ViewHandler.createView(FacesContext, String).

Parameters:
context - FacesContext for the current request
viewHandler - ViewHandler for the current request
viewId - the view identifier for the current request
Returns:
the built view
Throws:
FacesException - in case of errors

doPerComponentActions

protected void doPerComponentActions(FacesContext context,
                                     UIComponent component)
Do any per-component actions necessary during reconstitute.

Parameters:
context - FacesContext for the current request
component - the component the actions will be applied to
Throws:
FacesException - in case of errors

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG