Hello,

First you must change your interceptor interfaces to the new ones.
See release notes:

2-1) Interceptor interface
-----------------------------------

To have better control over the fields written to the database, the interceptor 
interface for methods 
preUpdate/preInsert/preDelete have been modified to:

      public int preXXXXXX(
                                HttpServletRequest request,  
                                        Table table, 
                                        FieldValues fieldValues,
                                        DbFormsConfig config, 
                                        Connection con) throws ValidationException

You now have full control over the fields written to the database, and can remove, 
change and add new fields by 
simply modifying the FieldValues object.

IMPORTANT: You must change all (call-back) methods in your interceptors to use this 
new signature. Changing the 
code however, is not necessary because the interface of class FieldValues is 
compatible to that of class Hashtable.

Second try to compile your interceptors. You may be some errors with FieldValues. 

To catch you update exception you can set breakpoint inside your new interceptor 
methods - they should be called...
Otherwise the interface is wrong.

To find out more you can look into the org.dbforms.config.Table.processInterceptors 
class...

Hope that helps
Henner

> 
> Hello,
> 
> First, best thanks for this good product. We use it since two 
> years on a lot of pages. I migrate to DBForms2.0, I had to 
> change my Interceptors classes ... now I get an UpdateEvent 
> Exception and have no idea from where it comes. If I'm right 
> this exception comes from the controller and I would know a 
> way to catch it ( exception ) and have any further details on 
> it. Can I use the old interceptor functions with the new version ?
> 
> Best regards.
> 
> 
> Laurent KLEE
> 
> Liebherr France S.A.S.
> Service Informatique / IT Dep. / EDV 
> 2 Avenue Joseph Rey - BP 287 - F-68005 COLMAR
> E-mail: [EMAIL PROTECTED]
> Tel: +33(0)3.89.21.38.05
> Fax: +33(0)3.89.21.37.33
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now! 
> http://ads.osdn.com/?ad_id56&alloc_id438> &op=ick
> 
> _______________________________________________
> 
> DbForms Mailing List
> 
http://www.wap-force.net/dbforms



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to