Package org.springframework.webflow.engine.model

Examples of org.springframework.webflow.engine.model.SetModel


    render.addAttributes(parseAttributes(element));
    return render;
  }

  private SetModel parseSet(Element element) {
    SetModel set = new SetModel(element.getAttribute("name"), element.getAttribute("value"));
    set.setType(element.getAttribute("type"));
    set.addAttributes(parseAttributes(element));
    return set;
  }
View Full Code Here


    Flow flow = assembler.assembleFlow();
    assertEquals(1, flow.getExceptionHandlerSet().size());
  }

  public void testSetActionWithResultType() throws Exception {
    SetModel setModel = new SetModel("flowScope.stringArray", "intArray");
    setModel.setType("java.lang.String[]");
    model.setOnStartActions(asList(AbstractActionModel.class, setModel));
    model.setStates(asList(AbstractStateModel.class, new ViewStateModel("view")));
    Flow flow = getFlow(model);
    AnnotatedAction action = (AnnotatedAction) flow.getStartActionList().get(0);
    MockRequestContext context = new MockRequestContext(flow);
View Full Code Here

    assertEquals("1", expected[0]);
    assertEquals("2", expected[1]);
  }

  public void testSetActionWithImplicitTypeConversion() throws Exception {
    SetModel setModel = new SetModel("testBean.stringArray", "intArray");
    model.setOnStartActions(asList(AbstractActionModel.class, setModel));
    ViewStateModel state = new ViewStateModel("view");
    model.setStates(asList(AbstractStateModel.class, state));
    Flow flow = getFlow(model);
    AnnotatedAction action = (AnnotatedAction) flow.getStartActionList().get(0);
View Full Code Here

    render.setAttributes(parseAttributes(element));
    return render;
  }

  private SetModel parseSet(Element element) {
    SetModel set = new SetModel(element.getAttribute("name"), element.getAttribute("value"));
    set.setType(element.getAttribute("type"));
    set.setAttributes(parseAttributes(element));
    return set;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.model.SetModel

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.