• 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: understanding an Object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: understanding an Object?


  • Subject: Re: understanding an Object?
  • From: Alexander Spohr <email@hidden>
  • Date: Tue, 15 Jan 2013 18:42:08 +0100

Am 15.01.2013 um 14:19 schrieb Theodore Petrosky <email@hidden>:

> I successfully have my popup version updating the bound object().

Is your object() an EO?

> However, how do I tell it as an EO so that it is faulted and updates itself on saveChanges().

You don’t. It knows.

> Meaning, the object() contains my new value, but when I press 'Save' there is no update done. So, WO doesn't know that I changed something.

Is the editing context that you saveChanges() on the same as your objects()’s?

> How do I tell the object that the attribute has changed so do an update on save?

Again: You don’t. It knows.

> I mean, there are somethings I can do in the constructor, however some of the instance variables are not available yet. takeValuesFromRequest isn't called until later (i don't know exactly when).

How should it be called before the constructor?
Just do your stuff in takeValuesFromRequest() not in the constructor.

> Is there a place that lists these methods and when they are called and when I can use (override) them?

http://developer.apple.com/legacy/mac/library/documentation/LegacyTechnologies/WebObjects/WebObjects_3.1/DevGuide/HowWOWorks/PhasesRRLoop.html
Click on "next section" to step through the process.


	atze


 _______________________________________________
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: 
 >understanding an Object? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: How to contribute ?
  • Next by Date: Re: D2W - Custom forms generated from XML
  • Previous by thread: understanding an Object?
  • Next by thread: Best way to web 2.0 ?
  • Index(es):
    • Date
    • Thread