Browse Source

Reverted changes in r2282: now using varags again.

pull/23217/head
Arjen Poutsma 15 years ago
parent
commit
d66fd9843e
  1. 2
      org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddOwnerForm.java
  2. 2
      org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddPetForm.java
  3. 2
      org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddVisitForm.java
  4. 2
      org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditOwnerForm.java
  5. 2
      org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditPetForm.java
  6. 2
      org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/FindOwnersForm.java

2
org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddOwnerForm.java

@ -39,7 +39,7 @@ public class AddOwnerForm {
@InitBinder @InitBinder
public void setAllowedFields(WebDataBinder dataBinder) { public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"}); dataBinder.setDisallowedFields("id");
} }
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)

2
org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddPetForm.java

@ -49,7 +49,7 @@ public class AddPetForm {
@InitBinder @InitBinder
public void setAllowedFields(WebDataBinder dataBinder) { public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"}); dataBinder.setDisallowedFields("id");
} }
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)

2
org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddVisitForm.java

@ -41,7 +41,7 @@ public class AddVisitForm {
@InitBinder @InitBinder
public void setAllowedFields(WebDataBinder dataBinder) { public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"}); dataBinder.setDisallowedFields("id");
} }
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)

2
org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditOwnerForm.java

@ -39,7 +39,7 @@ public class EditOwnerForm {
@InitBinder @InitBinder
public void setAllowedFields(WebDataBinder dataBinder) { public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"}); dataBinder.setDisallowedFields("id");
} }
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)

2
org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditPetForm.java

@ -47,7 +47,7 @@ public class EditPetForm {
@InitBinder @InitBinder
public void setAllowedFields(WebDataBinder dataBinder) { public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"}); dataBinder.setDisallowedFields("id");
} }
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)

2
org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/FindOwnersForm.java

@ -35,7 +35,7 @@ public class FindOwnersForm {
@InitBinder @InitBinder
public void setAllowedFields(WebDataBinder dataBinder) { public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields(new String[] {"id"}); dataBinder.setDisallowedFields("id");
} }
@RequestMapping(value = "/owners/search", method = RequestMethod.GET) @RequestMapping(value = "/owners/search", method = RequestMethod.GET)

Loading…
Cancel
Save