Dynamically insert/remove WizardSteps based on user input ?

View: New views
3 Messages — Rating Filter:   Alert me  

Dynamically insert/remove WizardSteps based on user input ?

by smallufo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all :

It seems the WizardSteps are added into WizardModel in the constructor time.
I wonder if it is possible to dynamically insert/remove WizardSteps based on
user input ? (wicket-1.3.6)

Thanks a lot.

Re: Dynamically insert/remove WizardSteps based on user input ?

by Pedro H. O. dos Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I guess:
http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/apidocs/org/apache/wicket/extensions/wizard/dynamic/IDynamicWizardStep.html

On Tue, Nov 3, 2009 at 6:38 PM, smallufo <smallufo@...> wrote:

> Hi all :
>
> It seems the WizardSteps are added into WizardModel in the constructor
> time.
> I wonder if it is possible to dynamically insert/remove WizardSteps based
> on
> user input ? (wicket-1.3.6)
>
> Thanks a lot.
>



--
Pedro Henrique Oliveira dos Santos

RE: Dynamically insert/remove WizardSteps based on user input ?

by Frank Prins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey smallufo,

Yes, definitely, that's the way.
I am just working on quite a huge wizard right now, using the dynamic
approach.
The just assign the first step to the model, and in each of the steps
you implement next() in which you can create the next step, based on
choices made by the user.
Works like a charm!

have fun with it :-)
Frank

> -----Original Message-----
> From: Pedro Santos [mailto:pedrosans@...]
> Sent: dinsdag 3 november 2009 23:12
> To: users@...
> Subject: Re: Dynamically insert/remove WizardSteps based on user input
?
>
> I guess:
> http://wicket.apache.org/docs/wicket-1.3.2/wicket-
>
extensions/apidocs/org/apache/wicket/extensions/wizard/dynamic/IDynamicW
izardS
> tep.html
>
> On Tue, Nov 3, 2009 at 6:38 PM, smallufo <smallufo@...> wrote:
>
> > Hi all :
> >
> > It seems the WizardSteps are added into WizardModel in the
constructor
> > time.
> > I wonder if it is possible to dynamically insert/remove WizardSteps
based

> > on
> > user input ? (wicket-1.3.6)
> >
> > Thanks a lot.
> >
>
>
>
> --
> Pedro Henrique Oliveira dos Santos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...