From a6b440894ccf02d23e51b975927810b37a5b9d66 Mon Sep 17 00:00:00 2001 From: Volodymyr Siedlecki Date: Fri, 13 Dec 2024 20:18:20 -0500 Subject: [PATCH] Fix MYFACES-4117 --- .../config/annotation/AnnotationConfigurator.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/AnnotationConfigurator.java b/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/AnnotationConfigurator.java index cb1fa7690bd..ddcfd3d6140 100644 --- a/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/AnnotationConfigurator.java +++ b/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/AnnotationConfigurator.java @@ -131,9 +131,19 @@ protected FacesConfigImpl createFacesConfig(Map, Set if (comp.createTag()) { + String tagName = comp.tagName(); // MYFACES-4117 + if (tagName != null && tagName.length() > 0) + { + //Ok + } + else // + { + tagName = clazz.getSimpleName(); + tagName = Character.toLowerCase(tagName.charAt(0)) + tagName.substring(1); + } facesConfig.addComponentTagDeclaration(value, new ComponentTagDeclarationImpl(value, - comp.namespace(), comp.tagName())); + comp.namespace(), tagName)); } } }