• 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
Help getting 2 instances of the same sub-component on a page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help getting 2 instances of the same sub-component on a page


  • Subject: Help getting 2 instances of the same sub-component on a page
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Wed, 12 Apr 2006 10:19:56 -0700

I have a sub-component, <MonthDayYearTime> which is put on a page as:

	1) StartMonthDayYearTime and 2) EndMonthDayYearTime

	public NSTimestamp				value;

In the wod:

StartMonthDayYearTime: MonthDayYearTime {
	value = editClass.startTime;
}
EndMonthDayYearTime: MonthDayYearTime {
	value = editClass.endTime;
}

After setting all 12 of the popups I submit changes on the page and in the sub-component I have,

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


In <rtrnDateFromPopups> I pick out all the <selection> bindings from the popups and form a NSTimestamp <value>.

Now I now that there are 2 separate instances of the sub-component class.

But when the second sub-component instance gets its <takeValuesFromRequest> called, the values of the popups for the second instance are the same as the first instance.
----
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: Help getting 2 instances of the same sub-component on a page
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Help with Qualifier and NSKeyValueCoding.NullValue
  • Next by Date: Re: Help getting 2 instances of the same sub-component on a page
  • Previous by thread: Re: XCode 2.2 and WO 5.2.4
  • Next by thread: Re: Help getting 2 instances of the same sub-component on a page
  • Index(es):
    • Date
    • Thread