Re: Accessing a string from a display group.
Re: Accessing a string from a display group.
- Subject: Re: Accessing a string from a display group.
- From: David LeBer <email@hidden>
- Date: Thu, 12 Jan 2006 14:14:48 -0500
On 12-Jan-06, at 1:40 PM, Matt Harmon wrote:
Quoting "Jerry W. Walker" <email@hidden>:
How does the application fail? Does it freeze, raise an exception,
crash the system, freeze the system, lock up?
I set up a debug log and have some good and some bad news.
Good news: the allObjects() call now works (I had another call that
was just
before it that was actually causing the problem).
Bad News: There's nothing (apparently) in the array. Any attempt to
access the
array throws a NullPointerException and when I use the count()
method on the
array it comes back with 0 (zero) objects in the array.
I also get null pointer exceptions when I attempt to access the
selectedObject,
as well.
The object (displayGroup) is declared and its values appear on the
page but, for
some reason I'm not aware of, I can't access those values in
memory. Which, for
me at least, is confusing.
Yeah, I'd be confused too.
When are you asking for the values? Is it too early in the request
response loop (before the DG's had a chance to fetch the objects)?
Are you sure you are talking to the same DG that's setup in your .woo
file?
Try this: add a WOString to your page, bind it to
"yourDisplayGroupName.allObjects.count" it should give you the count
of all of your objects.
--
;david
--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site: http://www.codeferous.com
blog: http://david.codeferous.com
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