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 2026/06/12 09:27:47 UTC
(myfaces) branch 4.1.x updated: #995 fix broken ViewScope in AJAX requests
This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch 4.1.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/4.1.x by this push:
new fa7b237cc #995 fix broken ViewScope in AJAX requests
fa7b237cc is described below
commit fa7b237cc6710deedd8415310e14d80bfd9a64ec
Author: tandraschko <ta...@apache.org>
AuthorDate: Fri Jun 12 11:27:37 2026 +0200
#995 fix broken ViewScope in AJAX requests
---
.../apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java b/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
index 84eb0c770..2cc872a76 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
@@ -1896,7 +1896,7 @@ else if (stateWriter.isStateWrittenWithoutWrapper())
// SerializedViewCollection, so the normal "evict view -> destroy its view
// scope" path never runs and the beans would linger until the session
// expires. Destroy the view scope now (publishes PreDestroyViewMapEvent).
- if (!view.isTransient())
+ if (!view.isTransient() && !context.getPartialViewContext().isAjaxRequest())
{
Map<String, Object> viewMap = view.getViewMap(false);
if (viewMap instanceof ViewScopeProxyMap