O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying hierarchical data using the Tree component

The Tree component can be used to represent hierarchical data in a tree structure.

A Tree component can be created using the org.primefaces.model.TreeNode instance as the root of the tree. PrimeFaces provides a default implementation of the TreeNode interface org.primefaces.model.DefaultTreeNode.DefaultTreeNode.

In our TechBuzz application, we would like to display PostTitle in the tree structure using the Year/Month/PostTitle hierarchy.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required