I want to have a component that looks like a button, but instead of text it should contain an image. Because the standard button does not offer this functionality, I tried to u
There are a couple ways you can add an image to a commandButton:
Using the image attribute
Absolute or relative URL of the image to be displayed for this button. If specified, this "input" element will be of type "image". Otherwise, it will be of the type specified by the "type" property with a label specified by the "value" property.
Use CSS
.button {
background: white url('button.gif') no-repeat top;
}