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.