<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">
    
    <!-- 
        Composant checkbox booléenne réutilisable (WOU/DRY)
        Usage: <ui:include src="/templates/components/forms/form-field-boolean.xhtml">
                  <ui:param name="id" value="desEnfants" />
                  <ui:param name="label" value=" A des enfants déclarés" />
                  <ui:param name="value" value="#{bean.filtres.desEnfants}" />
                  <ui:param name="update" value=":formResultats:dtResultats @(.search-summary)" />
                </ui:include>
    -->
    
    <div class="field">
        <p:selectBooleanCheckbox id="#{id}" value="#{value}">
            <p:ajax update="#{not empty update ? update : ':formResultats:dtResultats @(.search-summary)'}" />
        </p:selectBooleanCheckbox>
        <p:outputLabel for="#{id}" value="#{label}" />
    </div>
</ui:composition>

