Re: boolean changing value in a RR loop
Re: boolean changing value in a RR loop
- Subject: Re: boolean changing value in a RR loop
- From: Ken Anderson <email@hidden>
- Date: Tue, 14 Mar 2006 16:44:37 -0500
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