When my wizard finishes, I want it to go back to the first step so it can be launched correctly next time. But the problem is if I do this, it will show the first step for a moment before it disappears.
<a4j:commandButton value="#{bundle.Finish}" action="#{desktopBean.saveDesktop}" id="finishBtn" oncomplete="Richfaces.hideModalPanel(windowId);"/>
public String saveDesktop() { .... wizardPanel.setZIndex(0); //I tried with different values. return "finish"; }