Re: takeFormValuesFromRequest problem
Re: takeFormValuesFromRequest problem
- Subject: Re: takeFormValuesFromRequest problem
- From: Lachlan Deck <email@hidden>
- Date: Thu, 15 May 2008 07:43:21 +1000
Thanks.
On 15/05/2008, at 7:16 AM, Alexander Spohr wrote:
I hate to follow up on myself but it is late here and I hit submit a
bit too early :)
Am 14.05.2008 um 22:24 schrieb Lachlan Deck:
But doesn't the below only change after takeValues. i.e., during
appendToResponse?
No it changes IN takeValues. When it gets the checkbox, your
following conditionals are reverted. Therefore your appendToResponse
drew something different than your takeValues gets back - after
taking the checkbox’ value.
Not sure if I am understandable here :)
Rule of thumb:
- Never change conditionals anywhere after super.appendToRespose()
and before super.invokeAction()!
atze
Trying to clarify:
checkbox = false;
appendToResponse draws second condition - field-ids begin with x.y.z.1
user checks box
takeValues gets checkbox and switches conditionals
the incoming values have ids beginning with x.y.z.1 (second
conditional) but the fields in takeValues now begin with x.y.z.0
(first conditional) - so they ignore the values as they have not the
correct ids. Result: your objects get null values because the
inputstream has no values for your fields.
with regards,
--
Lachlan Deck
_______________________________________________
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