From 3ded66f3ea40c23ffa5d0f7a2111cdafb542000a Mon Sep 17 00:00:00 2001 From: dahoud Date: Sat, 29 Nov 2025 22:05:01 +0000 Subject: [PATCH] fix(client): Suppression de actionListener problematique dans les composants button - Retrait de actionListener dans button-primary.xhtml - Retrait de actionListener dans button-icon.xhtml - Retrait de actionListener dans button-warning.xhtml - Retrait de actionListener dans button-info.xhtml - Correction des expressions styleClass pour eviter les erreurs EL Ces composants utilisent maintenant uniquement action ou onclick. Pour les actions dans DataTables, utiliser action-button-* ou p:commandButton direct. Resout l erreur Identity actionListener was null and was unable to invoke --- .../resources/templates/components/buttons/button-icon.xhtml | 3 +-- .../resources/templates/components/buttons/button-info.xhtml | 3 +-- .../templates/components/buttons/button-primary.xhtml | 3 +-- .../templates/components/buttons/button-warning.xhtml | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-icon.xhtml b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-icon.xhtml index 9d42a88..a32a4c1 100644 --- a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-icon.xhtml +++ b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-icon.xhtml @@ -21,11 +21,10 @@ diff --git a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-info.xhtml b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-info.xhtml index d3fd104..7593915 100644 --- a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-info.xhtml +++ b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-info.xhtml @@ -14,11 +14,10 @@ value="#{value}" icon="#{icon}" action="#{action}" - actionListener="#{actionListener}" update="#{update}" onclick="#{onclick}" disabled="#{not empty disabled and disabled}" - styleClass="ui-button-info #{not empty outlined and outlined ? 'ui-button-outlined' : ''} #{styleClass}" + styleClass="ui-button-info #{not empty outlined and outlined ? 'ui-button-outlined' : ''} #{not empty styleClass ? styleClass : ''}" title="#{title}" /> diff --git a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-primary.xhtml b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-primary.xhtml index 334c706..47d3707 100644 --- a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-primary.xhtml +++ b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-primary.xhtml @@ -24,11 +24,10 @@ value="#{value}" icon="#{icon}" action="#{action}" - actionListener="#{actionListener}" update="#{update}" onclick="#{onclick}" disabled="#{not empty disabled and disabled}" - styleClass="ui-button-primary #{styleClass}" + styleClass="ui-button-primary #{not empty styleClass ? styleClass : ''}" title="#{title}" /> diff --git a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-warning.xhtml b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-warning.xhtml index 531df4f..5133af9 100644 --- a/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-warning.xhtml +++ b/unionflow-client-quarkus-primefaces-freya/src/main/resources/META-INF/resources/templates/components/buttons/button-warning.xhtml @@ -14,11 +14,10 @@ value="#{value}" icon="#{icon}" action="#{action}" - actionListener="#{actionListener}" update="#{update}" onclick="#{onclick}" disabled="#{not empty disabled and disabled}" - styleClass="ui-button-warning #{not empty outlined and outlined ? 'ui-button-outlined' : ''} #{styleClass}" + styleClass="ui-button-warning #{not empty outlined and outlined ? 'ui-button-outlined' : ''} #{not empty styleClass ? styleClass : ''}" title="#{title}" />