cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-1863) Save form model with empty fields: Binding model to document fails
Date Fri, 16 Jun 2006 04:28:30 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1863?page=all ]

Antonio Gallardo updated COCOON-1863:
-------------------------------------


Would you explain more about this issue? You may test the latest code here: http://cocoon.zones.apache.org/demos/21branch/samples/blocks/forms/




> 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">yourname@yourdomain.com</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">yourname@yourdomain.com</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


Mime
View raw message