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

The following examples show how to use org.springframework.web.bind.WebDataBinder#setFieldDefaultPrefix() . 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: BinderTestController.java    From es with Apache License 2.0 4 votes vote down vote up
@InitBinder("user1")
public void initBinder1(WebDataBinder binder) {
    binder.setFieldDefaultPrefix("user1.");
}
 
Example 2
Source File: BinderTestController.java    From es with Apache License 2.0 4 votes vote down vote up
@InitBinder("user2")
public void initBinder2(WebDataBinder binder) {
    binder.setFieldDefaultPrefix("user2.");
}
 
Example 3
Source File: BinderTestController.java    From es with Apache License 2.0 4 votes vote down vote up
@InitBinder("user3")
public void initBinder3(WebDataBinder binder) {
    binder.setFieldDefaultPrefix("user3.");
    binder.setAllowedFields("id");
}
 
Example 4
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");

}