A generic grouping component for JSF components,
panel has features such as toggling, closing, a built-in pop-up menu, and AJAX event listeners. In this recipe, we will create panels that can be closed and toggled, with custom action menus and AJAX behaviors added.
A basic definition of the panel would be as follows:
<p:panel id="simple" header="PrimeFaces" footer="The Cookbook"> <h:outputText value="Open Source Primefaces is the leading JSF Component Suite in the industry, which is adopted widely and being used in production ready projects around the globe." /> </p:panel>
The preceding definition of the panel will be rendered as shown in the following image:
footer attributes ...