Hi folks,
when redirecting to a WOLongResponsePage in 'appendToResponse' by using
the WOResponses 'setContend' method (as shown below), the
WOLongResponsePage does not work properly. The page is shown indeed and
'performAction' is called once (by the WOLongResponse mechanism), but
the page does not refresh, it just loads and that's it:
public void appendToResponse(WOResponse response, WOContext context) {
MyLongResponsePage page = (MyLongResponsePage
)pageWithName("MyLongResponsePage ");
response.setContent(page.generateResponse().content());
}
If i use e.g. a Hyperlink on a page that is already loaded that
performs an action (as shown below) wich in turn is returning the same
WOLongResponsePage, the page works as expected:
public WOComponent showMyLongResponsePage() {
MyLongResponsePage page = (MyLongResponsePage
)pageWithName("MyLongResponsePage ");
return page;
}
Now it would be helpful to know if there is another way for redirecting
to a WOLongResponsePage (in a way that it is working), or if my two
lines of code are faulty or not.
As workaround, i put a WOMetaRefresh component on the
WOLongResponsePage, which refreshes the page in a defined interval. It
works, but seems to be needless per se.
Regards
Andri
_______________________________________________
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]