Wizard reset issues

UI Components for JSF
Post Reply
elliott50
Posts: 1
Joined: 25 Oct 2016, 15:01

25 Oct 2016, 15:08

Hi,

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");
I have also seen that

Code: Select all

PF('wizardvar').loadStep(PF('wizardvar').cfg.steps [0], true)
works if i only have the 1 initial state.

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 46 guests