Hello,
I want to reuse the order form adding a status to the order and customize the
way the order is saved.
I am using a spring annotated controller, and the core jsp formulary for an
order:
# RadiologyOrderFormController.java
@RequestMapping(value = "/module/radiologymodule/radiologyOrder.form",
method = RequestMethod.GET)
protected ModelAndView get() {
ModelAndView mav = new ModelAndView(
"module/radiologymodule/radiologyOrderForm");
mav.addObject("order", new Order());
return mav;
}
And other code for the POST request, the form loads but when I try to send the
POST request:
org.springframework.validation.BeanPropertyBindingResult: 4 errors
Field error in object 'order' on field 'concept': rejected value [1]...
Because is expecting Concept instead of String (says the page).
Thanks in advance.
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]