myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch 2.2.x updated: MYFACES-4333
Date Wed, 29 Apr 2020 13:51:18 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/2.2.x by this push:
     new e96ad06  MYFACES-4333
e96ad06 is described below

commit e96ad062f124f4fc7ede8b38edcc9ace9fe81d71
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Wed Apr 29 15:51:10 2020 +0200

    MYFACES-4333
---
 .../apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java  | 4 +++-
 1 file changed, 3 insertions(+), 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 b3df1b7..bf93b05 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
@@ -2620,7 +2620,9 @@ public class FaceletViewDeclarationLanguage extends FaceletViewDeclarationLangua
         // Per spec section 11.1.3, the default value for the partial state saving feature
needs
         // to be true if 2.0, false otherwise.
 
-        partialStateSavingDefault = (facesVersion == null) || Float.parseFloat(facesVersion)
>= 2;
+        partialStateSavingDefault = facesVersion == null
+                || facesVersion.trim().isEmpty()
+                || Float.parseFloat(facesVersion) >= 2;
 
         // In jsf 2.0 this code evolve as PartialStateSaving feature
         //_buildBeforeRestore = _getBooleanParameter(context, PARAM_BUILD_BEFORE_RESTORE,
false);


Mime
View raw message