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

Re: WOForm Question


  • Subject: Re: WOForm Question
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 4 Apr 2007 17:56:26 -0400

BTW, context().page() is better to return than null.
After much debate, review, and independent testing at WebObjects National Laboratories, it has been in fact proven that returning context().page() can, in general, be more efficient at runtime than returning null. WOHyperlink (at least), though, actually just turns null into context().page() for you, but if you ever use a component that might not implement invokeAction in this same way, its siblings will have their invokeActions called for no reason. Note that those siblings will not actually DO anything because senderID will not match their elementID, but you do process extra invokeActions for nothing, so returning null will not break anything, it's just not the ideal return value.

However, further testing has ALSO revealed that "co<complete><enter>.p<complete><enter>", the fastest way to type this in Eclipse (without defining a custom template mapped to a single character :) ) is 8 keystrokes, whereas "null" is 4 keystrokes. That said, we're all writing Java, so obviously we don't care about keystroke counts ......

Annnyhooo ... Back to work.

ms


_______________________________________________ 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: 
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: Chuck Hill <email@hidden>)
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: Robert Walker <email@hidden>)
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: Chuck Hill <email@hidden>)
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: Chuck Hill <email@hidden>)
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: Chuck Hill <email@hidden>)
 >Re: WOForm Question (From: David Avendasora <email@hidden>)
 >Re: WOForm Question (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Delete statement
  • Next by Date: Re: How to Retrieve Session User?
  • Previous by thread: Re: WOForm Question
  • Next by thread: Re: WOForm Question
  • Index(es):
    • Date
    • Thread