WizardsForVaadin icon indicating copy to clipboard operation
WizardsForVaadin copied to clipboard

Dynamic Step Generation

Open jochenw opened this issue 8 years ago • 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

jochenw avatar Apr 05 '16 10:04 jochenw

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()

tehapo avatar Apr 18 '16 13:04 tehapo