• 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: Stumped by nonfunctioning repetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stumped by nonfunctioning repetition


  • Subject: Re: Stumped by nonfunctioning repetition
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 21 Mar 2004 16:37:39 -0800

On Mar 21, 2004, at 1:17 PM, Arturo Pirez wrote:

Got it!  Thanks for the help everyone.

The problem was that I was clearing the original array at an inappropriate spot. So my poor defenseless component forget what it was supposed to do :-)

The reason for this was that since WO likes to set/get so often I had code to ignore the set if the value had already been set. But it cleared the internal array first - oops. I suppose I could do something with the synchronizes... method?

That is probably the cleanest solution. When I want to optimize binding synchronization that is what I use. I most often use automatic synchronization for top level pages.

Chuck



On Mar 21, 2004, at 12:06 PM, Chuck Hill wrote:

Your certain that you are not accessing this outside a phase of the RR loop?

Try adding a binding of WODebug=true to the WORepetition and WOHyperlink. That will log out when the values are moved and which values are moved. Perhaps that will show something useful.

Chuck


On Mar 21, 2004, at 5:27 AM, Arturo Pirez wrote:

Nope, no form.  Links shouldn't have to be in a form, right?


On Mar 20, 2004, at 11:29 PM, Denis Stanton wrote:

Hi Arturo

Just one off-the-wall suggestion. Could it be that your hyperlinks are inside a form and the form does NOT have multi-submit set?

Denis

On 21/03/2004, at 3: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.



Denis Stanton
email@hidden
Home:  +64 9 533 0391
mobile: +64 21 1433622

----
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.





--arturo
_______________________________________________
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.


References: 
 >Stumped by nonfunctioning repetition (From: Arturo Pérez <email@hidden>)
 >Re: Stumped by nonfunctioning repetition (From: Denis Stanton <email@hidden>)
 >Re: Stumped by nonfunctioning repetition (From: Arturo Pérez <email@hidden>)
 >Re: Stumped by nonfunctioning repetition (From: Chuck Hill <email@hidden>)
 >Re: Stumped by nonfunctioning repetition (From: Arturo Pérez <email@hidden>)

  • Prev by Date: Re: 5.2.3 Problem with Schedualing
  • Next by Date: 5.2.3 & Eclipse/WOLips
  • Previous by thread: Re: Stumped by nonfunctioning repetition
  • Next by thread: Re: Stumped by nonfunctioning repetition
  • Index(es):
    • Date
    • Thread