bohmber commented on code in PR #6031:
URL: https://github.com/apache/myfaces-tobago/pull/6031#discussion_r1955884952


##########
tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUICommand.java:
##########
@@ -74,4 +70,34 @@ public String getFieldId(final FacesContext facesContext) {
       return getClientId(facesContext);
     }
   }
+  private static class ParentOfCommandVisitor implements VisitCallback {
+    private boolean parentOfCommands = false;
+    private final FacesContext facesContext;
+    private final String clientId;
+
+    private ParentOfCommandVisitor(FacesContext facesContext, String clientId) 
{
+      this.facesContext = facesContext;
+      this.clientId = clientId;
+    }
+
+    @Override
+    public VisitResult visit(VisitContext context, UIComponent target) {
+      if (!target.getClientId(facesContext).equals(clientId)
+          && (target instanceof Visual && !((Visual) target).isPlain()
+          || target.getRendererType() != null && 
target.getRendererType().startsWith("jakarta.faces"))) {

Review Comment:
   Good point



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@myfaces.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to