• 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
Re: Component based email without a context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Component based email without a context


  • Subject: Re: Component based email without a context
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 29 Oct 2011 22:13:22 -0700

I use this in tests:

testContext = new WOContext(new WORequest("GET", "http://localhost/cgi-bin/WebObjects";, "HTTP/1.1", null, null, null));

Not sure offhand what additional information might be needed to generate your email content.

Chuck


On 2011-10-29, at 10:09 PM, Paul Hoadley wrote:

> On 29/10/2011, at 10:42 PM, Ken Anderson wrote:
>
>> Thanks Paul.  Unfortunately, currentContext() will return null, since this will not be running inside a request/response loop.  I'm probably just going to create a context to use…
>
> Oh, sorry Ken.  I obviously didn't read your original post closely enough.  Can you just call WOContext's constructor, then?  (And won't you need a WORequest to do that?  Sorry, now I've got more questions than answers for you.)
>
>
> --
> Paul.
>
> http://logicsquad.net/

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
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

References: 
 >Component based email without a context (From: Ken Anderson <email@hidden>)
 >Re: Component based email without a context (From: Paul Hoadley <email@hidden>)
 >Re: Component based email without a context (From: Ken Anderson <email@hidden>)
 >Re: Component based email without a context (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Component based email without a context
  • Next by Date: womp and "Invalid XML Request"
  • Previous by thread: Re: Component based email without a context
  • Next by thread: Re: Component based email without a context
  • Index(es):
    • Date
    • Thread