Save form model with empty fields: Binding model to document fails ------------------------------------------------------------------
Key: COCOON-1863 URL: http://issues.apache.org/jira/browse/COCOON-1863 Project: Cocoon Type: Bug Components: Blocks: Forms Versions: 2.1.9 Reporter: Feliciano Borrego In the Cocoon example "samples/blocks/forms/form2xml.flow", when submit the form with the fields "IP adress", "phone number" and all "contacts" fields empty, in Cocoon 2.1.8 the XML is: <data> <wrapper> <context> <info> <email boolBindingWorks="false">[EMAIL PROTECTED]</email> <number value="3"/> <choose value="true"/> <phone cntr=""> <zone/> <number/> </phone> </info> <ipaddress changed="true"/> <birthday>1960-04-10</birthday> <drinks> <drink>Jupiler</drink><drink>Hoegaarden</drink></drinks> <contacts> <contact id="1" row-state="original"> <firstname/> <lastname/> <phone nr=""/> <email/> </contact> <contact id="2" row-state="original"> <firstname/> <lastname/> <phone nr=""/> <email/> </contact> </contacts> </context> </wrapper> </data> Therefore in Cocoon 2.1.9 the XML result is: <data> <wrapper> <context> <info> <email boolBindingWorks="false">[EMAIL PROTECTED]</email> <number value="3"/> <choose value="false"/> <phone> </phone> </info> <birthday>1960-04-10</birthday> <drinks> <drink>Jupiler</drink><drink>Leffe</drink></drinks> <contacts> <contact id="1" row-state="original"> <phone/> </contact> <contact id="2" row-state="original"> <phone/> </contact> </contacts> </context> </wrapper> </data> The "Simple XML Binding " and "Bean Binding" examples works fine. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira