Skip to content

Commit

Permalink
Merge #5312 from 4.0 into 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Sep 8, 2023
2 parents cade998 + 4374385 commit c88283c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import jakarta.faces.event.AbortProcessingException;
import jakarta.faces.event.AjaxBehaviorListener;
import jakarta.faces.event.BehaviorEvent;
import jakarta.faces.render.ClientBehaviorRenderer;

/**
* Basically represents {@code <f:ajax>} which is retargeted by {@code <cc:clientBehavior>} in {@code AjaxHandler} and checked in {@code AjaxBehaviorRenderer}.
Expand All @@ -47,7 +48,8 @@ public RetargetedAjaxBehavior(AjaxBehavior retargeted) {

@Override
public String getScript(ClientBehaviorContext behaviorContext) {
return retargeted.getScript(behaviorContext);
ClientBehaviorRenderer renderer = getRenderer(behaviorContext.getFacesContext());
return renderer != null ? renderer.getScript(behaviorContext, this) : null;
}

@Override
Expand Down

0 comments on commit c88283c

Please sign in to comment.