<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 bouton succès réutilisable (WOU/DRY)
    -->
    
    <ui:fragment rendered="#{empty rendered or rendered}">
        <ui:fragment rendered="#{empty outcome}">
            <p:commandButton 
                value="#{value}"
                icon="#{icon}"
                update="#{update}"
                onclick="#{onclick}"
                disabled="#{not empty disabled and disabled}"
                styleClass="ui-button-success #{not empty outlined and outlined ? 'ui-button-outlined' : ''} #{not empty styleClass ? styleClass : ''}"
                title="#{title}" />
        </ui:fragment>
        <ui:fragment rendered="#{not empty outcome}">
            <p:button 
                value="#{value}"
                icon="#{icon}"
                outcome="#{outcome}"
                styleClass="ui-button-success #{not empty outlined and outlined ? 'ui-button-outlined' : ''} #{not empty styleClass ? styleClass : ''}"
                title="#{title}" />
        </ui:fragment>
    </ui:fragment>
</ui:composition>

