Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 14534 invoked from network); 29 Dec 2003 14:02:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Dec 2003 14:02:44 -0000 Received: (qmail 41797 invoked by uid 500); 29 Dec 2003 14:02:38 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 41746 invoked by uid 500); 29 Dec 2003 14:02:37 -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 41730 invoked from network); 29 Dec 2003 14:02:37 -0000 Received: from unknown (HELO mout.perfora.net) (217.160.230.41) by daedalus.apache.org with SMTP; 29 Dec 2003 14:02:37 -0000 Received: from [217.160.230.50] (helo=smtp.perfora.net) by mout.perfora.net with esmtp (Exim 3.35 #1) id 1Aaxyg-0007gR-00 for dev@cocoon.apache.org; Mon, 29 Dec 2003 09:02:38 -0500 Received: from [208.185.179.12] (helo=reverycodes.com) by smtp.perfora.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1Aaxyg-00044x-00 for dev@cocoon.apache.org; Mon, 29 Dec 2003 09:02:38 -0500 Message-ID: <3FF033F1.9000100@reverycodes.com> Date: Mon, 29 Dec 2003 09:02:25 -0500 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cocoon Developers Subject: Broke car selector sample [Fwd: cvs commit: cocoon-2.1/src/blocks/woody/samples/forms car-db.xml] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I broke car selector sample :-) Problem is that when you assign / bind initial values to the form, events are not fired, and form ends up in the inconsistent state. Quick hack I used to fix this was to make Form.fireWidgetEvents method public and call it directly from the flow/action to make sure that all is ok; but this is clearly a hack and I'd like to hear "expert opinion" on the subject. Thanks, Vadim -------- Original Message -------- Subject: cvs commit: cocoon-2.1/src/blocks/woody/samples/forms car-db.xml Date: 29 Dec 2003 13:47:31 -0000 From: vgritsenko@apache.org Reply-To: dev@cocoon.apache.org To: cocoon-2.1-cvs@apache.org function selectCar() { var form = new Form("forms/carselector_form.xml"); + form.getWidget("make").setValue(cocoon.parameters.defaultMake); form.showForm("carselector-display-pipeline"); cocoon.request.setAttribute("carselectorform", form.getWidget()); cocoon.sendPage("carselector-success-pipeline.xsp");