• 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: boolean changing value in a RR loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: boolean changing value in a RR loop


  • Subject: Re: boolean changing value in a RR loop
  • From: Dev WO <email@hidden>
  • Date: Tue, 14 Mar 2006 23:04:41 +0100

Hi Ken,
In fact the user doesn't change the boolean directly, but the action will change the boolean to true to "display" the result of his search.
I'm actually trying to "determine" something using the debugger...


Thanks for your help and advice:)

Xavier



If this boolean can be changed through something the user does, you're probably getting a mismatch from what the page looked like when it was sent out, and when the form came back. You can't change the structure of the page, because when WO reconstitutes the page to fill in the form values, the page is different!

What I usually do is not change anything on the page as a result of a form change until the top of appendToResponse().

Ken

On Mar 14, 2006, at 4:21 PM, Dev WO wrote:

Hi guys,
I've got something strange happening to me here:
I've got a boolean to manage what's displayed in a WOComponent.
an action is triggered inside this WOComponent and changes the value of the boolean (to "true").


If I check the value of the boolean inside this action, it has the correct one (which is "true").
The action return context().page() to display the same component but with an extra part;)


I also have a custom append to response, but it doesn't change anything regarding this boolean, in addition I tested just at the beginning and at the end the boolean and it is "always" false.

So I don't know and can't find what's changing the boolean to "false"?!
If I set it to "true" at the WOComponent initialization, it stays "true"!


Is there any way I could check what is accessing this boolean in a request-response loop?

Thanks a lot for any pointer:)

Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


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
References: 
 >boolean changing value in a RR loop (From: Dev WO <email@hidden>)
 >Re: boolean changing value in a RR loop (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: boolean changing value in a RR loop
  • Next by Date: SSL Questions
  • Previous by thread: Re: boolean changing value in a RR loop
  • Next by thread: SSL Questions
  • Index(es):
    • Date
    • Thread