PrimeFaces User’s Guide
3.7 Button Button is an extension to the standard h:button component with skinning capabilities.
Info Tag
button
Component Class
org.primefaces.component.button.Button
Component Type
org.primefaces.component.Button
Component Family
org.primefaces.component
Renderer Type
org.primefaces.component.ButtonRenderer
Renderer Class
org.primefaces.component.button.ButtonRenderer
Attributes Name
Default
Type
Description
id
null
String
Unique identifier of the component.
rendered
TRUE
Boolean
Boolean value 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.
widgetVar
null
String
Name of the client side widget.
value
null
Object
Value of the component than can be either an EL expression of a literal text.
outcome
null
String
Used to resolve a navigation case.
includeViewParams
FALSE
Boolean
Whether to include page parameters in target URI
fragment
null
String
Identifier of the target page which should be scrolled to.
disabled
FALSE
Boolean
Disables button.
accesskey
null
String
Access key that when pressed transfers focus to button.
alt
null
String
Alternate textual description.
dir
null
String
Direction indication for text that does not inherit directionality. Valid values are LTR and RTL.
image
null
String
Style class for the button icon. (deprecated: use icon)
39