Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C15E1731A for ; Wed, 21 Jan 2015 23:15:37 +0000 (UTC) Received: (qmail 83194 invoked by uid 500); 21 Jan 2015 23:15:36 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 83149 invoked by uid 500); 21 Jan 2015 23:15:36 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 82743 invoked by uid 99); 21 Jan 2015 23:15:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2015 23:15:36 +0000 Date: Wed, 21 Jan 2015 23:15:36 +0000 (UTC) From: "marco antonio lima (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MYFACES-3949) javax.faces.ViewState autocomplete MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-3949?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] marco antonio lima updated MYFACES-3949: ---------------------------------------- Status: Patch Available (was: Open) > javax.faces.ViewState autocomplete > ---------------------------------- > > Key: MYFACES-3949 > URL: https://issues.apache.org/jira/browse/MYFACES-3949 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.2.4 > Environment: Chrome (Windows & Linux) > Reporter: Dan =C3=98sterberg > > We have a JSF application where we mainly use ViewScoped beans, and add n= o-cache headers for all JSF pages. Navigating back to a previous page (with= the browser) correctly recreates the beans, and renders new HTML, with a n= ew ViewState ID. But... Chrome "autocompletes" _some_ of the hidden ViewSta= te inputs, overriding the new value with an old ViewState value. We have ve= rified this in the browser dev-tools by looking at the response, which is c= orrect, and the resulting HTML which is not. > In short, this seems like a known autocomplete issue, which Mojarra has f= ixed since 1.2, by adding 'autocomplete=3D"off"' to the hidden ViewState in= put. Most browsers skip autocompleting hidden fields (in most situations), = but apparently this is not always the case. > We can add 'pa:autocomplete=3D"off"' explicitly to the whole form, as a c= ase-by-case workaround for this issue. But to our understanding, a full fix= would be if MyFaces rendered "autocomplete=3D'off'" for its hidden javax.f= aces.ViewState inputs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)