@Override
	public 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.add((Wizard)getWizard());
	}
@ Override public void onClick ( AjaxRequestTarget target , Form form ) { IWizardModel wizardModel = getWizardModel ( ) ; IWizardStep step = wizardModel . getActiveStep ( ) ; step . applyState ( ) ; if ( step . isComplete ( ) ) { getWizardModel ( ) . finish ( ) ; } else { error ( getLocalizer ( ) . getString ( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete" , this ) ) ; } target . add ( ( Wizard ) getWizard ( ) ) ; }
@see org.apache.wicket.extensions.wizard.WizardButton#onClick()