You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2022/05/20 18:19:30 UTC
[myfaces] branch 2.2.x updated: MYFACES-4283 Backport to 2.2 (#266)
This is an automated email from the ASF dual-hosted git repository.
melloware pushed a commit to branch 2.2.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/2.2.x by this push:
new 2057fa454 MYFACES-4283 Backport to 2.2 (#266)
2057fa454 is described below
commit 2057fa454234b9752a52271b2792450330e5dbca
Author: Melloware <me...@gmail.com>
AuthorDate: Fri May 20 14:19:26 2022 -0400
MYFACES-4283 Backport to 2.2 (#266)
---
api/src/main/java/javax/faces/component/UIForm.java | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/api/src/main/java/javax/faces/component/UIForm.java b/api/src/main/java/javax/faces/component/UIForm.java
index ad628a097..c7bbe134e 100755
--- a/api/src/main/java/javax/faces/component/UIForm.java
+++ b/api/src/main/java/javax/faces/component/UIForm.java
@@ -117,6 +117,20 @@ public class UIForm extends UIComponentBase implements NamingContainer, UniqueId
getTransientStateHelper().putTransient(PropertyKeys.submitted, submitted);
//_submitted = submitted;
}
+
+ @Override
+ public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException {
+ if (isPrependId()) {
+ String baseClientId = getClientId(context);
+
+ // skip if the component is not a children of the UIForm
+ if (!clientId.startsWith(baseClientId)) {
+ return false;
+ }
+ }
+
+ return super.invokeOnComponent(context, clientId, callback);
+ }
@Override
public void processDecodes(FacesContext context)