Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 56606 invoked from network); 30 Jan 2006 17:26:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jan 2006 17:26:50 -0000 Received: (qmail 1144 invoked by uid 500); 30 Jan 2006 17:26:44 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 1133 invoked by uid 500); 30 Jan 2006 17:26:43 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 1122 invoked by uid 99); 30 Jan 2006 17:26:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 09:26:43 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.142.33.4] (HELO mxout2.cac.washington.edu) (140.142.33.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 09:26:43 -0800 Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout2.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k0UHQMYB017571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 30 Jan 2006 09:26:22 -0800 X-Auth-Received: from [140.142.107.92] (ajg.cac.washington.edu [140.142.107.92]) (authenticated authid=ajgnet) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k0UHQIL7008113 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 30 Jan 2006 09:26:22 -0800 Message-ID: <43DE4ACD.2060501@u.washington.edu> Date: Mon, 30 Jan 2006 09:20:13 -0800 From: Aj Gregory User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Tapestry users Subject: Rendering form submit response with the same page. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have a page which I want to use to display a form and some results after the form is submitted. After the form listener does some work I want to set a value on the page and show the same page again. To do this I created a listener on the page class and inject a page of the same type as the current page and set the property that I want: @InjectPage("TestPage") public abstract TestPage getTestPage(); public abstract Object getObject(); public abstract void setObject(Object o); public IPage doSubmit() { TestPage tp = getTestPage(); tp.setObject(...); return tp; } This doesn't work. From what I can tell tapestry doesn't create a new instance of the page and instead gets the same instance that it used to handle the form submit with all of the values reset. I tried just calling setObject() on the current instance and returning "this" but that doesn't work either. Any suggestions? I'm doing this within a portlet in case that matters. Thanks -Aj --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org