• 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: Display Group not setting object array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Group not setting object array


  • Subject: Re: Display Group not setting object array
  • From: Mark Edwards <email@hidden>
  • Date: Mon, 7 Feb 2005 15:40:12 +1100

You might have to do a:
usersDisplayGroup.setCurrentBatchIndex(1);
immediately after the usersDisplayGroup.setObjectArray(n);
to update the displayedObjects correctly.

HTH.

Regards,
Mark

On 7 Feb 2005, at 15:21, Thomas wrote:
I'm using a Display Group for its batch display capabilities, and I'm setting the object array, which works the first time. But when I set it to something different, using this code, I get strange results, with none of the new objects being shown. The code is:

System.out.println("Setting real foundUsers = " + n.count());

usersDisplayGroup.setObjectArray(n);
usersDisplayGroup.updateDisplayedObjects();

System.out.println("usersDisplayGroup.displayedObjects = " + usersDisplayGroup.displayedObjects().count());



Gives this result:

Setting real foundUsers = 9
usersDisplayGroup.displayedObjects = 3

The displayed objects are the first few of the old list, but the number doesn't match the new list or the old list.

Any ideas?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________
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: 
 >Display Group not setting object array (From: Thomas <email@hidden>)

  • Prev by Date: Display Group not setting object array
  • Next by Date: Re: Display Group not setting object array
  • Previous by thread: Display Group not setting object array
  • Next by thread: Re: Display Group not setting object array
  • Index(es):
    • Date
    • Thread