Re: Stumped by nonfunctioning repetition
Re: Stumped by nonfunctioning repetition
- Subject: Re: Stumped by nonfunctioning repetition
- From: King Chung Huang <email@hidden>
- Date: Sat, 20 Mar 2004 22:36:24 -0700
Does your thingArray get modified during the loop, or get pointed to
null? If you thingArray changes, that could make thingItem null.
King Chung Huang
Learning Commons
University of Calgary
On Mar 20, 2004, at 8:55 PM, Arturo Pirez wrote:
I've done this a million times but it's not happening for me tonight.
I have a WORepetition. It's bound to an array of things. As it loops
through that array it generates a WOHyperlink for each item which is
bound to an action. Call the array of things thingArray. Call the
iterator variable thingItem. Call the action thingAction. The action
looks something like
public WOComponent thingAction() {
return pageWithName(thingItem.pageName());
}
Page gets generated - everything looks gorgeous. User clicks on one
of the above hyperlinks. thingItem gets set to null and makes me very
unhappy.
I've done a ton of things this way and never had a problem. Panther
10.3.2, Java 1.4.1, WO 5.2.2.
What am I doing wrong? Am I incorrect in thinking that thingItem
should be set to the value it had when the WOHyperlink was generated?
Thanks in advance.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.