Re: Display Group not setting object array
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