Java Code Examples for org.springframework.web.bind.WebDataBinder#setDisallowedFields()

The following examples show how to use org.springframework.web.bind.WebDataBinder#setDisallowedFields() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VisitController.java    From docker-workflow-plugin with MIT License 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
    dataBinder.setDisallowedFields("id");
}
 
Example 2
Source File: InitBinderDataBinderFactoryTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@InitBinder(value="foo")
public void initBinderWithAttributeName(WebDataBinder dataBinder) {
	dataBinder.setDisallowedFields("id");
}
 
Example 3
Source File: PetController.java    From audit4j-demo with Apache License 2.0 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
    dataBinder.setDisallowedFields("id");
}
 
Example 4
Source File: InitBinderDataBinderFactoryTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@InitBinder
public void initBinderTypeConversion(WebDataBinder dataBinder, @RequestParam int requestParam) {
	dataBinder.setDisallowedFields("requestParam-" + requestParam);
}
 
Example 5
Source File: InitBinderDataBinderFactoryTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@InitBinder(value="foo")
public void initBinderWithAttributeName(WebDataBinder dataBinder) {
	dataBinder.setDisallowedFields("id");
}
 
Example 6
Source File: BinderTestController.java    From es with Apache License 2.0 4 votes vote down vote up
@InitBinder("user4")
public void initBinder4(WebDataBinder binder) {
    binder.setFieldDefaultPrefix("user4.");
    binder.setDisallowedFields("id");

}
 
Example 7
Source File: InitBinderBindingContextTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@InitBinder
public void initBinderTypeConversion(WebDataBinder dataBinder, @RequestParam int requestParam) {
	dataBinder.setDisallowedFields("requestParam-" + requestParam);
}
 
Example 8
Source File: ExceptionHandlerAdvice.java    From springMvc4.x-project with Apache License 2.0 4 votes vote down vote up
@InitBinder //④
public void initBinder(WebDataBinder webDataBinder) {
	webDataBinder.setDisallowedFields("id"); //⑤
}
 
Example 9
Source File: InitBinderBindingContextTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@InitBinder
public void initBinder(WebDataBinder dataBinder) {
	dataBinder.setDisallowedFields("id");
}
 
Example 10
Source File: OwnerController.java    From activejpa with Apache License 2.0 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
    dataBinder.setDisallowedFields("id");
}
 
Example 11
Source File: AccountController.java    From website with GNU Affero General Public License v3.0 4 votes vote down vote up
@InitBinder("userAccount")
public void initBinder(WebDataBinder binder) {
	binder.setDisallowedFields("user.id", "user.email", "user.roles");
}
 
Example 12
Source File: GlobalControllerAdvice.java    From spring-events with Apache License 2.0 4 votes vote down vote up
@InitBinder
public void configureBinding(WebDataBinder binder) {
	binder.setDisallowedFields("id");
}
 
Example 13
Source File: PetController.java    From enhanced-pet-clinic with Apache License 2.0 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
	dataBinder.setDisallowedFields("id");
}
 
Example 14
Source File: ExceptionHandlerAdvice.java    From springMvc4.x-project with Apache License 2.0 4 votes vote down vote up
@InitBinder //④
public void initBinder(WebDataBinder webDataBinder) {
	webDataBinder.setDisallowedFields("id"); //⑤
}
 
Example 15
Source File: OwnerController.java    From docker-workflow-plugin with MIT License 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
    dataBinder.setDisallowedFields("id");
}
 
Example 16
Source File: PdfAutomationController.java    From website with GNU Affero General Public License v3.0 4 votes vote down vote up
@InitBinder("toProduct")
public void initBinder(WebDataBinder binder) {
	binder.setDisallowedFields("pdfConversion.id", "pdfConversion.originalFilename", "pdfConversion.oneUpFilename", "pdfConversion.twoUpFilename", "product.oneUpFilename", "product.twoUpFilename");
}
 
Example 17
Source File: ExceptionHandlerAdvice.java    From springMvc4.x-project with Apache License 2.0 4 votes vote down vote up
@InitBinder //④
public void initBinder(WebDataBinder webDataBinder) {
	webDataBinder.setDisallowedFields("id"); //⑤
}
 
Example 18
Source File: RegistrationController.java    From website with GNU Affero General Public License v3.0 4 votes vote down vote up
@InitBinder("userRegistration")
public void initBinder(WebDataBinder binder) {
	binder.setDisallowedFields("user.id", "user.roles");
}
 
Example 19
Source File: OwnerController.java    From DevOps-for-Web-Development with MIT License 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
    dataBinder.setDisallowedFields("id");
}
 
Example 20
Source File: PetController.java    From activejpa with Apache License 2.0 4 votes vote down vote up
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
    dataBinder.setDisallowedFields("id");
}