How to stay at current tab in primefaces wizard in refresh?

jQuery UI Widgets
Post Reply
teddu
Posts: 1
Joined: 04 Aug 2016, 08:44

04 Aug 2016, 09:07

Hi,
Sorry if this question has already been asked. I couldn't find this question. I have created a primefaces wizard this way:

Code: Select all

<p:wizard id="transaction-history-wizard" showNavBar="false" flowListener="#{myBean.onFlowProcess}" 
		 	widgetVar="transactionWizard">
		 	
	          <p:tab id="first" titleStyleClass="hidden-wizard-title">
                  </p:tab>
                  <p:tab id="second" titleStyleClass="hidden-wizard-title">
                  </p:tab>
</p:wizard>
And below is code in my backing bean (it has view access scope)

Code: Select all

 public String onFlowProcess( FlowEvent event ){
        return event.getNewStep();
    }
My problem is that when I refresh the page while I am staying on second tab. Then after page refresh, first tab screen shows up instead of second tab. How can I make it stay at current tab only?

Miguel Cubells
Posts: 99
Joined: 25 Feb 2015, 11:02

19 Sep 2016, 04:39

I think you should ask this question on the PrimeFaces (JSF) forum, instead of Prime UI...
PrimeFaces 6.1 / PF Extensions 6.1.1 / Atmosphere 2.4.3
Apache Mojarra 2.2.13+
WildFly 10.1.0.Final

BuckRogers
Posts: 4
Joined: 23 Sep 2016, 10:42

23 Sep 2016, 11:08

Not only that it is wrong sub-forum, to do a refresh during a wizard process is fundamentally wrong. If you want to support the user when he/she
performs refresh by mistake, well then you don't want only to keep the selected tab.

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests