@Controller
public class LocationAttributeTypeFormController
extends java.lang.Object
Constructor and Description |
---|
LocationAttributeTypeFormController() |
Modifier and Type | Method and Description |
---|---|
LocationAttributeType |
formBackingObject(LocationAttributeType attrType)
Put existing or newly-instantiated attribute type in the model
|
java.util.Collection<java.lang.String> |
getDatatypes() |
java.util.Collection<java.lang.String> |
getHandlers() |
java.lang.String |
handleSubmit(org.springframework.web.context.request.WebRequest request,
LocationAttributeType attributeType,
org.springframework.validation.BindingResult errors)
Handle submission for create or edit
|
void |
showForm()
Show existing (or instantiate blank)
|
@ModelAttribute(value="datatypes") public java.util.Collection<java.lang.String> getDatatypes()
@ModelAttribute(value="handlers") public java.util.Collection<java.lang.String> getHandlers()
@ModelAttribute(value="attributeType") public LocationAttributeType formBackingObject(@RequestParam(value="id",required=false) LocationAttributeType attrType)
@RequestMapping(value="/admin/locations/locationAttributeType", method=GET) public void showForm()
@RequestMapping(value="/admin/locations/locationAttributeType", method=POST) public java.lang.String handleSubmit(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="attributeType") LocationAttributeType attributeType, org.springframework.validation.BindingResult errors)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.