Example usage for org.apache.wicket.util.string StringValue toBooleanObject

List of usage examples for org.apache.wicket.util.string StringValue toBooleanObject

Introduction

In this page you can find the example usage for org.apache.wicket.util.string StringValue toBooleanObject.

Prototype

public final Boolean toBooleanObject() throws StringValueConversionException 

Source Link

Document

Convert this text to a boolean.

Usage

From source file:org.projectforge.web.wicket.WicketUtils.java

License:Open Source License

public static Boolean getAsBooleanObject(final PageParameters parameters, final String name) {
    final StringValue sval = parameters.get(name);
    if (sval == null || sval.isNull() == true) {
        return null;
    } else {/* w ww.  ja va2 s.  c o  m*/
        return sval.toBooleanObject();
    }
}