Examples of processUserEvent()


Examples of org.springframework.webflow.execution.View.processUserEvent()

  }

  public void resume(RequestControlContext context) {
    restoreVariables(context);
    View view = viewFactory.getView(context);
    view.processUserEvent();
    if (view.hasFlowEvent()) {
      Event event = view.getFlowEvent();
      if (logger.isDebugEnabled()) {
        logger.debug("Event '" + event.getId() + "' returned from view " + view);
      }
View Full Code Here

Examples of org.springframework.webflow.execution.View.processUserEvent()

    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
    context.putRequestParameter("_eventId", "foo");
    view.processUserEvent();
    assertTrue(view.hasFlowEvent());
    assertEquals("foo", view.getFlowEvent().getId());
  }

  public void testProcessUserEventButton() throws IOException {
View Full Code Here

Examples of org.springframework.webflow.execution.View.processUserEvent()

    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
    context.putRequestParameter("_eventId_foo", "doesn't matter");
    view.processUserEvent();
    assertTrue(view.hasFlowEvent());
    assertEquals("foo", view.getFlowEvent().getId());
  }

  public void testProcessUserEventNoEvent() throws IOException {
View Full Code Here

Examples of org.springframework.webflow.execution.View.processUserEvent()

    MockRequestContext context = new MockRequestContext();
    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
    view.processUserEvent();
    assertFalse(view.hasFlowEvent());
    assertNull(view.getFlowEvent());
  }
}
View Full Code Here

Examples of org.springframework.webflow.mvc.view.AbstractMvcView.processUserEvent()

    context.getMockFlowExecutionContext().setKey(new MockFlowExecutionKey("c1v1"));
    org.springframework.web.servlet.View mvcView = (org.springframework.web.servlet.View) EasyMock
        .createMock(org.springframework.web.servlet.View.class);
    AbstractMvcView view = new PortletMvcView(mvcView, context);
    view.setExpressionParser(DefaultExpressionParserFactory.getExpressionParser());
    view.processUserEvent();
    assertEquals(true, bindBean.getBooleanProperty());
    ViewActionStateHolder holder = (ViewActionStateHolder) context.getFlashScope().get(ViewActionStateHolder.KEY);
    assertEquals("submit", holder.getEventId());
    assertNotNull(holder.getMappingResults());
  }
View Full Code Here

Examples of org.springframework.webflow.mvc.view.AbstractMvcView.processUserEvent()

    context.getMockFlowExecutionContext().setKey(new MockFlowExecutionKey("c1v1"));
    org.springframework.web.servlet.View mvcView = EasyMock.createMock(org.springframework.web.servlet.View.class);
    AbstractMvcView view = new PortletMvcView(mvcView, context);
    view.setExpressionParser(new WebFlowSpringELExpressionParser(new SpelExpressionParser()));
    view.setMessageCodesResolver(new WebFlowMessageCodesResolver());
    view.processUserEvent();
    assertEquals(true, bindBean.getBooleanProperty());
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.