Gerard van Enk <[EMAIL PROTECTED]> wrote: > >- attributes on the <type> tag in builder xmls. These are database related > >issuses like 'size', > > 'notnull' and 'key'. I think the available attributes are not optimally > > well defined but that is another > > issue.. > > > > Which must be taken care off.
Perhaps related to storage project. > > >- one of the attributes here is also 'doctype' which is relatively new and > >makes only sense for xml > > fields. I don't think it is a very good idea to specify it in the > > db-section > > > > It depends. Some database are capable of storing xml inside a field, > maybe the databaselayer can do some kind of dtd-checking? Perhaps. Does someone know that? In that case it does make some sense. > > > >- MMbase knows the concept of TypeHandler, which principally are > >pluggable. (implement you > > alternative type-handler, place an xml in WEB-INF/classes and it will be > > used by fieldinfo tag). > > You could also define more guitypes like this. > > > > Is there some kind of documentation about these options? Not really. The only things needed: -understand mm:fieldinfo -implement a org.mmbase.bridge.jsp.taglib.typehandler.TypeHandler -turn it on in org.mmbase.bridge.jsp.taglib.resource.typehandler.xml > > >I was trying to define an interface which should fixate the specialization > >information of a certain > >field. It should e.g. somehow be able to inform about the 'possible > >values' of a > >field. Editor-implementations can then request this information to make > >drop-downs if the number is > >limited, or e.g. simply to check (with javascript or so) that the given > >float value is indeed between 0.0 > >and 10.0, as required by the field specialization. > > > > You're creating some kind of FieldType class/interface? Well, that exists already. Perhaps a 'FieldSpecialization' interface or so. Something that provides enough information to implement all taglib's TypeHandlers genericly, and to do it too for other editor-generators. Michiel -- Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] ()
