• 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: displaying an integer list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying an integer list


  • Subject: Re: displaying an integer list
  • From: Miguel Arroz <email@hidden>
  • Date: Tue, 27 Oct 2009 00:22:24 +0000

Hi!

  1) Try new Integer[] instead of new int[].

  2) Are you sure anAppliedClass.appliedYear is an integer?

  Yours

Miguel Arroz

On 2009/10/27, at 00:18, Joe Little wrote:

I have a wo popup button

YearPopUpButton: WOPopUpButton {
       item = intSelection;
       list = YearList;
       selection = anAppliedClass.appliedYear;
}

and the relevant code is

public NSArray YearList = new NSArray(new int[]{2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009});
public int intSelection;

appliedYear is an Integer.

When run, I get:

While trying to set the field "intSelection" on an object of type
edu.stanford.ee.classmgmt.apply.ui.AppliedClassPage we expected a int
but received a [I with a value of [I@70d9cbcb. This often happens if
you forget to use a formatter.

Setting a formatter doesn't seem to help. I'm guessing I need some
indirection to setting the appliedYear value, but it seems the error
is more due to the fact that its not liking the NSArray. Do I need to
generate a list of new Integer(2000), new Integer(2001).. etc?
_______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: displaying an integer list
      • From: Joe Little <email@hidden>
References: 
 >displaying an integer list (From: Joe Little <email@hidden>)

  • Prev by Date: displaying an integer list
  • Next by Date: Re: displaying an integer list
  • Previous by thread: displaying an integer list
  • Next by thread: Re: displaying an integer list
  • Index(es):
    • Date
    • Thread