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

Partial Form Submit


  • Subject: Partial Form Submit
  • From: Ricardo Parada <email@hidden>
  • Date: Wed, 30 Jan 2008 14:36:06 -0700

Hi All,

I'm doing some Ajax stuff. I can't use the wonder ajax frameworks so I'm writing my own. So bear with me. :-)

One problem I have is, when a certain input element changes, I send in a request into the application with only the form key/value for the input element that changed. The request also includes other info that tells me that this is an ajax request.

My application goes through the takeValuesFromRequest phase. The form key/value pair that was sent in is processed and the selection is set. However, because I did not send in the form key/value pairs for all the other input elements, when their corresponding elements (i.e. WOPopUpButton, WOTextField, etc.) go through the takeValuesFromRequest they get set to null.

It would be nice for example, if the WOTextField did not attempt to set its value to null when it notices that its elementID is not included in the form keys submitted in the request. Then this partial form submit would just work.

Anyways, then my application goes through the appendToResponse phase and I only generate the response for the component which was specified in the response. The response is received on the client side and inserted into a container.

So everything is working as I want it except for the takeValuesFromRequest phase which sets to null the values for the elements whose key/value pairs were not included in the request.

I know I'll eventually get it right, but I'm looking for some pointers as I know this has been done already by some of you.

Does anybody have any ideas?

Thanks,
Ricardo J. Parada

_______________________________________________
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


  • Follow-Ups:
    • Re: Partial Form Submit
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: xml serializing
  • Next by Date: Re: xml serializing
  • Previous by thread: Re: xml serializing
  • Next by thread: Re: Partial Form Submit
  • Index(es):
    • Date
    • Thread