JamesBranam's Blog
JSF Breadcrumbs Component
Hi all,
It's Sunday, and I'd like to use this opportunity to tell you about another component: the Breadcrumbs component. The Breadcrumbs component is a container for hyperlink components separated by right angle brackets. The initial component has a single hyperlink that points to the current page.
A typical use of Breadcrumbs is to show the user's location in an application by displaying the path through the application's page hierarchy to the current page. Each page in the path is a link that can be used to navigate to other locations in the application.
A Breadcrumbs component typically contains Hyperlink Components. If you drop a Hyperlink component on a Breadcrumbs component, it is added to the list at the end. You can see these components displayed as nodes under a Breadcrumbs component in the Navigator window after you add a Breadcrumbs component to your page.
Alternatively, you can populate the list of hyperlinks by setting the pages property to point to an array or list of Hyperlink objects that you manage in a JavaBeans object. To bind the pages property to an object or data provider, right-click the component in the page and choose Bind to Data.
You can set the Breadcrumbs component's properties in the component's Properties window.
That's it for today. See you tomorrow.
-James
Posted at 10:18AM Aug 10, 2008 by branajam in NetBeans |