pick up your next page using cycle.getPage() method rather than constructing one yourself. Tapestry pools page instances, so you should let it handle this stuff.
Regards Malcolm
public void formSubmit(IRequestCycle cycle) {
MyPage nextPage = (MyPage) cycle.getPage("MyPage");
nextPage.setValue(someValue);
cycle.setPage(nextPage);
}
From: [EMAIL PROTECTED] (Bj�rn Weide)
To: [EMAIL PROTECTED]
Subject: [Tapestry-developer] creating pages
Date: Sat, 26 Oct 2002 14:24:34 +0200
Hello,
I am a newbie in tapestry but since there is no list-archive available, i ask here for advise:
I want to create a new page and set some attributes in this page. Eg: I have a Page Main with an attribute value and I redirect to this page via cycle.setPage("Main") as described in the docs. Is there any way to set the attribute on creation of the page; maybe so:
Page nextPage = new Main();
nextPage.setValue(something);
cycle.setPage(nextPage);
Please help.
Thanks and Greets,
Bj�rn Weide
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer
_________________________________________________________________
Unlimited Internet access -- and 2 months free!� Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer
