TagCloud

TagCloud displays a collection of tags with different strengths. Items can either be used as regular links or as command items via optional select ajax behavior event.

Source

<h:form>
                
    <p:growl id="msg" showDetail="true" />

    <p:tagCloud model="#{tagCloudBean.model}">
        <p:ajax event="select" update="msg" listener="#{tagCloudBean.onSelect}" />
    </p:tagCloud>

</h:form>