Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 14601 invoked from network); 4 Oct 2005 16:42:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2005 16:42:37 -0000 Received: (qmail 72667 invoked by uid 500); 4 Oct 2005 16:42:32 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 72616 invoked by uid 500); 4 Oct 2005 16:42:31 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 72602 invoked by uid 99); 4 Oct 2005 16:42:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 09:42:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [132.230.150.3] (HELO atlas.informatik.uni-freiburg.de) (132.230.150.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 09:42:34 -0700 Received: from eradior.informatik.uni-freiburg.de ([132.230.152.161]) by atlas.informatik.uni-freiburg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.51) id 1EMprf-0005Rv-It for users@cocoon.apache.org; Tue, 04 Oct 2005 18:42:03 +0200 Message-ID: <4342B0DB.3060207@guschtel.de> Date: Tue, 04 Oct 2005 18:42:03 +0200 From: Christoph Hermann User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: flow problem with reload button References: In-Reply-To: X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Antonio Fiol Bonn�n schrieb: Hello, > I am having strange problems (described below) when hitting the "reload" > button on my browser when displaying form B in scenario described below. > Could anyone please help me understand why? > > I am using a 2-form approach to editing an XML file, one for a first > level view and a deeper detail editing view. > formLista = createForm(formDefinitionA, bindingURIA, datos); > > while(true) { > > // display form A > formLista.showForm(displayPipelineLista); > > // ********************************* > // If I hit reload when form B is displayed, execution is resumed here, > but formLista is undefined > // Why is it "null"? Shouldn't it be restored to the previous value > because of my hitting "Reload". > // ********************************* I had the same problem here with flow but a light different approach: i.e. var form; form = new Form(...); form.showForm(..:); // hitting reload here crashes with an NPE form = new Form(someOtherForm); form.showForm(...); My solution was to create a second variable "form2" to display the second form. I think your problem is somewhere along formLista = null; // Prepare form B, using the ID for the new or edited record formFicha = createForm(formDefinitionB, bindingURIBPrefix + idRestaurante, datos); Try changing this to another Variable. HTH Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org