Example usage for org.springframework.web.bind WebDataBinder setIgnoreInvalidFields

List of usage examples for org.springframework.web.bind WebDataBinder setIgnoreInvalidFields

Introduction

In this page you can find the example usage for org.springframework.web.bind WebDataBinder setIgnoreInvalidFields.

Prototype

public void setIgnoreInvalidFields(boolean ignoreInvalidFields) 

Source Link

Document

Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).

Usage

From source file:de.iteratec.iteraplan.presentation.dialog.GuiSearchController.java

/**
 * Need to disable automatic data binding, because implementing a default
 * constructor for attribute DynamicQueryFormData#queryForm is not an
 * option./*w  w  w.  jav  a  2  s  .  c o  m*/
 */
@InitBinder
protected void initBinder(WebDataBinder binder) {
    binder.setIgnoreInvalidFields(true);

}