I didn't hear anything on this. At first, I tried creating a
DirectLink component and set its scheme and port and then return an
ILink from that from my form listeners. However, despite setting
scheme to http, it ignores the scheme and stays https.
So, I then decided to just throw a RedirectException with the
rendered URL like this:
link.getAbsoluteURL("http", null, 80, null, true);
That seems to work. Good idea, bad idea? Why didn't returning the
ILink with a scheme of http work?
Norman Franke
ASD, Inc.
On Nov 5, 2007, at 6:10 PM, Norman Franke wrote:
I have a Tapestry 4.1.3 form that I submit via https (using the
port and scheme parameters for the form.) This seems to work great.
However, I then want to switch back to plain old http. While I can
throw a redirect exception with an external URL, this doesn't
preserve page state. In my case, if the user entered incorrect
information, I need to display a message which is then lost.
How can I get Tapestry to return a normal http version after the
submit (currently I'm just returning null from my listener)?
Norman Franke
ASD, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]