Re: takeFormValuesFromRequest problem
Re: takeFormValuesFromRequest problem
- Subject: Re: takeFormValuesFromRequest problem
- From: Alexander Spohr <email@hidden>
- Date: Wed, 14 May 2008 23:16:47 +0200
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.
_______________________________________________
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