You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2024/04/08 13:27:05 UTC
(myfaces) 01/01: MYFACES-4659: 2.3-nextInvert AUTOCOMPLETE_OFF_VIEW_STATE config param
This is an automated email from the ASF dual-hosted git repository.
melloware pushed a commit to branch melloware-4659
in repository https://gitbox.apache.org/repos/asf/myfaces.git
commit 814152fc6af779d0d87e0ae944834684d96064cf
Author: Melloware <me...@gmail.com>
AuthorDate: Mon Apr 8 09:26:59 2024 -0400
MYFACES-4659: 2.3-nextInvert AUTOCOMPLETE_OFF_VIEW_STATE config param
---
.../org/apache/myfaces/renderkit/html/HtmlResponseStateManager.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlResponseStateManager.java b/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlResponseStateManager.java
index 4cfe244fd..6a7cb731e 100755
--- a/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlResponseStateManager.java
+++ b/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlResponseStateManager.java
@@ -56,10 +56,10 @@ public class HtmlResponseStateManager extends MyfacesResponseStateManager
private static final String SESSION_TOKEN = "oam.rsm.SESSION_TOKEN";
/**
- * Add autocomplete="off" to the view state hidden field. Enabled by default.
+ * Add autocomplete="off" to the view state hidden field. Disabled by default.
*/
@JSFWebConfigParam(since="2.2.8, 2.1.18, 2.0.24", expectedValues="true, false",
- defaultValue="true", group="state")
+ defaultValue="false", group="state")
public static final String INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE =
"org.apache.myfaces.AUTOCOMPLETE_OFF_VIEW_STATE";
@@ -349,7 +349,7 @@ public class HtmlResponseStateManager extends MyfacesResponseStateManager
if (_autoCompleteOffViewState == null)
{
_autoCompleteOffViewState = WebConfigParamUtils.getBooleanInitParameter(facesContext.getExternalContext(),
- INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE, true);
+ INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE, false);
}
return _autoCompleteOffViewState;
}