Re: Updating EOObjects
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