• 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
Creating working wocontext()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating working wocontext()


  • Subject: Creating working wocontext()
  • From: Klaus Berkling <email@hidden>
  • Date: Fri, 14 Apr 2017 13:15:36 -0700


Hi Gang.

I’m sending a scheduled email (ERQSJob) using a WOComponent as the message content.  When the email is sent the links in the component page are wrong.  I tried the different  pageWithName and instantiatePage methods and they work for non-scheduled messages.

I can create a wocontext from a fake worequest:

WORequest fakeRequest = new ERXRequest("GET", "https://apps.berkling.us/.......woa", "HTTP 1.1", null, null, null);
WOContext context = new ERXWOContext(fakeRequest);

I generate the links with completeURLWithRequestHandlerKey() to an direct action. I also have links to web resources like images. The urls will look like ‘http://localhost:…https://apps.berkling.us/…’, prepending the localhost part.

Anyone tackle this before?


Klaus Berkling
www.berkling.us | Photography




 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating working wocontext()
      • From: Samuel Pelletier <email@hidden>
  • Prev by Date: Re: Set case insensitive unique index with ERXMigrations
  • Next by Date: Re: Set case insensitive unique index with ERXMigrations
  • Previous by thread: Re: Set case insensitive unique index with ERXMigrations
  • Next by thread: Re: Creating working wocontext()
  • Index(es):
    • Date
    • Thread