pnicolucci commented on code in PR #484: URL: https://github.com/apache/myfaces/pull/484#discussion_r1081647278
########## impl/src/main/java/org/apache/myfaces/component/validate/ValidateWholeBeanComponent.java: ########## @@ -55,6 +62,79 @@ public void addValidator(Validator validator) // No-op. It does not make sense to allow additional validators to be installed. } + + @Override + public void encodeBegin(FacesContext context) throws IOException + { + UIComponent parent = this.getParent(); + + // find a parent form + while (parent != null & !(parent instanceof jakarta.faces.component.UIForm)) Review Comment: @volosied does this help? https://github.com/apache/myfaces/blob/main/api/src/main/java/org/apache/myfaces/core/api/shared/ComponentUtils.java#L79 -- 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