Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SessionAttributes("thing") // the name of your domain object in the model
- public class ThingController {
- public void setDisallowedFields(WebDataBinder binder) {
- binder.setDisallowedFields("id", "someOtherUneditableField");
- }
- // request handling methods go here as before
- }
- protected void initBinder(HttpServletRequest request,
- ServletRequestDataBinder binder)
Add Comment
Please, Sign In to add comment