@Override protected void onSubmit(AjaxRequestTarget target, DialogButton button) { // If the clicked button was a form-submitter, calls step#applyState() // IWizardModel wizardModel = this.getWizardModel(); wizardModel.getActiveStep().applyState(); }
@Override protected void onSubmit(AjaxRequestTarget target) { /* If the clicked button is a form-submitter, calls step#applyState() */ IWizardModel wizardModel = this.getWizardModel(); wizardModel.getActiveStep().applyState(); }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); wizardModel.getActiveStep().applyState(); wizardModel.last(); } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); wizardModel.getActiveStep().applyState(); wizardModel.last(); } }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } target.add(wizard); } }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } target.addComponent(wizard); }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } target.add(wizard); }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } // target.addComponent(wizard); } });
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the // model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } // target.addComponent(wizard); } });
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the // model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } } }