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

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


  • Subject: Re: Help getting 2 instances of the same sub-component on a page
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 12 Apr 2006 10:24:24 -0700


On Apr 12, 2006, at 10:19 AM, Baiss Eric Magnusson wrote:

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

?!!?

I have no idea what you are doing but I'll hazard that guess that it is (a) wrong :-) and (b) way more effort than is needed. Binding synchronization should take care of this for you. Can you post the component code?

Chuck


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:
40global-village.net


This email sent to email@hidden

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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: 
 >Help getting 2 instances of the same sub-component on a page (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: Help getting 2 instances of the same sub-component on a page
  • Next by Date: webobject-dev archives
  • Previous by thread: Help getting 2 instances of the same sub-component on a page
  • Next by thread: webobject-dev archives
  • Index(es):
    • Date
    • Thread