Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2740

DynamicWizardModel: setActiveStep is called twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.4
    • 1.4.7, 1.5-M1
    • wicket-extensions
    • None

    Description

      DynamicWizardModel constructor calls setActiveStep(startStep); Thus, the Initial step onInit method is called where as the form is not already created. When calling Wizard init() method, there is a call to DynamicWizardModel reset() method that leads to a second Initial step onInit method call. This time, the form is created but I have exceptions since I have already added the components of my first step on the first call to onInit.

      Removing the call to setActiveStep(startStep); in the DynamicWizardModel constructor solves the bug (note that the activeStep is correctly initialized by the reset method call).

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            vmathon Vincent MATHON
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: