Results 1 to 6 of 6

Thread: AbstractWizardFormController with dynamic wizard pages

  1. #1
    Join Date
    Nov 2005
    Posts
    5

    Default AbstractWizardFormController with dynamic wizard pages

    I have a wizard (multi step) form. The user's first page determines how many pages the wizard will have and the content of some of the pages. In the first wizard page the user selects a product, and in following pages he needs to define product details. For a product that is a car there will be wizard page with car details (e.g. model, manufacturer), while for another product there may be diffeernt fields, or maybe even more than one product details page.
    I have 2 issues with this problem:
    1. How to programatically control the number of pages. It also affects the scrolling (since the number of pages changes, I would like to have something like _target+1 or target-1 intead of target2)
    2. How to handle the command where only after the first page was input, I can know the command classes for the next wizard pages

    I can do this myself using simple forms, but if there is a way to do it with the AbstractWizardFormController that would be better.

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    I assume the object models are non-changeable at run time (i.e. you cannot introduce a "boat") in which case I would have seperate instances of AWFC per model.

    Would this not work?

  3. #3
    Join Date
    Nov 2005
    Posts
    5

    Default Need something better

    I have a link in the "home" page for "Create Product". This link is to the first page of the wizard, which asks about the product category. The second page (and on) are defined by category. If cannot have a a seperate AWFC for each product, because I have a single link leading in, and the first page is already part of the wizard.
    An to your question, no, I do not have dynamic product types added.

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    I understand.

    Why not simply move the product selection *out* of the wizard, then you can have an AWFC per product. The product selection simply redirects to the appropriate URL

  5. #5
    Join Date
    Nov 2005
    Posts
    5

    Default

    Yes, I could do this, but it's more hassle: I have to save the command of the first screen (which includes the product selection) on the session until the next Wizard completes, need to know when to clear it (on cancel or just exiting the wizard by clicking anoyther like), and what to do when it's not there, all thins that the AW does. I thought there may be a way I could use the AW to save this work, but if not, I will do it by logically chaining forms.
    Thanks for the reply

  6. #6
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    You might also be interested in webflow. It is *very* cool, and is ideal for age flows that AWFC cannot handle.

Posting Permissions

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