@Controller public class FormResourceController extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
FormResourceController() |
Modifier and Type | Method and Description |
---|---|
void |
addFormResource(Form form,
String datatype,
String handler,
org.springframework.ui.Model model) |
String |
deleteFormResource(Form form,
String name) |
String |
handleAddFormResource(FormResource resource,
org.springframework.validation.Errors errors,
javax.servlet.http.HttpServletRequest request) |
void |
manageFormResources(Form form,
org.springframework.ui.Model model) |
@RequestMapping(method=GET, value="admin/forms/formResources") public void manageFormResources(@RequestParam(value="formId") Form form, org.springframework.ui.Model model)
@RequestMapping(method=POST, value="admin/forms/deleteFormResource") public String deleteFormResource(@RequestParam(value="formId") Form form, @RequestParam(value="name") String name)
@RequestMapping(method=GET, value="admin/forms/addFormResource") public void addFormResource(@RequestParam(value="formId") Form form, @RequestParam(value="datatype") String datatype, @RequestParam(required=false,value="handler") String handler, org.springframework.ui.Model model)
@RequestMapping(method=POST, value="admin/forms/addFormResource") public String handleAddFormResource(@ModelAttribute(value="resource") FormResource resource, org.springframework.validation.Errors errors, javax.servlet.http.HttpServletRequest request)
Copyright © 2015 OpenMRS Inc.. All rights reserved.