You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2023/08/23 09:55:27 UTC

[myfaces] branch 2.3.x updated: MYFACES-4625

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch 2.3.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3.x by this push:
     new 6d75c1475 MYFACES-4625
6d75c1475 is described below

commit 6d75c1475a6230555540141c4af11c37e5653f54
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Wed Aug 23 11:55:19 2023 +0200

    MYFACES-4625
---
 .../java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java b/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
index 5ddaecd72..a1e0cef63 100644
--- a/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
+++ b/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
@@ -103,7 +103,7 @@ public class DefaultRestoreViewSupport implements RestoreViewSupport
         _initialized = true;
     }
 
-    public void processComponentBinding(FacesContext facesContext, UIComponent component)
+    public void processComponentBinding(FacesContext facesContext, UIComponent root)
     {
         // JSF 2.0: Old hack related to t:aliasBean was fixed defining a event that traverse
         // whole tree and let components to override UIComponent.processEvent() method to include it.
@@ -114,10 +114,11 @@ public class DefaultRestoreViewSupport implements RestoreViewSupport
         try
         {
             facesContext.getAttributes().put(SKIP_ITERATION_HINT, Boolean.TRUE);
+            facesContext.getApplication().publishEvent(facesContext, PostRestoreStateEvent.class, root);
 
             VisitContext visitContext = (VisitContext) getVisitContextFactory().
                     getVisitContext(facesContext, null, VISIT_HINTS);
-            component.visitTree(visitContext, new RestoreStateCallback());
+            root.visitTree(visitContext, new RestoreStateCallback());
         }
         finally
         {