Example usage for org.apache.wicket.markup.html.form FormComponent convertInput

List of usage examples for org.apache.wicket.markup.html.form FormComponent convertInput

Introduction

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

Prototype

public void convertInput() 

Source Link

Document

Converts and validates the conversion of the raw input string into the object specified by FormComponent#getType() and records any thrown ConversionException s.

Usage

From source file:org.opensingular.form.wicket.component.SingularFormWicket.java

License:Apache License

protected void convertWithoutValidateComponents() {
    if (isEnabledInHierarchy() && isVisibleInHierarchy()) {
        visitFormComponentsPostOrder(new ValidationVisitor() {
            @Override//from  w  w w. j  av  a  2s  . co  m
            public void validate(final FormComponent<?> formComponent) {
                final Form<?> form = formComponent.getForm();
                if ((!(form instanceof SingularFormWicket<?>) || (SingularFormWicket.this.equals(form)))
                        && form.isEnabledInHierarchy() && form.isVisibleInHierarchy()) {
                    formComponent.convertInput();
                }
            }
        });
    }
}