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

understanding an Object?


  • Subject: understanding an Object?
  • From: Theodore Petrosky <email@hidden>
  • Date: Tue, 15 Jan 2013 05:19:36 -0800 (PST)

I have been following the conversation to a new person here about learning more of Wonder. For me it is an uphill battle. But after quite a while plugging away I have a question (actually two).

I am playing with the ERMDDatePicker. Originally I thought to use my butchered version in my D2W app. From a comment here about examining ERDEditDatePopup, I have decided that I should dodge the bullet and not peruse the DatePicker plan.

I had thought to add a popup to choose the time (limited list). Wrap the popup in an AJAX Observe Field and if the popup changes update the object with the new time.

But after examining ERDEditDatePopup I have decided not to reinvent the wheel and us it instead.

But that leads me to my question(s).

I successfully have my popup version updating the bound object(). However, how do I tell it as an EO so that it is faulted and updates itself on saveChanges(). 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.

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

and B:

From reading (over time) and examining many Wonder object, I realize that there are a few methods that one can override as an object is going through its life.

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).


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


Ted

 _______________________________________________
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: understanding an Object?
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: D2W - Custom forms generated from XML
  • Next by Date: Best way to web 2.0 ?
  • Previous by thread: Fwd:
  • Next by thread: Re: understanding an Object?
  • Index(es):
    • Date
    • Thread