PrimeFaces Showcase Imagen
PrimeFaces Showcase Imagen
0-SNAPSHOT
GraphicImage
Search by name...
SERVER API
Messages
GraphicImage is capable of presenting images that are created programatically at runtime or images stored in a database.
StaticMessage
Audio
Barcode
Compare
ContentFlow
Cropper
Graphic Image
Galleria
Media
PhotoCam
Switch
Video
FILE
JFreeChart
Upload
Download
GraphicText
graphicImage.xhtml GraphicImageView.java
1 <div class="card">
2 <h5>Static Image</h5>
3 <p:graphicImage name="images/nature/nature4.jpg" library="demo"/>
4 </div>
5
6 <div class="card">
7 <h5>JFreeChart</h5>
8 <p:graphicImage value="#{graphicImageView.chart}"/>
9 <p:graphicImage value="#{graphicImageView.chartAsByteArray}"/>
10 <p:graphicImage value="#{graphicImageView.chartAsStream}"/>
11 </div>
12
13 <div class="card">
14 <h5>JFreeChart rendered as DataURI / ViewScoped support</h5>
15 <p:graphicImage value="#{graphicImageView.chart}" stream="false"/>
16 <p:graphicImage value="#{graphicImageView.chartAsByteArray}" stream="false"/>
17 <p:graphicImage value="#{graphicImageView.chartAsStream}" stream="false"/>
18 </div>
19
20 <div class="card">
21 <h5>JFreeChart optimized without buffering</h5>
22 <p:graphicImage value="#{graphicImageView.chartWithoutBuffering}"/>
23 <p:graphicImage value="#{graphicImageView.chartWithoutBuffering}" stream="false"/>
24 </div>
25
26 <div class="card">
27 <h5>GraphicText</h5>
28 <p:graphicImage value="#{graphicImageView.graphicText}"/>
29 </div>