Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 28701 invoked from network); 15 Mar 2005 13:25:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Mar 2005 13:25:25 -0000 Received: (qmail 97127 invoked by uid 500); 15 Mar 2005 13:25:23 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 96789 invoked by uid 500); 15 Mar 2005 13:25:22 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 96774 invoked by uid 99); 15 Mar 2005 13:25:22 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Mar 2005 05:25:20 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 81E861BAE3 for ; Tue, 15 Mar 2005 14:13:55 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29564-10 for ; Tue, 15 Mar 2005 14:13:53 +0100 (CET) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 047521BADF for ; Tue, 15 Mar 2005 14:13:53 +0100 (CET) Message-ID: <4236E238.40403@apache.org> Date: Tue, 15 Mar 2005 14:25:12 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [cforms] Widget states in request-scoped forms References: <4235F7BC.9000605@apache.org> <20050314234358.GB23086@localhost> In-Reply-To: <20050314234358.GB23086@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Tim Larson wrote: >On Mon, Mar 14, 2005 at 09:44:44PM +0100, Reinhard Poetz wrote: > > >>Today I've tried to run a form that uses the widget state "INVISIBLE" and >>when the form state is saved in the request. (my experiments are based on >>the form1 action example) >> >>If I use the event framework to change the state from ACTIVE to INVISIBLE, >>toggling works, but the value of the changed widget gets lost. >> >>Looking at the samples I can't figure out ... >> >>- How can a widget have the state "INVISIBLE"? Where is this information >>stored, or better from where is it read? >> >>- If I'm right and the described behavior (losing the values of INVISIBLE >>widgets) is a bug, how can it be fixed? Any ideas? >> >> > >I do not know if it is the same bug or not, but I re-encountered the bug >that made me temporarily change fireEvents to be public so it could be >called from flowscript (iirc it was reverted when I forgot how to trigger >the bug.) > That's me who reverted this as I did not understood the need for making it public. >The bug is that the firing of events sometimes get delayed >until after showForm returns, causing very strange behavior. Sorry I >have not had time yet to track down the source of the problem. > > Ok. Let's wait until 2.1.7 is out and we will then add some code to check if there are some buffered when there normally should be none, and throw an exception in that case. That should quickly show where the problem is :-) Sylvain -- Sylvain Wallez Anyware Technologies http://apache.org/~sylvain http://anyware-tech.com Apache Software Foundation Member Research & Technology Director