PrimeFaces Stack

It is a navigation component that mimics the stacks features. The <p:stack> component is used to create stack of in JSF application.

Example

Here, in the following example, we are implementing <p:stack> component. This example contains the following files.

JSF File

// stack.xhtml

Output:

PrimeFaces Stack 1

When click on folder, it pops the elements.

PrimeFaces Stack 2