Danny Bols wrote:

Hello,

it seems that if a field widget doesn't have a corresponding value in the request it's original value gets overidden with the null-value.

Is this the way it should work or is it a slip of the pen in the Field.readFromRequest(formContext) method?



The question is whether we should consider a missing request parameter (value == null) the same as an empty value (value = ""). Currently, they're considered to be equivalent and the field is therefore nullified.


Now this is debatable, furthermore considering that I envisioned to distinguish these two cases to raise an exception when a null-valued required field is not present on the request (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24180).

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to