• 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: Partial Form Submit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Partial Form Submit


  • Subject: Re: Partial Form Submit
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 30 Jan 2008 19:28:09 -0500

Yeah, you have to wrap all of the WO input components and manually make them ignore takeValuesFromRequest if its key is not in the request. The problem here is that WOCheckBox has to work this way, so it will never work quite right for checkboxes without doing a bunch of trickery. You could make a custom checkbox with a hidden field + javascript to turn the checkbox into a hidden "1" or "0", I guess.
Correct me if I'm wrong, but when doing partial form submit the browser must inherently know which keys it is submitting. Why not just have the browser submit a _partial_form_keys = (foo, bar, baz). That way you know in particular in the case of a checkbox that presence in _partial_form_keys but absence in the form data means it must have been unchecked.
Seems like this would work, also ... Ajax framework already has a custom form serializer, anyway (and you can override it with a custom one), so adding this would be pretty painless. A "server-side-only" fix would be preferably, but I don't think it's possible for this one.

ms

_______________________________________________
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: 
 >Partial Form Submit (From: Ricardo Parada <email@hidden>)
 >Re: Partial Form Submit (From: Chuck Hill <email@hidden>)
 >Re: Partial Form Submit (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Partial Form Submit
  • Next by Date: Re: Partial Form Submit
  • Previous by thread: Re: Partial Form Submit
  • Next by thread: Null values at end of sorted list
  • Index(es):
    • Date
    • Thread