<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">

    <!--
        Composant colonne Tag réutilisable - DRY/WOU
        Usage :
        <ui:include src="/templates/components/columns/column-tag.xhtml">
            <ui:param name="headerText" value="Type"/>
            <ui:param name="value" value="#{item.typeLibelle}"/>
            <ui:param name="severity" value="info"/>
            <ui:param name="icon" value="pi pi-building"/>
            <ui:param name="sortBy" value="#{item.type}"/>
            <ui:param name="width" value="150px"/>
        </ui:include>
    -->

    <p:column headerText="#{headerText}" 
              sortBy="#{sortBy}"
              styleClass="#{empty centered or centered ? 'text-center' : ''}"
              style="#{not empty width ? 'width: ' += width : ''}">
        <p:tag value="#{value}" 
               severity="#{empty severity ? 'info' : severity}"
               icon="#{icon}"/>
    </p:column>
</ui:composition>

