Skip to content

Commit

Permalink
Merge #5311 from 3.0 into 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Sep 8, 2023
2 parents f6e1295 + 2066346 commit 0921daa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private static void appendIds(FacesContext facesContext, UIComponent component,

boolean first = true;

UIComponent composite = (ajaxBehavior instanceof RetargetedAjaxBehavior) ? UIComponent.getCompositeComponentParent(component) : null;
UIComponent composite = UIComponent.getCompositeComponentParent(component);
String separatorChar = String.valueOf(getSeparatorChar(facesContext));

for (String id : ids) {
Expand All @@ -311,7 +311,7 @@ private static void appendIds(FacesContext facesContext, UIComponent component,

boolean clientResolveableExpression = expression.equals("@all") || expression.equals("@none") || expression.equals("@form") || expression.equals("@this");

if (composite != null && (expression.equals("@this") || expression.startsWith("@this" + separatorChar))) {
if (composite != null && (ajaxBehavior instanceof RetargetedAjaxBehavior) && (expression.equals("@this") || expression.startsWith("@this" + separatorChar))) {
expression = expression.replaceFirst("@this", separatorChar + composite.getClientId(facesContext));
clientResolveableExpression = false;
}
Expand Down

0 comments on commit 0921daa

Please sign in to comment.