I'm having a problem where depending on the screen you come from the initial state of the wizard is different. e.g. from part A initial state is 1, from part B initial state is 2. I have managed to get the initial state/tab to work, however whenever i close the dialog on state x, this is preserved even after clearing the form with
Code: Select all
RequestContext context = RequestContext.getCurrentInstance();
context.reset("dialogWidgetVar");
Code: Select all
PF('wizardvar').loadStep(PF('wizardvar').cfg.steps [0], true)
My problem is that because I don't know the initial state of the wizard on close, how can i completely reset the wizard on close rather than just setting the next step.
Thanks