Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 27714 invoked from network); 16 Aug 2010 08:10:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 08:10:47 -0000 Received: (qmail 64753 invoked by uid 500); 16 Aug 2010 08:10:46 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 64124 invoked by uid 500); 16 Aug 2010 08:10:43 -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 64116 invoked by uid 99); 16 Aug 2010 08:10:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 08:10:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 08:10:40 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7G8AIBd012234 for ; Mon, 16 Aug 2010 08:10:18 GMT Message-ID: <30318825.360681281946218851.JavaMail.jira@thor> Date: Mon, 16 Aug 2010 04:10:18 -0400 (EDT) From: "Werner Punz (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2881) Server state saving with two forms, ajax and normal request is broken In-Reply-To: <7318000.349221281790225599.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2881?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 898821#action_12898821 ]=20 Werner Punz commented on MYFACES-2881: -------------------------------------- Ok Martin, first of all sorry to be so harsh in my responses, I hope you ha= ve not gotten it wrong.=20 I have issued the patch for myfaces so that you can turn on the update all = forms either globally or locally here is an example: function sendQueuedFormFixup(event) { for (var cnt =3D 0; cnt !=3D 500; cnt++) { jsf.ajax.request(document.getElementById('queued'), eve= nt, {execute:'@this', render:'refresh', myfaces:{no_portlet_env: true}}); } return false; } if you add myfaces:{no_portlet_env: true} then you can use the better views= tate fixup.=20 You also can turn it on globally by adding following script part after your= jsf.js include //initialize the namespace window.myfaces =3D window.myfaces ||=C2=A0{}; myfaces.config =3D myfaces.config ||=C2=A0{}; //set the config part myfaces.config.no_portlet_env =3D true; But I think there might be a solution which might fix the issue for both my= faces and mojarra over a listener. I will prototype it out and if it works out I will add that code as well. B= ecause as I said, this code here fixes the issue for myfaces but it wont wo= rk for mojarra which also has the same issue. > Server state saving with two forms, ajax and normal request is broken > --------------------------------------------------------------------- > > Key: MYFACES-2881 > URL: https://issues.apache.org/jira/browse/MYFACES-2881 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 2.0.1, 2.0.2-SNAPSHOT > Environment: myfaces 2.0.1 or trunk;=20 > Reporter: Martin Ko=C4=8D=C3=AD > Priority: Blocker > Fix For: 2.1.0 > > > Use simple xhtml with:=20 > > > > > > > > > > then: > 1) click "Partial" button 20x or more > 2) click "Full" button > -> ViewExpiredException appears. If you click "Partial" 19 times or less = ViewExpiredException does not appear.=20 > 20 is default for NUMBER_OF_VIEW_IN_SESSION - it you set this param to 1 = you reproduce this problem with two clicks. Maybe there is more simple test= case for reproducing this issue but I didn't find it yet.=20 > This bug is present in 2.0.1 already and is related to server state savin= g: > myfaces 2.0.1: > PSS + server: failed > PSS + client: ok > FSS + server: failed > FSS + client: ok > myfaces 2.0.2-SNAPSHOT: > PSS + server: failed > PSS + client: ok > FSS + server: failed > FSS + client: ok > Very likely this causes MYFACES-2877 too.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.