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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to