• 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
How to get sub-component data up to parent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get sub-component data up to parent


  • Subject: How to get sub-component data up to parent
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Thu, 6 Mar 2008 17:12:08 -0800

Chuck, after getting rid of some code in Awake I find I'm not getting the value of the sub-component binding back up to the parent, which was I believe my original problem a while back and the reason for the unusual code, in trying to be straightforward I now have:

In sub-component <MonthDayYear.java>

	 public NSTimestamp				mdyValue;

void rtrnDateFromPopups() {
gc.set( Calendar.YEAR, yearNum.intValue() )
...
mdyValue = new NSTimestamp( gc.getTime() );// this is correct at this point
pushValuesToParent(); // this seems to have no affect anymore
}


public void takeValuesFromRequest( WORequest aRequest, WOContext aContext) {
rtrnDateFromPopups();
}


In <EnterEvent.java> file in the Action method of the Submit:
editDate = (NSTimestamp)valueForBinding("mdyValue"); which returns null,
// if I don't set <editDate> it has the original parent date.


Bindings in <EnterEvent.wo> file:

EditMDY: MonthDayYear {
	mdyValue = editOldDate;
}
MonthDayYear: MonthDayYear {
	mdyValue = editDate;
}

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________ 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: How to get sub-component data up to parent
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Deserializing complex types when consuming web services
  • Next by Date: Re: How to get sub-component data up to parent
  • Previous by thread: Re: Compiling WO project in Xcode 3
  • Next by thread: Re: How to get sub-component data up to parent
  • Index(es):
    • Date
    • Thread