org.springframework.samples.petclinic.web
Class FindOwnersForm

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

@Controller
@RequestMapping(method=GET)
public class FindOwnersForm
extends java.lang.Object

JavaBean Form controller that is used to search for Owners by last name.

Author:
Juergen Hoeller, Ken Krebs, Arjen Poutsma

Constructor Summary
FindOwnersForm(Clinic clinic)
           
 
Method Summary
 java.lang.String processSubmit(Owner owner, org.springframework.validation.BindingResult result, org.springframework.ui.Model model)
           
 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

FindOwnersForm

public FindOwnersForm(Clinic clinic)
Method Detail

setAllowedFields

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

setupForm

@RequestMapping(value="/owners/search")
public java.lang.String setupForm(org.springframework.ui.Model model)

processSubmit

@RequestMapping(value="/owners")
public java.lang.String processSubmit(Owner owner,
                                                     org.springframework.validation.BindingResult result,
                                                     org.springframework.ui.Model model)


Copyright © 2010. All Rights Reserved.