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

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

Introduction

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

Prototype

public void setBindEmptyMultipartFiles(boolean bindEmptyMultipartFiles) 

Source Link

Document

Set whether to bind empty MultipartFile parameters.

Usage

From source file:de.hybris.platform.customerticketingaddon.controllers.pages.AccountSupportTicketsPageController.java

@InitBinder
public void init(final WebDataBinder binder) {
    binder.setBindEmptyMultipartFiles(false);
}

From source file:cdr.forms.FormController.java

@InitBinder
protected void initBinder(WebDataBinder binder) {
    binder.registerCustomEditor(java.util.Date.class, new DateEditor());
    binder.registerCustomEditor(java.lang.String.class, new StringCleanerTrimmerEditor(true));
    binder.registerCustomEditor(DepositFile.class, new DepositFileEditor());
    binder.setBindEmptyMultipartFiles(false);
}