Tabnine Logo
ViewState.refresh
Code IndexAdd Tabnine to your IDE (free)

How to use
refresh
method
in
org.springframework.webflow.engine.ViewState

Best Java code snippets using org.springframework.webflow.engine.ViewState.refresh (Showing top 3 results out of 315)

origin: org.springframework.webflow/spring-webflow

refresh(view, context);
origin: org.springframework/spring-webflow

public ViewSelection refresh(ExternalContext externalContext) throws FlowExecutionException {
  assertActive();
  if (logger.isDebugEnabled()) {
    logger.debug("Resuming execution for refresh");
  }
  RequestControlContext context = createControlContext(externalContext);
  getListeners().fireRequestSubmitted(context);
  try {
    try {
      resume(context);
      State currentState = getCurrentState();
      if (!(currentState instanceof ViewState)) {
        throw new IllegalStateException("Current state is not a view state - cannot refresh; "
            + "perhaps an unhandled exception occured in another state?");
      }
      ViewSelection selectedView = ((ViewState) currentState).refresh(context);
      return pause(context, selectedView);
    } catch (FlowExecutionException e) {
      return pause(context, handleException(e, context));
    } catch (Exception e) {
      return pause(context, handleException(wrapException(e), context));
    }
  } finally {
    getListeners().fireRequestProcessed(context);
  }
}
origin: spring-projects/spring-webflow

refresh(view, context);
org.springframework.webflow.engineViewStaterefresh

Javadoc

Request that the current view selection be reconstituted to support reissuing the response. This is an idempotent operation that may be safely called any number of times on a paused execution, used primarily to support a flow execution redirect.

Popular methods of ViewState

  • <init>
    Create a new view state.
  • getId
  • getRenderActionList
    Returns the list of actions executable by this view state on entry and on refresh. The returned list
  • getViewFactory
    Returns the view factory.
  • addVariable
    Adds a view variable.
  • resume
  • setPopup
    Sets whether this view state should render as a popup.
  • setRedirect
    Sets whether this view state should requests a flow execution redirect when entered.
  • addVariables
    Adds a set of view variables.
  • createVariables
  • destroyVariables
  • getEntryActionList
  • destroyVariables,
  • getEntryActionList,
  • getOwner,
  • render,
  • restoreVariables,
  • shouldRedirect,
  • updateHistory,
  • clearFlash,
  • getRedirect

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTable (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Option (scala)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now