org.springframework.samples.petclinic.web
Class AddOwnerForm

java.lang.Object
  extended by org.springframework.samples.petclinic.web.AddOwnerForm

@Controller
@RequestMapping(value="/owners/new")
@SessionAttributes(types=Owner.class)
public class AddOwnerForm
extends java.lang.Object

JavaBean form controller that is used to add a new Owner to the system.

Author:
Juergen Hoeller, Ken Krebs, Arjen Poutsma

Constructor Summary
AddOwnerForm(Clinic clinic)
           
 
Method Summary
 java.lang.String processSubmit(Owner owner, org.springframework.validation.BindingResult result, org.springframework.web.bind.support.SessionStatus status)
           
 void setAllowedFields(org.springframework.web.bind.WebDataBinder dataBinder)
           
 java.lang.String setupForm(org.springframework.ui.Model model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddOwnerForm

public AddOwnerForm(Clinic clinic)
Method Detail

setAllowedFields

@InitBinder
public void setAllowedFields(org.springframework.web.bind.WebDataBinder dataBinder)

setupForm

@RequestMapping(method=GET)
public java.lang.String setupForm(org.springframework.ui.Model model)

processSubmit

@RequestMapping(method=POST)
public java.lang.String processSubmit(@ModelAttribute
                                                     Owner owner,
                                                     org.springframework.validation.BindingResult result,
                                                     org.springframework.web.bind.support.SessionStatus status)


Copyright © 2010. All Rights Reserved.