Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Javatpoint Logo
Javatpoint Logo

PrimeFaces Toolbar

It is a horizontal grouping component which is used to form a toolbar with commands and other content. PrimeFaces provides <p:toolbar> component to create toolbar in JSF application. It is useful to create tool based web application. It also has various attributes that are tabled below.

Toolbar Attributes

Attribute Default value Type Description
id null String It is an unique identifier of the component.
rendered true Boolean It is used to specify the rendering of the component.
binding null Object An el expression that maps to a server side UIComponent instance in a backing bean
style null String It is used to set inline style of the container element.
styleClass null String It is used to set style class of the container. element.

Example

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

JSF File

// toolBar.xhtml

ManagedBean

// ToolBar.java

Output:

PrimeFaces CommandLink 1





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA