Re: Partial Form Submit
Re: Partial Form Submit
- Subject: Re: Partial Form Submit
- From: Chuck Hill <email@hidden>
- Date: Wed, 30 Jan 2008 15:04:52 -0800
On Jan 30, 2008, at 1:36 PM, Ricardo Parada wrote:
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.
IIRC, Mike said that he had problems with partial submits in the
Wonder code too.
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?
Not really.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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