Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 41759 invoked from network); 16 Jan 2004 16:16:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Jan 2004 16:16:30 -0000 Received: (qmail 49027 invoked by uid 500); 16 Jan 2004 16:16:21 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 49000 invoked by uid 500); 16 Jan 2004 16:16:20 -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 48986 invoked from network); 16 Jan 2004 16:16:20 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 16 Jan 2004 16:16:20 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AhWdy-0002dJ-00 for ; Fri, 16 Jan 2004 17:16:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhWdx-0002d4-00 for ; Fri, 16 Jan 2004 17:16:21 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AhWdx-0003mJ-00 for ; Fri, 16 Jan 2004 17:16:21 +0100 From: Sylvain Wallez Subject: Re: Submitting form in onchange event Date: Fri, 16 Jan 2004 17:16:20 +0100 Lines: 42 Message-ID: References: <40071582.4030400@upaya.co.uk> <40073CE6.4010805@gmx.de> <40078DA3.8040800@upaya.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: fr, en, en-us In-Reply-To: <40078DA3.8040800@upaya.co.uk> Sender: news 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 Upayavira wrote: > Joerg Heinicke wrote: > >> On 15.01.2004 23:34, Upayavira wrote: >> >>> I'd like to have an on-change event actually submit the form, rather >>> than just execute the javascript code. >>> >>> How can I do this? >>> >>> Otherwise, the on-value-changed javascript doesn't have access to >>> the local variables of the main flowscript, which I need to >>> repopulate my form for redisplay. (I know I can get hold of the >>> bizObject from the request attribute, but it all seems rather hard >>> work to use it there. There's an elegance I'm missing). >> >> >> You changed the woody stylesheet for the radio buttons, so you >> already came across @submit-on-change. Why not using the same for a >> field? > > > Because it goes back to the server, yes, but doesn't actually leave > the showForm function, which is what I'm after. Currently, the only widgets that can potentially automatically exit showForm are widgets. "Potentially" since of course the form is redisplayed if validation is asked and fails. The Form object has a endProcessing(boolean redisplayForm) method that could be use in the to achieve this. Sylvain (currently swamped) -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com