Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 76505 invoked from network); 1 Dec 2008 06:58:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 06:58:47 -0000 Received: (qmail 93893 invoked by uid 500); 1 Dec 2008 06:58:52 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 93882 invoked by uid 500); 1 Dec 2008 06:58:52 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 93871 invoked by uid 99); 1 Dec 2008 06:58:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2008 22:58:52 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 06:57:22 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L72jQ-0006kN-GT for users@tapestry.apache.org; Sun, 30 Nov 2008 22:58:08 -0800 Message-ID: <20766944.post@talk.nabble.com> Date: Sun, 30 Nov 2008 22:58:08 -0800 (PST) From: Gerry Chen To: users@tapestry.apache.org Subject: Re: The Form Submit can't Work! In-Reply-To: <20765310.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kongxingzhu001@163.com References: <20765310.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thank Everyone! My Problem is resolved by myself. Because the method name is error.The Form Submit Event use "onSubmit+From+FormID". Note:There is "From" not "Form"........:-/ The Form Submit Gerry Chen wrote: > > Hi Everyone: > > I'm a new Tapestry user. I'm interesting in developing Web Program with > Tapestry Framwork.But I have some problem in my project. > This question is the Form Submit Event can't be invoked When I click > "Export File" Button in my Page. > > My Program looks like this: > > SearchGoodsInfo.tml > > This tml file hava tow Forms. > > > t:value="Find" class="button_bg"/> > > > > t:value="Export File" class="button_bg"/> > > > SearchGoodsInfo.java > > The Event handler in java file like this: > > StreamResponse onSubmitFormDownloadFile() > { > > ........ > StreamResponse responseDown = new XlsFileAttachmet(insFile); > return responseDown; > > } > > The Extension .java file only have a form submit Event with "Export > File" Button.I use below code to handle another button. That is working > finely. > > @OnEvent(value="selected",component = "Btn_Search") > public void onSearch() > { > ......... > } > > > But the onSubmitFormDownloadFile method can not work!How can I catch the > "DownloadFile" form submit event. Thanks! > > > -- View this message in context: http://www.nabble.com/The-Form-Submit-can%27t-Work%21-tp20765310p20766944.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org