On 11/11/2009, at 10:23 AM, Paul Hoadley wrote:

<wo:if condition="$shouldRedirect"> <wo:ERXRedirect component="$redirectTo" /> </wo:if>
  <wo:else>
    <wo:form multipleSubmit="true"> ... </wo:form>
  </wo:else>

But clearly I can't. I want to handle it _in that page_. (Obviously I could make the preceding page choose, but ideally I want a solution where the present page decides whether to redirect itself or not.) What's the WO way to do this? I just can't see it.

Yep, not enough coffee.

        public void appendToResponse(WOResponse response, WOContext context) {
                if (shouldRedirect()) {
                        
response.setContent(redirectTo().generateResponse().content());
                } else {
                        super.appendToResponse(response, context);
                }
        }


Nothing to see here.


--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to