tehapo/WizardsForVaadin

Dynamic Step Generation

Opened this issue · 1 comments

Hi,

I've got a wizard, which ought to determine the steps (and the number of steps) dynamically, depending on a combo box, which the user fills in the first step.

What I have tried:

  • Add the first step to the wizard.
  • In the first steps onAdvance method (where I know the value of the combo box), I add more steps, as required.

However, that isn't really satisfying, because the "Finish" button, rather than the "Next" button is enabled when the first step is active. Do you have any suggestions on how to achieve my target?

Thanks,

Jochen

Hi,

maybe as a workaround you could use the get methods to change the captions of buttons to better match your situation?

getNextButton()
getBackButton()
getFinishButton()
getCancelButton()