Re: Adding Objects to an ArrayList (Checkboxes)
Re: Adding Objects to an ArrayList (Checkboxes)
- Subject: Re: Adding Objects to an ArrayList (Checkboxes)
- From: Janice Cheung <email@hidden>
- Date: Thu, 13 Oct 2005 10:17:08 -0400
LD, Ken, and especially David,
Thank you very much for all of your help!
I finally realized what was causing the issue... I had the binding
for the nextPage, "EmailServerContacts",
as a WOHyperlink wrapped around a WOActiveImage rather than a
WOSubmit button (although it was
still within a WOForm). Once I replaced it with the submit button,
everything worked correctly and all
server objects were adding properly to the array.
Thanks again for everything! I really appreciate it so much! :) !
Kindest regards,
Janice
LD wrote:
Hi again,
On 11/10/2005, at 2:44 PM, LD wrote:
For the gem, to get the current list of selected servers (about 2-3
lines of readable code) see updateServerSelectionsAndProcessEmail()
action below. It's simple; easy.
Woops...
<...>
public WOComponent updateServerSelectionsAndProcessEmail() {
EmailServerContacts nextPage;
NSArray allServers;
NSDictionary allServerSelections;
updateServerSelections();
nextPage = ( EmailServerContacts )pageWithName (
"EmailServerContacts" );
nextPage.setEc( ec() );
//
// ==== the ease of KeyValueCoding ====
// ==== assume that aServer.isSelected() returns a Boolean
object ====
//
allServers = allServers();
allServerSelections = new NSDictionary (
allServers.valueForKey( "isSelected" ), allServers );
nextPage.setServers( allServerSelections.allKeysForObject (
Boolean.TRUE ) );
return nextPage;
}
}
<...>
with regards,
--
LD
_______________________________________________
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