0% found this document useful (0 votes)
94 views1 page

PrimeFaces Showcase Galeria Basica3

The document defines a PhotoService class that initializes and provides a list of Photo objects. The PhotoService adds 15 Photo objects to an ArrayList, each with a full image path, thumbnail path, description, and title. The getPhotos method then returns the list of photos.

Uploaded by

jbsysatm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views1 page

PrimeFaces Showcase Galeria Basica3

The document defines a PhotoService class that initializes and provides a list of Photo objects. The PhotoService adds 15 Photo objects to an ArrayList, each with a full image path, thumbnail path, description, and title. The getPhotos method then returns the list of photos.

Uploaded by

jbsysatm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Get Started Themes Templates Resources v12.0.

0-SNAPSHOT

Galleria
Search by name...
 SERVER API
Compare
 CLIENT API
Galleria is a content gallery component.
ContentFlow

Cropper

Graphic Image

Galleria

Basic

Programmatic

Indicator

Thumbnail

Navigator

Responsive

FullScreen

AutoPlay

Caption

Media

PhotoCam

Switch

Video

FILE
 
Upload

basic.xhtml GalleriaView.java PhotoService.java Photo.java

1 @Named
2 @ApplicationScoped
3 public class PhotoService {
4
5 private List<Photo> photos;
6
7 @PostConstruct
8 public void init() {
9 photos = new ArrayList<>();
10
11 photos.add(new Photo("demo/images/galleria/galleria1.jpg", "demo/images/galleria/galleria1s.jpg",
12 "Description for Image 1", "Title 1"));
13 photos.add(new Photo("demo/images/galleria/galleria2.jpg", "demo/images/galleria/galleria2s.jpg",
14 "Description for Image 2", "Title 2"));
15 photos.add(new Photo("demo/images/galleria/galleria3.jpg", "demo/images/galleria/galleria3s.jpg",
16 "Description for Image 3", "Title 3"));
17 photos.add(new Photo("demo/images/galleria/galleria4.jpg", "demo/images/galleria/galleria4s.jpg",
18 "Description for Image 4", "Title 4"));
19 photos.add(new Photo("demo/images/galleria/galleria5.jpg", "demo/images/galleria/galleria5s.jpg",
20 "Description for Image 5", "Title 5"));
21 photos.add(new Photo("demo/images/galleria/galleria6.jpg", "demo/images/galleria/galleria6s.jpg",
22 "Description for Image 6", "Title 6"));
23 photos.add(new Photo("demo/images/galleria/galleria7.jpg", "demo/images/galleria/galleria7s.jpg",
24 "Description for Image 7", "Title 7"));
25 photos.add(new Photo("demo/images/galleria/galleria8.jpg", "demo/images/galleria/galleria8s.jpg",
26 "Description for Image 8", "Title 8"));
27 photos.add(new Photo("demo/images/galleria/galleria9.jpg", "demo/images/galleria/galleria9s.jpg",
28 "Description for Image 9", "Title 9"));
29 photos.add(new Photo("demo/images/galleria/galleria10.jpg", "demo/images/galleria/galleria10s.jpg",
30 "Description for Image 10", "Title 10"));
31 photos.add(new Photo("demo/images/galleria/galleria11.jpg", "demo/images/galleria/galleria11s.jpg",
32 "Description for Image 11", "Title 11"));
33 photos.add(new Photo("demo/images/galleria/galleria12.jpg", "demo/images/galleria/galleria12s.jpg",
34 "Description for Image 12", "Title 12"));
35 photos.add(new Photo("demo/images/galleria/galleria13.jpg", "demo/images/galleria/galleria13s.jpg",
36 "Description for Image 13", "Title 13"));
37 photos.add(new Photo("demo/images/galleria/galleria14.jpg", "demo/images/galleria/galleria14s.jpg",
38 "Description for Image 14", "Title 14"));
39 photos.add(new Photo("demo/images/galleria/galleria15.jpg", "demo/images/galleria/galleria15s.jpg",
40 "Description for Image 15", "Title 15"));
41 }
42
43 public List<Photo> getPhotos() {
44 return photos;
45 }
46 }

PrimeFaces 12.0.0 by PrimeTek   

You might also like