Ex: input 2004/07/28 ,but database 2004/07/28
      input 2004/08/05, but database 2004/08/04
      input 2004/06/22, database 2004/06/22

> Hi, all
>         In my form, I use two tables(master--detail).When I save it, I
find
> the date decrease if I input July or August or September. But I input
other
> months and save, it's correct.Following is my form,
> <?xml version="1.0"?>
> <fd:form
>   xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
>   xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
>
>   <fd:widgets>
>     <fd:field id="sa1_ord">
>       <fd:label><i18n:text key="sa1_ord">sa1_ord:</i18n:text></fd:label>
>       <fd:datatype base="string"/>
>     </fd:field>
>     <fd:field id="sa1_po">
>       <fd:label><i18n:text key="sa1_po">sa1_po:</i18n:text></fd:label>
>       <fd:datatype base="string"/>
>     </fd:field>
>     <fd:field id="sa1_date">
>       <fd:label><i18n:text key="sa1_date">sa1_date:</i18n:text></fd:label>
>       <fd:datatype base="date">
>         <fd:convertor>
>           <fd:patterns>
>             <fd:pattern>yyyy/MM/dd</fd:pattern>
>           </fd:patterns>
>         </fd:convertor>
>       </fd:datatype>
>     </fd:field>
>     <fd:field id="sa1_qty">
>       <fd:label><i18n:text key="sa1_qty">sa1_qty:</i18n:text></fd:label>
>       <fd:datatype base="integer"/>
>     </fd:field>
>     <fd:field id="sa1_pno">
>       <fd:label><i18n:text key="sa1_pno">sa1_pno:</i18n:text></fd:label>
>       <fd:datatype base="string"/>
>     </fd:field>
>     <fd:repeater id="sa2List">
>       <fd:widgets>
>         <fd:output id="id">
>           <fd:datatype base="long"/>
>         </fd:output>
>
>   <fd:field id="sa2_lot">
>       <fd:label><i18n:text key="sa2_lot">sa2_lot:</i18n:text></fd:label>
>       <fd:datatype base="string"/>
>     </fd:field>
>
>     <fd:field id="sa2_exfty">
>       <fd:label><i18n:text
key="sa2_exfty">sa2_exfty:</i18n:text></fd:label>
>           <fd:datatype base="date">
>         <fd:convertor>
>           <fd:patterns>
>             <fd:pattern>yyyy/MM/dd</fd:pattern>
>           </fd:patterns>
>         </fd:convertor>
>       </fd:datatype>
>     </fd:field>
>
>     <fd:field id="sa2_qty">
>       <fd:label><i18n:text key="sa2_qty">sa2_qty:</i18n:text></fd:label>
>       <fd:datatype base="integer"/>
>     </fd:field>
>
>     <fd:field id="sa2_etd">
>       <fd:label><i18n:text key="sa2_etd">sa2_etd:</i18n:text></fd:label>
>           <fd:datatype base="date">
>         <fd:convertor>
>           <fd:patterns>
>             <fd:pattern>yyyy/MM/dd</fd:pattern>
>           </fd:patterns>
>         </fd:convertor>
>       </fd:datatype>
>     </fd:field>
>
>     <fd:field id="sa2_po">
>       <fd:label><i18n:text key="sa2_po">sa2_po:</i18n:text></fd:label>
>       <fd:datatype base="string"/>
>     </fd:field>
>
>          <fd:booleanfield id="select">
>            <fd:label><i18n:text
key="select">select:</i18n:text></fd:label>
>          </fd:booleanfield>
>
>       </fd:widgets>
>     </fd:repeater>
>
>     <fd:repeater-action id="addSa2" action-command="add-row"
> repeater="sa2List">
>           <fd:label><i18n:text key="addSa2">addSa2:</i18n:text></fd:label>
>     </fd:repeater-action>
>     <fd:repeater-action id="removeSa2" action-command="delete-rows"
> repeater="sa2List" select="select">
>           <fd:label><i18n:text
> key="removeSa2">removeSa2:</i18n:text></fd:label>
>     </fd:repeater-action>
> <fd:action id="find" action-command="sac" defaul="false">
>   <fd:label><i18n:text key="find">find:</i18n:text></fd:label>
> </fd:action>
> <fd:action id="new" action-command="sac" defaul="false">
>   <fd:label><i18n:text key="new">new:</i18n:text></fd:label>
> </fd:action>
> <fd:action id="save" action-command="sac" defaul="false">
>   <fd:label><i18n:text key="save">save:</i18n:text></fd:label>
> </fd:action>
> <fd:action id="delete" action-command="sac" defaul="false">
>   <fd:label><i18n:text key="delete">delete:</i18n:text></fd:label>
> </fd:action>
>   </fd:widgets>
> </fd:form>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to