org.apache.shale.dialog.basic.model
Interface ViewState

All Superinterfaces:
State
All Known Subinterfaces:
EndState
All Known Implementing Classes:
EndStateImpl, ViewStateImpl

public interface ViewState
extends State

A ViewState encapsulates the rendering of a JavaServer Faces view, identified by a specified view identifier. When the view is rendered, standard org.apache.shale.view.ViewController functionality will be supported if there is such a corresponding backing bean. The logical outcome returned by a ViewState will be the one returned by the JavaServer Faces action method that was invoked (if any).

Since:
1.0.4

Method Summary
 String getViewId()
          Return the view identifier of the JavaServer Faces view to render if this state is entered.
 boolean isRedirect()
          Return true if the transition to this view should be done with a redirect, instead of the normal view creation process.
 
Methods inherited from interface org.apache.shale.dialog.basic.model.State
findTransition, getDialog, getName, getTransitionOutcomes
 

Method Detail

isRedirect

boolean isRedirect()

Return true if the transition to this view should be done with a redirect, instead of the normal view creation process.


getViewId

String getViewId()

Return the view identifier of the JavaServer Faces view to render if this state is entered.

Returns:
The view identifier of the JavaServer Faces view to render


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.