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

Re: Question here


  • Subject: Re: Question here
  • From: David LeBer <email@hidden>
  • Date: Mon, 10 Mar 2008 18:00:58 -0400


On 10-Mar-08, at 5:46 PM, Gustavo Pizano wrote:

hehe thansk for the tips, it came out finally, I didn't expected it should be
Body : WOBody {
	framework = "WOExamplesHarness.framework";
	filename = "aqua_bg.jpg";
	onLoad = onLoad;

}
swith the onLoad = onLoad, I didn't find that... hwo to call it... tag, key, function?
and the book as you can see its old one, its the only one I have..

When the page renders the WOBody component ends up being the <body> tag on the page.


In this instance you want it to look like this:

	<body onLoad="some_javascript_string" ...>

	</body>

So you needed to ad the onLoad binding to the WOBody component and bind it to the name of method in your Java that returns the javascript string (in this case confusingly called onLoad());

If you are just starting, I would recommend you work through Janine's tutorial here:

<http://wotutorial.furfly.com/downloads.html>

It uses WOLips, so the impedance mismatch should be lower.

Once you've mastered the tools and concepts, you can go back to Ravi's book (or any other tutorial for that matter).

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________ 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: 
 >Question here (From: Gustavo Pizano <email@hidden>)
 >Re: Question here (From: David LeBer <email@hidden>)
 >Re: Question here (From: Art Isbell <email@hidden>)
 >Re: Question here (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Question here
  • Next by Date: Re: Vertical inheritance with a non-abstract superclass
  • Previous by thread: Re: Question here
  • Next by thread: Hiding physical paths in "wodata="
  • Index(es):
    • Date
    • Thread