From 1f272e5e6842f21137a37a7730fef0f2889ec160 Mon Sep 17 00:00:00 2001 From: Bauke Scholtz Date: Sat, 9 Sep 2023 11:54:19 -0400 Subject: [PATCH] Composite component can't find reparented child when it's in turn in another NamingContainer within the composite such as h:form or h:dataTable; upon code analysis I found a line which seemed completely unnecessary so I have removed it and it works again for me. https://github.com/eclipse-ee4j/mojarra/issues/5214 --- .../facelets/tag/faces/ComponentTagHandlerDelegateImpl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/impl/src/main/java/com/sun/faces/facelets/tag/faces/ComponentTagHandlerDelegateImpl.java b/impl/src/main/java/com/sun/faces/facelets/tag/faces/ComponentTagHandlerDelegateImpl.java index 4a9b9c1637..3a58883cce 100644 --- a/impl/src/main/java/com/sun/faces/facelets/tag/faces/ComponentTagHandlerDelegateImpl.java +++ b/impl/src/main/java/com/sun/faces/facelets/tag/faces/ComponentTagHandlerDelegateImpl.java @@ -462,10 +462,7 @@ protected UIComponent findChild(FaceletContext ctx, UIComponent parent, String t protected UIComponent findReparentedComponent(FaceletContext ctx, UIComponent parent, String tagId) { UIComponent facet = parent.getFacets().get(UIComponent.COMPOSITE_FACET_NAME); if (facet != null) { - UIComponent newParent = facet.findComponent((String) parent.getAttributes().get(tagId)); - if (newParent != null) { - return ComponentSupport.findChildByTagId(ctx.getFacesContext(), newParent, tagId); - } + return findChild(ctx, facet, tagId); } return null; }