Results 1 to 3 of 3

Thread: Dynamic WizardPage Sequence

  1. #1
    Join Date
    Aug 2004
    Location
    Northridge, CA
    Posts
    151

    Default Dynamic WizardPage Sequence

    Is it possible to have dynamic WizardPages in a Wizard? I was looking at http://javaprog.net/jwizz/ and it has this concept of Step" similar to "WizardPage". If a step wants to define dynamic steps, it would implement "StepModelCustomizer" interface, and provides Step[] getPendingSteps().

    In my case I have have a wizard where few of the WizardPage decide which page comes next depending on some selections made by user. For example if I am importing data into database and depending on the type DataSource, I need decide what follows the current page.

    Is it possible to do that with wizard package?

    Amad

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    I don’t use any of the Wizard support but I suspect what you would do is register all possible wizard pages with your Wizard implementation and then use the page level getNextPage() and getPreviousPage() methods to customize the page ordering. It looks to me that any kind of ordering is possible simply by overiding these 2 methods.

    Ollie

  3. #3
    Join Date
    Aug 2004
    Posts
    9

    Default

    In addition, I do this by manipulating the _targetX parameter in the jsp to decide which page is the target page.

Similar Threads

  1. Replies: 3
    Last Post: Mar 9th, 2011, 10:43 AM
  2. Replies: 2
    Last Post: Jul 14th, 2007, 09:05 AM
  3. Replies: 2
    Last Post: Oct 23rd, 2005, 02:32 AM
  4. Replies: 0
    Last Post: Jun 8th, 2005, 06:55 AM
  5. Replies: 3
    Last Post: Nov 6th, 2004, 10:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •