org.springframework.samples.petclinic.web
Class AddVisitForm
java.lang.Object
org.springframework.samples.petclinic.web.AddVisitForm
@Controller
@RequestMapping(value="/owners/*/pets/{petId}/visits/new")
@SessionAttributes(value="visit")
public class AddVisitForm
- extends java.lang.Object
JavaBean form controller that is used to add a new Visit
to the
system.
- Author:
- Juergen Hoeller, Ken Krebs, Arjen Poutsma
Method Summary |
java.lang.String |
processSubmit(Visit visit,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
|
void |
setAllowedFields(org.springframework.web.bind.WebDataBinder dataBinder)
|
java.lang.String |
setupForm(int petId,
org.springframework.ui.Model model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddVisitForm
public AddVisitForm(Clinic clinic)
setAllowedFields
@InitBinder
public void setAllowedFields(org.springframework.web.bind.WebDataBinder dataBinder)
setupForm
@RequestMapping(method=GET)
public java.lang.String setupForm(@PathVariable(value="petId")
int petId,
org.springframework.ui.Model model)
processSubmit
@RequestMapping(method=POST)
public java.lang.String processSubmit(@ModelAttribute(value="visit")
Visit visit,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
Copyright © 2010. All Rights Reserved.