I think validation on delete do not make sense. I will test the validation with add. I build some special error tag wich generates a js message box on the client side if there is a server side validation. So i can use both types and the error messages looks the same.
Cheers, Henner > -----Ursprüngliche Nachricht----- > Von: Steven Law [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 18. Februar 2005 06:36 > An: [EMAIL PROTECTED] > Cc: jdbforms-interest@lists.sourceforge.net > Betreff: Re: AW: [dbforms] Validation and autoUpdate=true > > I added some things to testBOOKSListAutoUpdate.jsp: > > <%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> <html> > <head> > <db:base/> > </head> > <body> > <db:dbform > multipart="false" > autoUpdate="true" > followUp="/tests/testBOOKSListAutoUpdate.jsp" > javascriptValidation="true" > formValidatorName="book" > maxRows="*" tableName="BOOK"> > <db:header> > <db:errors/> > <table> > </db:header> > <db:body allowNew="true"> > <tr> > <td><db:dataLabel > fieldName="BOOK_ID"/> </td> > <td><db:textField > fieldName="ISBN"/> </td> > <td><db:textField > fieldName="AUTHOR_ID"/> </td> > <td><db:textField > fieldName="TITLE"/> </td> > <td> > > <db:deleteButton style="width:55" caption="Delete" > confirmMessage="Really?"/> > </td> > </tr> > </db:body> > <db:footer> > <tr> > <td><db:textField > hidden="true" fieldName="BOOK_ID"/> </td> > <td><db:textField > fieldName="ISBN"/> </td> > <td><db:textField > fieldName="AUTHOR_ID"/> </td> > <td><db:textField > fieldName="TITLE"/> </td> > <td> > > > <db:insertButton showAlways="true" caption="Add New"/> > </td> > </tr> > <tr> > <td colspan="4" align="center"> > > <db:updateButton caption="update" /> > </td> > </tr> > </table> > </db:footer> > </db:dbform> > > <%@ include file="httpSnooper.jsp" %> > > </body> > </html> > > And added this to validation.xml: > > <form name="book"> > > <field property="TITLE" depends="required"> > <msg name="required" key="field > name required" resource="false"/> > </field> > </form> > > > This does js validation on Update, but not on Add New or Delete. > > On Add or Delete, the operation is performed and then updates > are attempted. There is server-side validation, but the error > messages are just displayed at the top with no clue on where > the errors come from. > > Is there a way to have validation done in js on the client > for all cases? > > Thanks, > Steve > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms