• 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
pageWithName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pageWithName


  • Subject: pageWithName
  • From: Drew Thoeni <email@hidden>
  • Date: Sun, 8 Apr 2007 18:32:59 -0400

I'm sure I'm missing a small bit of common WOKnowledge, because this seems pretty basic. But help would be greatly appreciated.

I'm sending an HTML email using a WOComponent as the source. I've done this before from within another component but I'm now trying to do this in a separate (non-WOComponent) standard Java class.

I started with:

EmailHTMLTemplate mailPage = (EmailHTMLTemplate)pageWithName( "EmailHTMLTemplate" );

And got "cannot find symbol"

Thinking the errant symbol might be "pageWithName", I tried this:

EmailHTMLTemplate mailPage = (EmailHTMLTemplate)WOApplication.application().pageWithName( "EmailHTMLTemplate", context() );

Ditto. So, do I need to pass in a context()? If so, how? (FYI: this is a static method and being called from a WOComponent).

Or, am I looking at this all wrong and trying to force fit something? Anytime I get into a spot like this I think back to Jonathan Rentzsch's "If you're writing code, you're doing something wrong" maxim. Perhaps I'm headed in the wrong direction.

Regards,

Drew

 _______________________________________________
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: pageWithName
      • From: Mark Morris <email@hidden>
    • Re: pageWithName
      • From: Pascal Robert <email@hidden>
    • Re: pageWithName
      • From: Miguel Arroz <email@hidden>
  • Prev by Date: Re: WOWWDC (Advice for presenters)
  • Next by Date: Re: pageWithName
  • Previous by thread: Re: WOWWDC (Advice for presenters)
  • Next by thread: Re: pageWithName
  • Index(es):
    • Date
    • Thread