Re: Partial Form Submit
Re: Partial Form Submit
- Subject: Re: Partial Form Submit
- From: Chuck Hill <email@hidden>
- Date: Thu, 31 Jan 2008 11:23:14 -0800
On Jan 30, 2008, at 4:10 PM, Ricardo Parada wrote:
On Jan 30, 2008, at 4:20 PM, Mike Schrag wrote:
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.
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.
Thanks Mike. That's exactly what I'm doing (subclassing the WO
input elements). I haven't tested check boxes yet though.
By the way Chuck., your book Practical WebObjects (chapter 6 / 7)
has been invaluable for all of this. Any other book plans, for for
Eclipse/WOLips and WO5.4.x ? :-)
Thank you, I am happy to hear that you find it useful. We would like
to write another book, but we are just too busy at work at the
moment. I could never write a book on WOLips unless we sedate Mike
for a year. At the rate he adds things, it would be totally out of
date before it was printed. :-)
Your book mentions web scarab which is interesting but I normally
use FireFox with FireBug which is pretty nice to see what goes back
and forth between my application and the browser.
I don't think there was a FireBug when we wrote that. I now use
FireBug for most client side debugging.
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