Re: [Wicket-user] Add another WizardStep conditionally
> Yes I have seen UserRolesStep, however in that sample you need to > know the type and number of WizardSteps to add beforehand. > > In my use case I will not know how many of a particular item that a > user will be adding at runtime. In that case, you should use a custom IWizardModel. I based the model on 'wizard framework': https://wizard-framework.dev.java.net/. That framework has a branching version you might want to take a look at. The model Wicket's wizard uses is pretty different now from the original inspiration, but maybe still close enough to adopt the branching version. Contributions are welcome of course :) Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add another WizardStep conditionally
Hi Eelco, thanks for your reply. Yes I have seen UserRolesStep, however in that sample you need to know the type and number of WizardSteps to add beforehand. In my use case I will not know how many of a particular item that a user will be adding at runtime. I hope this makes things a bit clearer. Thanks again. Later, DeSoca On 19-Aug-06, at 1:38 PM, [EMAIL PROTECTED] wrote: > Message: 5 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add another WizardStep conditionally
That's how I do it as well. The solution I wanted was to not have to create the step if I wasn't going to use it, but evaluate() works fine. On 8/19/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: On 8/19/06, De Soca <[EMAIL PROTECTED]> wrote:> Hi all,>> I have tried adding a WizardStep conditionally at runtime a few> different ways with limited success. >> Can someone recommend the best approach to accomplish this?Did you see UserRolesStep in the NewUserWizard example? That's aconditional step;wicket.extensions.wizard.WizardModel.ICondition#evaluate () does thework:/** * @see wicket.extensions.wizard.WizardModel.ICondition#evaluate() */public boolean evaluate(){ return assignRoles;}So if assignRoles was set to true due to a model change by an earlierstep, this step will be available. If false, it will be skipped. There are a couple more people that have been working with thiscomponent (Nick?). Maybe they wanna share their thoughts.> I have based my approach on the Wizard samples supplied, which is> probably one of the best components I have found in any framework to > assist with mundane CRUD operations.Glad you like it. Unfortunately, it got a bit less elegant in 2.0.Still workable, but the steps and actual Wicket components had to beseparated as you can't create components without a parent (upfront) in 2.0 anymore.Eelco-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add another WizardStep conditionally
On 8/19/06, De Soca <[EMAIL PROTECTED]> wrote: > Hi all, > > I have tried adding a WizardStep conditionally at runtime a few > different ways with limited success. > > Can someone recommend the best approach to accomplish this? Did you see UserRolesStep in the NewUserWizard example? That's a conditional step; wicket.extensions.wizard.WizardModel.ICondition#evaluate() does the work: /** * @see wicket.extensions.wizard.WizardModel.ICondition#evaluate() */ public boolean evaluate() { return assignRoles; } So if assignRoles was set to true due to a model change by an earlier step, this step will be available. If false, it will be skipped. There are a couple more people that have been working with this component (Nick?). Maybe they wanna share their thoughts. > I have based my approach on the Wizard samples supplied, which is > probably one of the best components I have found in any framework to > assist with mundane CRUD operations. Glad you like it. Unfortunately, it got a bit less elegant in 2.0. Still workable, but the steps and actual Wicket components had to be separated as you can't create components without a parent (upfront) in 2.0 anymore. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user