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

Re: Updating EOObjects


  • Subject: Re: Updating EOObjects
  • From: Arturo Pérez <email@hidden>
  • Date: Thu, 18 Aug 2005 21:15:44 -0400

Hi Jon,

That's a fine way to start. I know a bunch of the luminaries on the list prefer a different style but simple will get you started.

The other big thing is to follow a style of doing most of your work in the appendToResponse() and to never mutate any on-page data through the key values that WOBuilder can see.

Using the above then your createAndInsertInstance would be used like this

public void appendToResponse(....) {
  if  (aLicense == null) aLicense = ...createAndInsert...;
  if  (aPrincipal == null) aPrincipal = ...createAndInsert...;
  super.appendToResponse(...);
}

-arturo

On Aug 18, 2005, at 9:03 PM, Jonathan Miller wrote:

Thanks Chuck and Arturo-

I now understand my mistake. And now that I understand I can see that this is a much better system.

I'm still getting my head around EOUtilities.createAndInsertInstance method. Should i construct an EO with this method and then assign it to my elements in the form?

That somehow sounds really wrong?

Jon


On Aug 18, 2005, at 2:53 PM, Arturo Pérez wrote:






_______________________________________________ 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: Updating EOObjects/Selecting EOObjects
      • From: Jonathan Miller <email@hidden>
    • Re: Updating EOObjects
      • From: LD <email@hidden>
References: 
 >Updating EOObjects (From: Jonathan Miller <email@hidden>)
 >Re: Updating EOObjects (From: Chuck Hill <email@hidden>)
 >Re: Updating EOObjects (From: Jonathan Miller <email@hidden>)
 >Re: Updating EOObjects (From: Jonathan Miller <email@hidden>)
 >Re: Updating EOObjects (From: Chuck Hill <email@hidden>)
 >Re: Updating EOObjects (From: Arturo Pérez <email@hidden>)
 >Re: Updating EOObjects (From: Jonathan Miller <email@hidden>)

  • Prev by Date: Re: Updating EOObjects
  • Next by Date: Re: EOQualifier timestamp comparison help [i.e., exception]
  • Previous by thread: Re: Updating EOObjects
  • Next by thread: Re: Updating EOObjects
  • Index(es):
    • Date
    • Thread