<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">
    
    <!-- 
        Wrapper de champ de formulaire réutilisable (WOU/DRY)
        Usage: <ui:include src="/templates/components/forms/form-field-wrapper.xhtml">
                  <ui:param name="id" value="fieldId" />
                  <ui:param name="label" value="Label du champ" />
                  <ui:define name="input">
                      <p:inputText id="#{id}" value="#{bean.property}" styleClass="w-full" />
                  </ui:define>
                </ui:include>
    -->
    
    <div class="field">
        <p:outputLabel for="#{id}" value="#{label}" rendered="#{not empty label}" />
        <ui:insert name="input" />
        <p:message for="#{id}" />
    </div>
</ui:composition>

