Re: Stumped by nonfunctioning repetition
Re: Stumped by nonfunctioning repetition
- Subject: Re: Stumped by nonfunctioning repetition
- From: Arturo Pérez <email@hidden>
- Date: Sun, 21 Mar 2004 08:29:38 -0500
That was an area I was trying to pursue. I do know that the iterator
gets set to null when the link is clicked. I'll need to put in more
getters/setter to track this down.
On Mar 21, 2004, at 12:36 AM, King Chung Huang wrote:
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.
----
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.