Help getting 2 instances of the same sub-component on a page
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