<p:steps> in Primefaces

UI Components for JSF
Post Reply
yahia88
Posts: 50
Joined: 19 Nov 2014, 01:04

22 Jun 2018, 13:00

Hi,
Please, can i find some tutorial to describe how using <p:steps> menu and how we can navigate from step to step
I did'nt find such detailed tutorial

Thanks

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

23 Jun 2018, 19:43

The steps are just normal menu items that you use for navigation. You control the highlighted step by the active index property like...

Code: Select all

<p:steps activeIndex="1">
You can use an EL expression to determine what step you are on like...

Code: Select all

<p:steps activeIndex="#{mySteps.activeIndex}">
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

yahia88
Posts: 50
Joined: 19 Nov 2014, 01:04

05 Jul 2018, 18:18

Thank you @Melloware for your answer

But when How can I add navigation from one step to another , i mean a form in the first step and continue to the second step from the first one

Thanks

dodolins
Posts: 18
Joined: 24 May 2017, 06:35

06 Jul 2018, 15:35

yahia88 wrote:
05 Jul 2018, 18:18
Thank you @Melloware for your answer

But when How can I add navigation from one step to another , i mean a form in the first step and continue to the second step from the first one

Thanks

Call a method, change the value activeIndex and redirect to another page.

yahia88
Posts: 50
Joined: 19 Nov 2014, 01:04

08 Jul 2018, 21:36

dodolins wrote:
06 Jul 2018, 15:35
yahia88 wrote:
05 Jul 2018, 18:18
Thank you @Melloware for your answer

But when How can I add navigation from one step to another , i mean a form in the first step and continue to the second step from the first one

Thanks

Call a method, change the value activeIndex and redirect to another page.
It's obligatory to do it with different pages instead of in the same page and change it with <p:panel ?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests