chore: taglib PrimeFaces Freya + logo + cleanup OrganisationDetailBean

- META-INF/primefaces-freya.taglib.xml : tags PrimeFaces Freya
- src/main/webapp/resources/images/unionflow-logo.png : logo app
- OrganisationDetailBean : cleanup mineur (2 lignes)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
dahoud
2026-04-21 12:43:56 +00:00
parent deaa3b8f96
commit 401a72458b
3 changed files with 60 additions and 2 deletions

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd" version="2.0">
<namespace>http://primefaces.org/freya</namespace>
<tag>
<description><![CDATA[Menu is a navigation component for Freya Layout.]]></description>
<tag-name>menu</tag-name>
<component>
<component-type>org.primefaces.component.FreyaMenu</component-type>
<renderer-type>org.primefaces.component.FreyaMenuRenderer</renderer-type>
</component>
<attribute>
<description><![CDATA[Unique identifier of the component in a namingContainer.]]></description>
<name>id</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<description><![CDATA[Boolean value to specify the rendering of the component, when set to false component will not be rendered.]]></description>
<name>rendered</name>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
<attribute>
<description><![CDATA[An el expression referring to a server side UIComponent instance in a backing bean.]]></description>
<name>binding</name>
<required>false</required>
<type>jakarta.faces.component.UIComponent</type>
</attribute>
<attribute>
<description><![CDATA[Name of the client side widget.]]></description>
<name>widgetVar</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<description><![CDATA[A menu model instance to create menu programmatically.]]></description>
<name>model</name>
<required>false</required>
<type>org.primefaces.model.menu.MenuModel</type>
</attribute>
<attribute>
<description><![CDATA[Inline style of the main container element.]]></description>
<name>style</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<description><![CDATA[Style class of the main container element.]]></description>
<name>styleClass</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<description><![CDATA[Delay to wait in milliseconds before closing menu on mouse leave. Default is 250.]]></description>
<name>closeDelay</name>
<required>false</required>
<type>java.lang.Integer</type>
</attribute>
</tag>
</facelet-taglib>

View File

@@ -88,7 +88,6 @@ public class OrganisationDetailBean implements Serializable {
if (organisation != null) { if (organisation != null) {
String libelle = typeCatalogueService.resolveLibelle(organisation.getTypeOrganisation()); String libelle = typeCatalogueService.resolveLibelle(organisation.getTypeOrganisation());
organisation.setTypeOrganisationLibelle(libelle); organisation.setTypeOrganisationLibelle(libelle);
organisation.setTypeLibelle(libelle);
} }
} catch (Exception e) { } catch (Exception e) {
LOG.errorf(e, "Erreur lors du chargement de l'organisation"); LOG.errorf(e, "Erreur lors du chargement de l'organisation");
@@ -132,7 +131,6 @@ public class OrganisationDetailBean implements Serializable {
if (organisation != null) { if (organisation != null) {
String libelle = typeCatalogueService.resolveLibelle(organisation.getTypeOrganisation()); String libelle = typeCatalogueService.resolveLibelle(organisation.getTypeOrganisation());
organisation.setTypeOrganisationLibelle(libelle); organisation.setTypeOrganisationLibelle(libelle);
organisation.setTypeLibelle(libelle);
} }
modeEdition = false; modeEdition = false;
errorHandler.showSuccess("Succès", "Organisation modifiée avec succès."); errorHandler.showSuccess("Succès", "Organisation modifiée avec succès.");

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB