Hi Patrick,

Use a DynamicWizardModel

private final IDynamicWizardStep step0;

public MyWizard(String id)
{
    super(id);
    final IWizardModel wizardModel = new DynamicWizardModel(this.step0); /*
the start step */
    this.init(wizardModel);
}

You have a complete demo here (using wicket-jquery-ui's wizard, but it's
the same with the built-in wizard):
http://www.7thweb.net/wicket-jquery-ui/wizard/DynamicWizardPage

Hope this helps,
Sebastien.




On Mon, Jul 28, 2014 at 11:05 AM, Patrick Davids <
[email protected]> wrote:

> Hi all,
> what I have here is an persistent workflow and I use a wizard to
> visualize this workflow.
>
> On entering my page I wanna push the wizard into a specific step
> depending on my persistent workflow state/(step).
>
> Until now I only was able to achieve this, by manually calling
> wizardModel.next(); as many times I need to reach my particular active
> step.
>
> (I will give a new try for calling setActiveStep(), but as far as I
> remember I wasnt able todo this, Not sure, why...
> Anyway...)
> My main reason, I dont want to do it this way is, I have to unpack my
> model-object on construction-time and I have to implement a kind of "if,
> else, if else..." and I have to do this after wizard.init(wizardModel)
> because the wizard resets itself. So I have to pay attention for
> call-sequence etc. First init(), than next(), next(), next()...
>
> Is there any better way to achieve this?
> Maybe, I just dont see the wood for the trees...
> An override of "amITheActiveStep()"-method of WizardStep evaluated by
> the wizard to show an active step depending on conditions?
>
> Thanx for feedback
> Patrick
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to