Guest User

Untitled

a guest
Jun 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. @SessionAttributes("thing") // the name of your domain object in the model
  2. public class ThingController {
  3.  
  4. public void setDisallowedFields(WebDataBinder binder) {
  5. binder.setDisallowedFields("id", "someOtherUneditableField");
  6. }
  7.  
  8. // request handling methods go here as before
  9. }
  10.  
  11. protected void initBinder(HttpServletRequest request,
  12. ServletRequestDataBinder binder)
Add Comment
Please, Sign In to add comment