Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

15.3.5. p:image

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 15.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

 
 
  Published under the terms of the Open Publication License Design by Interspire