p:image inserts an image into the document. Images can be be loaded from the classpath or from the web application context using the resource attribute.
<p:image resource="/jboss.jpg" />
Resources can also be dynamically generated by application code. The imageData attribute can specify a value binding expression whose value is a java.awt.Image object.
<p:image imageData="#{images.chart}" />
resource
The location of the image resource to be included. Resources should be relative to the document root of the web application.
imageData
A method expression binding to an application-generated image.
rotation
The rotation of the image in degrees.
height
The height of the image.
width
The width of the image.
alignment
The alignment of the image. (see Section 14.8.2, “Alignment Values” for possible values)
alt
Alternative text representation for the image.
indentationLeft
indentationRight
spacingBefore
The blank space to be inserted before the element.
spacingAfter
The blank space to be inserted after the element.
widthPercentage
initialRotation
dpi
scalePercent
The scaling factor (as a percentage) to use for the image. This can be expressed as a single percentage value or as two percentage values representing separate x and y scaling percentages.
wrap
underlying