• 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: "Ricardo T Saito" <email@hidden>
  • Date: Tue, 27 Jan 2004 17:19:42 -0300

Hi,

Here we use something like:

SpecialPage.java ::
public WOElement template() {
	String html = "bla";
	Strgin wod = "bla";
	return templateWithHTMLString(html,wod,null);
}

DirectAction.java ::
SpecialPage sp = (SpecialPage)pageWithName("SpecialPage");

We don't have the .html/.wod files and the app. does not take a long time to
display the component.

----------------------------------------------------
Ricardo T Saito - email@hidden
Computer Engineer
Americanas.com - Sao Paulo - Brazil

-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Jeff Martin
Sent: Tuesday, January 27, 2004 12:08 AM
To: email@hidden
Subject: WOComponent template method


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/".

How can I make it not look for a template file?

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?

jeff
_______________________________________________
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.
_______________________________________________
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: WOComponent template method
  • Next by Date: Re: Access bindings at runtime
  • Previous by thread: Re: WOComponent template method
  • Next by thread: 5.5.5 Problems
  • Index(es):
    • Date
    • Thread