O'Reilly logo

JSF 1.2 Components by Ian Hlavats

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

Using tree components

The ICEfaces component library provides a robust tree component that can be used to render hierarchical data. By default, the<ice:tree> tag renders a tree component without any node icons, however, custom node icons can also be defined.

Using the default tree node icons

In this example, we bind the ICEfaces tree component to a model property in our backing bean that represents a set of files and folders on the file system.

<ice:form> <ice:tree value="#{backingBean.treeModel}" var="item" hideRootNode="#{false}" hideNavigation="#{false}"> <ice:treeNode> <f:facet name="content"> <ice:panelGroup style="display: inline"> <ice:outputText value="#{item.userObject.text}" /> </ice:panelGroup> </f:facet> </ice:treeNode> </ice:tree> ...

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