Package org.springframework.webflow.action

Examples of org.springframework.webflow.action.EventFactorySupport


      this.result = result;
    }

    public Event execute(RequestContext context) throws Exception {
      if (result) {
        return new EventFactorySupport().success(this);
      } else {
        return new EventFactorySupport().error(this);
      }
    }
View Full Code Here


      this.result = result;
    }

    public Event execute(RequestContext context) throws Exception {
      if (result) {
        return new EventFactorySupport().success(this);
      } else {
        return new EventFactorySupport().error(this);
      }
    }
View Full Code Here

    if (orderForm.getDeliveryDate() == null) {
      MessageBuilder errorMessageBuilder = new MessageBuilder().error();
      errorMessageBuilder.source("deliveryDate");
      errorMessageBuilder.code("error.page.selectdeliveryoptions.deliverydate.required");
      messageContext.addMessage(errorMessageBuilder.build());
      return new EventFactorySupport().error(this);
    }

    if (!orderForm.getDeliveryDate().after(DateUtils.truncate(orderForm.getOrderDate(), Calendar.DAY_OF_MONTH))) {
      MessageBuilder errorMessageBuilder = new MessageBuilder().error();
      errorMessageBuilder.source("deliveryDate");
      errorMessageBuilder.code("error.page.selectdeliveryoptions.deliverydate.in.past");
      messageContext.addMessage(errorMessageBuilder.build());
      return new EventFactorySupport().error(this);
    }
    return new EventFactorySupport().success(this);
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.action.EventFactorySupport

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.