• 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: takeFormValuesFromRequest problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Andrew Lindesay <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Stephane Guyot <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Mike Schrag <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Not going to WOWODC this year?
  • Next by Date: Re: Not going to WOWODC this year?
  • Previous by thread: Re: takeFormValuesFromRequest problem
  • Next by thread: Re: takeFormValuesFromRequest problem
  • Index(es):
    • Date
    • Thread