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

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

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

origin: org.springframework.webflow/spring-webflow

private void refresh(View view, RequestControlContext context) {
  ExternalContext externalContext = context.getExternalContext();
  if (externalContext.isResponseComplete()) {
    clearFlash(context);
  } else {
    render(context, view);
  }
}
origin: org.springframework.webflow/spring-webflow

private void render(RequestControlContext context, View view) throws ViewRenderingException {
  if (logger.isDebugEnabled()) {
    logger.debug("Rendering + " + view);
    logger.debug("  Flash scope = " + context.getFlashScope());
    logger.debug("  Messages = " + context.getMessageContext());
  }
  context.viewRendering(view);
  renderActionList.execute(context);
  try {
    view.render();
  } catch (IOException e) {
    throw new ViewRenderingException(getOwner().getId(), getId(), view, e);
  }
  clearFlash(context);
  context.getExternalContext().recordResponseComplete();
  context.viewRendered(view);
}
origin: org.springframework.webflow/spring-webflow

protected void doEnter(RequestControlContext context) throws FlowExecutionException {
  context.assignFlowExecutionKey();
  ExternalContext externalContext = context.getExternalContext();
  if (externalContext.isResponseComplete()) {
    if (!externalContext.isResponseCompleteFlowExecutionRedirect()) {
      clearFlash(context);
    }
  } else {
    if (shouldRedirect(context)) {
      context.getExternalContext().requestFlowExecutionRedirect();
      if (popup) {
        context.getExternalContext().requestRedirectInPopup();
      }
    } else {
      View view = viewFactory.getView(context);
      context.setCurrentView(view);
      render(context, view);
    }
  }
}
origin: org.springframework.webflow/spring-webflow

  context.getFlashScope().put(View.USER_EVENT_STATE_ATTRIBUTE, view.getUserEventState());
} else {
  clearFlash(context);
origin: spring-projects/spring-webflow

private void refresh(View view, RequestControlContext context) {
  ExternalContext externalContext = context.getExternalContext();
  if (externalContext.isResponseComplete()) {
    clearFlash(context);
  } else {
    render(context, view);
  }
}
origin: spring-projects/spring-webflow

private void render(RequestControlContext context, View view) throws ViewRenderingException {
  if (logger.isDebugEnabled()) {
    logger.debug("Rendering + " + view);
    logger.debug("  Flash scope = " + context.getFlashScope());
    logger.debug("  Messages = " + context.getMessageContext());
  }
  context.viewRendering(view);
  renderActionList.execute(context);
  try {
    view.render();
  } catch (IOException e) {
    throw new ViewRenderingException(getOwner().getId(), getId(), view, e);
  }
  clearFlash(context);
  context.getExternalContext().recordResponseComplete();
  context.viewRendered(view);
}
origin: spring-projects/spring-webflow

protected void doEnter(RequestControlContext context) throws FlowExecutionException {
  context.assignFlowExecutionKey();
  ExternalContext externalContext = context.getExternalContext();
  if (externalContext.isResponseComplete()) {
    if (!externalContext.isResponseCompleteFlowExecutionRedirect()) {
      clearFlash(context);
    }
  } else {
    if (shouldRedirect(context)) {
      context.getExternalContext().requestFlowExecutionRedirect();
      if (popup) {
        context.getExternalContext().requestRedirectInPopup();
      }
    } else {
      View view = viewFactory.getView(context);
      context.setCurrentView(view);
      render(context, view);
    }
  }
}
origin: spring-projects/spring-webflow

  context.getFlashScope().put(View.USER_EVENT_STATE_ATTRIBUTE, view.getUserEventState());
} else {
  clearFlash(context);
org.springframework.webflow.engineViewStateclearFlash

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,
  • refresh,
  • render,
  • restoreVariables,
  • shouldRedirect,
  • updateHistory,
  • getRedirect

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best IntelliJ plugins
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