Example usage for org.apache.wicket.markup.html.form AbstractTextComponent setConvertEmptyInputStringToNull

List of usage examples for org.apache.wicket.markup.html.form AbstractTextComponent setConvertEmptyInputStringToNull

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form AbstractTextComponent setConvertEmptyInputStringToNull.

Prototype

public final FormComponent<T> setConvertEmptyInputStringToNull(boolean flag) 

Source Link

Document

Should the bound object become null when the input is empty?

Usage

From source file:name.martingeisse.wicket.component.stdform.SingleFormComponentElementConfigurator.java

License:Open Source License

/**
 * This method is only applicable to text components.
 * See {@link AbstractTextComponent#setConvertEmptyInputStringToNull(boolean)}.
 * //from w w w .ja  v  a2s  .  co  m
 * @param convertEmptyInputStringToNull the setting to apply
 * @return this
 */
public final SingleFormComponentElementConfigurator setConvertEmptyInputStringToNull(
        boolean convertEmptyInputStringToNull) {
    AbstractTextComponent<?> c = (AbstractTextComponent<?>) formComponent;
    c.setConvertEmptyInputStringToNull(convertEmptyInputStringToNull);
    return this;
}