We do one of two things:
(1) set page at the end of the listener, like you mention
(2) use a page flow engine--add a navigate(String action) method to your
base page and plug in whatever action to page name mapper you like.
----- Forwarded by Christian Hall/Technology/Equifax on 07/10/2002 07:24 AM
-----
|--------+---------------------------------------------->
| | "MacLeod, Kenny" |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | eforge.net |
| | |
| | |
| | 07/09/2002 11:57 AM |
| | |
|--------+---------------------------------------------->
>--------------------------------------------------------------------------------------------------|
|
|
| To: "'[EMAIL PROTECTED]'"
|
| <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: [Tapestry-developer] Setting page component after form
submission |
|
|
>--------------------------------------------------------------------------------------------------|
Folks,
In the Tapestry examples, after a form submission, the next page to be
displayed is set using the IRequestCycle.setPage() method. Is this the
recommended way of doing things?
My usual pattern is to process to form submission (usually a POST), then
redirect the browser to another page. Does setPage() perform a redirect,
or
does it just render the page directly?
Also, is there any way of specifying the next page in the cycle within the
page spec file, rather than in the java? I'd much rather not pollute the
Java with page flow like that, I really think it belongs in the .jwc file.
cheers
kenny
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer
Protect yourself against identity theft with Equifax Credit Watch. Visit
http://www.creditalert.equifax.com.
This message contains information from Equifax Inc. which may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited. If you have
received this transmission in error, please notify by e-mail
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer