On Mon, 2003-09-29 at 20:07, Antonio Gallardo wrote: > Bruno Dumon dijo: > > On Mon, 2003-09-29 at 17:29, Antonio Gallardo wrote: > >> Bruno Dumon dijo: > >> > On Sun, 2003-09-28 at 06:54, Antonio Gallardo wrote: > >> > <snip/> > >> >> > >> >> The initial XSP example (in JDO) just insert into the database a > >> new department (id=5" + a name) of course it would not work two > >> times, because the primary key cannot be duplicated. But this XSP > >> example is just to show a proof that the concept can work. We tried > >> to do a example with woody, but for an unknow reasons, the binding > >> does not work with the integer datatype defined in the Employee > >> table of the HSQLDB database shipped with Cocoon. :( > >> > > >> > I guess this is because Woody doesn't have an integer > >> > (java.lang.Integer) datatype yet, only long and bigdecimal. I hope > >> to add that one and others (float and double) in the future. > >> > >> Thanks for your answer. How we can implement this? > > > > Similar to the other datatypes: you need at least a IntegerType and > > IntegerTypeBuilder class (similar to the LongType and LongTypeBuilder > > classes). Then you'll also need "convertors", similar to the > > *LongConvertors. > > I already done all your told. 4 classes and still we got and error. > > Please show us the light again! :-D
Here's some more light: you need to register the new datatype in the file: src/blocks/woody/conf/woody-datatype.xconf Note that after this, you need to do a clean build (or at least remove the cocoon.xconf). -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED]
