• 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: WOComponent template method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOComponent template method


  • Subject: Re: WOComponent template method
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 26 Jan 2004 20:38:44 -0800

Hi Jeff,

At 09:08 PM 26/01/2004 -0600, Jeff Martin wrote:
>I want to encapsulate a simple component in a single (source) file, so
>my WOComponent subclass simply implements the template() method, which
>in turn calls templateWithHTMLString() from a couple of String literals
>for the HTML and wod data. WebObjects seems to be unhappy with this -
>it takes a long time and it complains:
>
>[2004-01-26 20:44:03 CST] <WorkerThread0>
><com.webobjects.appserver._private.WOComponentDefinition> No template
>found for component RMPDFPage at "file:/Temp/Builds/Movies.woa/".
>
This is just a debug message.  If you set the logging level way down this
should go away. I'm not sure why it is taking a long time, I've not seen
that other than the first access to any page on Windows.


>How can I make it not look for a template file?
>
I don't think you can.  Your best bet might be to just create one with
empty files.  Just because it finds a template doesn't mean you have to use
it.

>Also, my test app seems to work best if I specify the whole path to my
>component in pageWithName() (eg,
>pageWithName("com.reportmill.webobjects.RMPDFPage"). Is this the
>recommended convention?
>
Define "best".  If you do not specify a package name then it is forced to
look through all the loaded jars in all packages for a classname that
matches.  This is going to be slower than a FQ name.  I've not quantified
slower.


Chuck

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >WOComponent template method (From: Jeff Martin <email@hidden>)

  • Prev by Date: Re: 5.5.5 Problems
  • Next by Date: Re: 5.2.2 problems
  • Previous by thread: WOComponent template method
  • Next by thread: Re: WOComponent template method
  • Index(es):
    • Date
    • Thread