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

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

Introduction

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

Prototype

public final void processInput() 

Source Link

Document

This method will retrieve the request parameter, validate it, and if valid update the model.

Usage

From source file:org.geoserver.gwc.web.layer.AbstractParameterFilterSubform.java

License:Open Source License

@Override
protected void convertInput() {
    visitChildren(new Component.IVisitor<Component>() {

        @Override//from  ww w  .ja  v a 2  s.  c om
        public Object component(Component component) {
            if (component instanceof FormComponent) {
                FormComponent<?> formComponent = (FormComponent<?>) component;
                formComponent.processInput();
            }
            return Component.IVisitor.CONTINUE_TRAVERSAL;
        }
    });
    T filter = getModelObject();
    setConvertedInput(filter);
}

From source file:org.geoserver.gwc.web.layer.CaseNormalizerSubform.java

License:Open Source License

@Override
protected void convertInput() {
    visitChildren(new Component.IVisitor<Component>() {

        @Override/*  w  w w  .j  av a 2s  .c  o m*/
        public Object component(Component component) {
            if (component instanceof FormComponent) {
                FormComponent<?> formComponent = (FormComponent<?>) component;
                formComponent.processInput();
            }
            return Component.IVisitor.CONTINUE_TRAVERSAL;
        }
    });
    CaseNormalizer filter = getModelObject();
    setConvertedInput(filter);
}

From source file:org.geoserver.gwc.web.layer.GridSubsetsEditor.java

License:Open Source License

@Override
protected void convertInput() {
    grids.visitChildren(new Component.IVisitor<Component>() {

        @Override//from w w  w  . java 2 s .co m
        public Object component(Component component) {
            if (component instanceof FormComponent) {
                FormComponent<?> formComponent = (FormComponent<?>) component;
                formComponent.processInput();
            }
            return Component.IVisitor.CONTINUE_TRAVERSAL;
        }
    });
    List<XMLGridSubset> info = grids.getModelObject();
    HashSet<XMLGridSubset> convertedInput = new HashSet<XMLGridSubset>(info);
    setConvertedInput(convertedInput);
}

From source file:org.geoserver.gwc.web.layer.ParameterFilterEditor.java

License:Open Source License

@Override
protected void convertInput() {
    filters.visitChildren(new Component.IVisitor<Component>() {

        @Override//from   w ww . jav a2  s . c  o  m
        public Object component(Component component) {
            if (component instanceof FormComponent) {
                FormComponent<?> formComponent = (FormComponent<?>) component;
                formComponent.processInput();
            }
            return Component.IVisitor.CONTINUE_TRAVERSAL;
        }
    });
    List<ParameterFilter> info = filters.getModelObject();
    HashSet<ParameterFilter> convertedInput = new HashSet<ParameterFilter>(info);
    setConvertedInput(convertedInput);
}

From source file:org.geoserver.web.netcdf.layer.NetCDFOutSettingsEditor.java

License:Open Source License

@Override
protected void convertInput() {
    globalAttributes.visitChildren(new Component.IVisitor<Component>() {

        @Override//from w  ww.j a v  a2  s.co  m
        public Object component(Component component) {
            if (component instanceof FormComponent) {
                FormComponent<?> formComponent = (FormComponent<?>) component;
                formComponent.processInput();
            }
            return Component.IVisitor.CONTINUE_TRAVERSAL;
        }
    });
    compressionLevel.processInput();
    dataPacking.processInput();
    shuffle.processInput();
    standardName.processInput();
    uom.processInput();
    List<GlobalAttribute> info = globalAttributes.getModelObject();
    NetCDFLayerSettingsContainer convertedInput = new NetCDFLayerSettingsContainer();
    convertedInput.setCompressionLevel(compressionLevel.getModelObject());
    convertedInput.setGlobalAttributes(info);
    convertedInput.setDataPacking(dataPacking.getModelObject());
    convertedInput.setShuffle(shuffle.getModelObject());
    convertedInput.setLayerName(standardName.getModelObject());
    convertedInput.setLayerUOM(uom.getModelObject());
    setConvertedInput(convertedInput);
}

From source file:org.geoserver.web.netcdf.NetCDFPanel.java

License:Open Source License

@Override
protected void convertInput() {
    globalAttributes.visitChildren(new Component.IVisitor<Component>() {

        @Override//from  w w  w . j  av a 2s  .c  o m
        public Object component(Component component) {
            if (component instanceof FormComponent) {
                FormComponent<?> formComponent = (FormComponent<?>) component;
                formComponent.processInput();
            }
            return Component.IVisitor.CONTINUE_TRAVERSAL;
        }
    });
    compressionLevel.processInput();
    dataPacking.processInput();
    shuffle.processInput();
    List<GlobalAttribute> info = globalAttributes.getModelObject();
    NetCDFSettingsContainer convertedInput = new NetCDFSettingsContainer();
    convertedInput.setCompressionLevel(compressionLevel.getModelObject());
    convertedInput.setGlobalAttributes(info);
    convertedInput.setDataPacking(dataPacking.getModelObject());
    convertedInput.setShuffle(shuffle.getModelObject());
    setConvertedInput((T) convertedInput);
}