O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the TagCloud component

TagCloud displays a collection of Tags with different zoom levels using strengths associated with each Tag.

To use the TagCloud component we need to create an object of type org.primefaces.model.tagcloud.TagCloudModel. Each Tag will be represented by an instance of org.primefaces.model.tagcloud.TagCloudItem interface. PrimeFaces provides default implementations of DefaultTagCloudModel, DefaultTagCloudItem for TagCloudModel, and TagCloudItem respectively. Each TagCloudItem contains label, url, and strength properties. The tag strength can be between one and five.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required