Could you post the page?
I can reproduce this problem with a modified version of testDateAsPrimaryKey.jsp from bookstore:
------------------------------ BEGIN ------------------------ <html> <%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> <head> <db:base /> <target="_top"> </head> <body > <db:dbform autoUpdate="false" followUp="/tests/testDateAsPrimaryKey.jsp" maxRows="1" tableName="TIMEPLAN"
>
<db:header>
<h1 align="center">Timestamp as Primary Key</h1>
</db:header>
<db:errors/>
<db:body>
<table class="fixed" align="center">
<tr class="even">
<td style="width:300px">TIME</td>
<td style="width:100px"><db:dateField fieldName="TIME" pattern="dd/MM/yyyy"/></td>
</tr>
<tr class="odd">
<td style="width:300px">REMARK</td>
<td style="width:300px"><db:textField size="25" fieldName="REMARK"/></td>
</tr>
<db:dbform autoUpdate="true" followUp="/tests/testDateAsPrimaryKey.jsp" maxRows="*" tableName="TIMEPLAN1" parentField="TIME" childField="TIME"
>
<db:header>
</db:header>
<db:body>
<tr class="even">
<td style="width:300px">REMARK</td>
<td style="width:300px"><db:textField size="25" fieldName="REMARK"/></td>
</tr>
</db:body>
<db:footer>
<tr class="button">
<td colspan="2" style="text-align:center">
<db:updateButton style="width:100" caption="Save1"/>
<db:deleteButton style="width:100" caption="Delete1"/>
<db:insertButton style="width:100" caption="Insert1" showAlways="false" />
</td>
</tr>
<tr class="button">
<td colspan="2" style="text-align:center">
<db:navFirstButton style="width:100" caption="<< First1"/>
<db:navPrevButton style="width:100" caption="< Previous1"/>
<db:navNextButton style="width:100" caption="> Next1"/>
<db:navLastButton style="width:100" caption=">> Last1"/>
<db:navNewButton style="width:100" caption="New1"/>
</td>
</tr>
</db:footer>
</db:dbform>
</db:body>
<db:footer>
<tr class="button">
<td colspan="2" style="text-align:center">
<db:updateButton style="width:100" caption="Save"/>
<db:deleteButton style="width:100" caption="Delete"/>
<db:insertButton style="width:100" caption="Insert" showAlways="false" />
</td>
</tr>
<tr class="button">
<td colspan="2" style="text-align:center">
<db:navFirstButton style="width:100" caption="<< First"/>
<db:navPrevButton style="width:100" caption="< Previous"/>
<db:navNextButton style="width:100" caption="> Next"/>
<db:navLastButton style="width:100" caption=">> Last"/>
<db:navNewButton style="width:100" caption="New"/>
</td>
</tr>
</table>
</db:footer>
</db:dbform>
<%@ include file="httpSnooper.jsp" %>
</body> </html> --------------------------------- END -----------------------------
you have to add to dbform-config.xml: <query name="TIMEPLAN1" from="TIMEPLAN"> <field name="TIME" fieldType="DATE" isKey="true"/> <field name="D" fieldType="DOUBLE"/> <field name="I" fieldType="INTEGER"/> <field name="REMARK" fieldType="varchar"/> </query>
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms