cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim O'Leary <TOle...@civica.com.au>
Subject Subject:strange date
Date Thu, 29 Jul 2004 00:10:03 GMT
Original message from magic
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

--------------------------------------------------------------------- 
This email is from Civica Pty Limited and it, together with any attachments,
is confidential to the intended recipient(s) and the contents may be legally
privileged or contain proprietary and private information. It is intended
solely for the person to whom it is addressed. If you are not an intended
recipient, you may not review, copy or distribute this email. If received in
error, please notify the sender and delete the message from your system
immediately. 
Any views or opinions expressed in this email and any files transmitted with
it are those of the author only and may not necessarily reflect the views of
Civica and do not create any legally binding rights or obligations
whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents
signed by duly authorised representatives, contracts may not be concluded on
behalf of Civica by email. 
Please note that neither Civica nor the sender accepts any responsibility
for any viruses and it is your responsibility to scan the email and the
attachments (if any). All email received and sent by Civica may be monitored
to protect the business interests of Civica. 
--------------------------------------------------------------------- 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message