Package org.springframework.webflow.engine.support

Examples of org.springframework.webflow.engine.support.ActionExecutingViewFactory


    state.setView("flowRedirect:myFlow?input=#{flowScope.foo}");
    model.setStates(singleList(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);
  }
View Full Code Here


    state.setView("externalRedirect:http://www.paypal.com?_callbackUrl=#{flowExecutionUri}");
    model.setStates(singleList(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);
  }
View Full Code Here

      }
    } else if (view.startsWith("externalRedirect:")) {
      String encodedUrl = view.substring("externalRedirect:".length());
      Expression externalUrl = getLocalContext().getExpressionParser().parseExpression(encodedUrl,
          new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
      return new ActionExecutingViewFactory(new ExternalRedirectAction(externalUrl));
    } else if (view.startsWith("flowRedirect:")) {
      String flowRedirect = view.substring("flowRedirect:".length());
      Expression expression = getLocalContext().getExpressionParser().parseExpression(flowRedirect,
          new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
      return new ActionExecutingViewFactory(new FlowDefinitionRedirectAction(expression));
    } else {
      Expression viewId = getLocalContext().getExpressionParser().parseExpression(view,
          new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
      return createViewFactory(viewId, binderModel);
    }
View Full Code Here

    state.setView("flowRedirect:myFlow?input=#{flowScope.foo}");
    model.setStates(asList(AbstractStateModel.class, 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);
  }
View Full Code Here

    state.setView("externalRedirect:http://www.paypal.com?_callbackUrl=#{flowExecutionUri}");
    model.setStates(asList(AbstractStateModel.class, 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);
  }
View Full Code Here

      }
    } else if (view.startsWith("externalRedirect:")) {
      String encodedUrl = view.substring("externalRedirect:".length());
      Expression externalUrl = getLocalContext().getExpressionParser().parseExpression(encodedUrl,
          new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
      return new ActionExecutingViewFactory(new ExternalRedirectAction(externalUrl));
    } else if (view.startsWith("flowRedirect:")) {
      String flowRedirect = view.substring("flowRedirect:".length());
      Expression expression = getLocalContext().getExpressionParser().parseExpression(flowRedirect,
          new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
      return new ActionExecutingViewFactory(new FlowDefinitionRedirectAction(expression));
    } else {
      Expression viewId = getLocalContext().getExpressionParser().parseExpression(view,
          new FluentParserContext().template().evaluate(RequestContext.class).expectResult(String.class));
      return createViewFactory(viewId, binderModel);
    }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.support.ActionExecutingViewFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.