Skip to content

Commit

Permalink
Fix #5522: Revert "Improve timing of firing PreRemoveFromViewEvent wrt
Browse files Browse the repository at this point in the history
children #5445"

This reverts commit 6fb231a.
  • Loading branch information
BalusC committed Oct 29, 2024
1 parent 76f1b4e commit 277c14d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1831,8 +1831,9 @@ private static void publishAfterViewEvents(FacesContext context, Application app

private static void disconnectFromView(FacesContext context, Application application, UIComponent component) {

application.publishEvent(context, PreRemoveFromViewEvent.class, component);
component.setInView(false);

component.compositeParent = null;
if (component.getChildCount() > 0) {
List<UIComponent> children = component.getChildren();
for (UIComponent c : children) {
Expand All @@ -1846,8 +1847,6 @@ private static void disconnectFromView(FacesContext context, Application applica
}
}

application.publishEvent(context, PreRemoveFromViewEvent.class, component);
component.compositeParent = null;
}

// --------------------------------------------------------- Private Classes
Expand Down

0 comments on commit 277c14d

Please sign in to comment.