Package org.openmrs.module.htmlformentry

Examples of org.openmrs.module.htmlformentry.HtmlFormValidator


                             WebRequest request) {
    HtmlFormEntryService service = HtmlFormEntryUtil.getService();
    if (htmlForm.getId() == null && StringUtils.isBlank(htmlForm.getXmlData())) {
      htmlForm.setXmlData(service.getStartingFormXml(htmlForm));
    }
    new HtmlFormValidator().validate(htmlForm, result);
    if (result.hasErrors()) {
      return null;
    } else {
          htmlForm = service.saveHtmlForm(htmlForm);
          request.setAttribute(WebConstants.OPENMRS_MSG_ATTR, "Saved " + htmlForm.getForm().getName() + " " + htmlForm.getForm().getVersion(), WebRequest.SCOPE_SESSION);
View Full Code Here

TOP

Related Classes of org.openmrs.module.htmlformentry.HtmlFormValidator

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.