• 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: Adding Objects to an ArrayList (Checkboxes)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Adding Objects to an ArrayList (Checkboxes) (From: Janice Cheung <email@hidden>)
 >Re: Adding Objects to an ArrayList (Checkboxes) (From: LD <email@hidden>)
 >Re: Adding Objects to an ArrayList (Checkboxes) (From: LD <email@hidden>)

  • Prev by Date: WO and WSS (Web Services Security)
  • Next by Date: all-in-one .war, preferably with ant?
  • Previous by thread: Re: Adding Objects to an ArrayList (Checkboxes)
  • Next by thread: what is URL for browser testing of a WebService?
  • Index(es):
    • Date
    • Thread