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

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

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

origin: org.apereo.cas/cas-server-core-webflow-api

/**
 * Gets state binder configuration.
 *
 * @param state the state
 * @return the state binder configuration
 */
public BinderConfiguration getViewStateBinderConfiguration(final ViewState state) {
  val field = ReflectionUtils.findField(state.getViewFactory().getClass(), "binderConfiguration");
  ReflectionUtils.makeAccessible(field);
  return (BinderConfiguration) ReflectionUtils.getField(field, state.getViewFactory());
}
origin: org.apereo.cas/cas-server-support-reports

val field = ReflectionUtils.findField(((ViewState) state).getViewFactory().getClass(), "viewId");
if (field != null) {
  ReflectionUtils.makeAccessible(field);
  val exp = (Expression) ReflectionUtils.getField(field, ((ViewState) state).getViewFactory());
  stateMap.put("viewId", StringUtils.defaultIfBlank(exp.getExpressionString(), exp.getValue(null).toString()));
} else {
origin: org.wicketstuff/spring-webflow

viewStateClass= ((WicketView) viewState.getViewFactory().getView(null)).getViewId();
origin: org.codelabor/codelabor-system-anyframe

public void handle(FlowExecutionException exception,
    RequestControlContext requestControlContext) {
  requestControlContext.getMessageContext().addMessage(
      new MessageBuilder()
          .error()
          .source(null)
          .defaultText(
              findBusinessException(exception).getMessage())
          .build());
  Object testState = requestControlContext.getCurrentState();
  if (testState instanceof ViewState) {
    ViewState viewState = (ViewState) testState;
    try {
      viewState.getViewFactory().getView(requestControlContext)
          .render();
    } catch (IOException e) {
      e.printStackTrace();
      // Properly handle rendering errors here
    }
  }
}
origin: spring-projects/spring-webflow

public void testViewStateExternalRedirect() {
  ViewStateModel state = new ViewStateModel("view");
  state.setView("externalRedirect:http://www.paypal.com?_callbackUrl=#{flowExecutionUri}");
  model.setStates(asList(state));
  Flow flow = getFlow(model);
  ViewFactory vf = ((ViewState) flow.getStateInstance("view")).getViewFactory();
  assertTrue(vf instanceof ActionExecutingViewFactory);
  ActionExecutingViewFactory avf = (ActionExecutingViewFactory) vf;
  assertTrue(avf.getAction() instanceof ExternalRedirectAction);
}
origin: spring-projects/spring-webflow

public void testViewStateFlowRedirect() {
  ViewStateModel state = new ViewStateModel("view");
  state.setView("flowRedirect:myFlow?input=#{flowScope.foo}");
  model.setStates(asList(state));
  Flow flow = getFlow(model);
  ViewFactory vf = ((ViewState) flow.getStateInstance("view")).getViewFactory();
  assertTrue(vf instanceof ActionExecutingViewFactory);
  ActionExecutingViewFactory avf = (ActionExecutingViewFactory) vf;
  assertTrue(avf.getAction() instanceof FlowDefinitionRedirectAction);
}
org.springframework.webflow.engineViewStategetViewFactory

Javadoc

Returns the view factory.

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

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer 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