public void formSubmit(IRequestCycle cycle) { if (!isValid()) { return;
public void formSubmit() { boolean renderGateways = isRenderGateways(); boolean ruleChanged = isRuleChanged(); boolean valid = isValid(); if (valid && renderGateways && ruleChanged) { saveValid();
    public void formSubmit(IRequestCycle cycle) {        if (!isValid()) {            return;        }        gatewaysPanelSubmit(cycle);    }