I don't understand what you mean by reuse the order form. The jsp? The controller? Which url and/or class name exactly are you reusing?
The error suggests that you are trying to bind an order to the command object. The command object seems to be a concept. Concept does not have a getOrder/setOrder (as it shouldn't). You may want to create a new custom command object for this form. Ben On Mon, Sep 12, 2011 at 7:33 PM, Juan David <[email protected]> wrote: > 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] > _________________________________________ 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]

