<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 Nom avec sous-titre réutilisable - DRY/WOU
        Usage :
        <ui:include src="/templates/components/columns/column-name-with-subtitle.xhtml">
            <ui:param name="headerText" value="Nom"/>
            <ui:param name="name" value="#{item.nom}"/>
            <ui:param name="subtitle" value="#{item.typeLibelle}"/>
            <ui:param name="sortBy" value="#{item.nom}"/>
            <ui:param name="filterBy" value="#{item.nom}"/>
        </ui:include>
    -->

    <p:column headerText="#{empty headerText ? 'Nom' : headerText}" 
              sortBy="#{sortBy}" 
              filterBy="#{filterBy}">
        <h:outputText value="#{name}" styleClass="font-bold"/>
        <ui:fragment rendered="#{not empty subtitle}">
            <br/>
            <h:outputText value="#{subtitle}" styleClass="text-sm text-500"/>
        </ui:fragment>
    </p:column>
</ui:composition>

