• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Redirecting to a WOLongResponsePage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redirecting to a WOLongResponsePage


  • Subject: Redirecting to a WOLongResponsePage
  • From: "Andri vonAllmen" <email@hidden>
  • Date: Wed, 26 Nov 2008 08:19:02 +0100

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Eclipse and Resource Urls
  • Next by Date: Re: Eclipse and Resource Urls
  • Previous by thread: Re: Eclipse and Resource Urls
  • Next by thread: WOCheckBoxList...what happeend?
  • Index(es):
    • Date
    • Thread