Update of /var/cvs/src/org/mmbase/datatypes/handlers
In directory james.mmbase.org:/tmp/cvs-serv24543
Modified Files:
package.html
Log Message:
javadoc
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/handlers
Index: package.html
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/handlers/package.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- package.html 17 Apr 2009 16:54:48 -0000 1.3
+++ package.html 17 Apr 2009 20:04:07 -0000 1.4
@@ -7,7 +7,27 @@
<p>
This is a generalization of what used to be
org.mmbase.bridge.jsp.taglib.typehandler.
</p>
- <!-- version of package description $Id: -->
+ <p>
+ The idea is that the DataType itself can define how an editor field for
its values should look
+ like. It can do this per content type, because one could make editors in
other environments
+ than an HTML form.
+ </p>
+ <p>
+ Handlers can be defined in the datatype xmls like so:
+ <pre><![CDATA[
+ <datatype xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <handler mimetype="text/html,application/xml+xhtml"
+ name="org.mmbase.datatypes.handlers.html.BinaryHandler"
/>
+]]>
+ </pre>
+ So, you define per list of mime types (in this case the most usual case:
HTML and XHTML), the
+ {...@link #Handler}.
+ </p>
+ <p>
+ In the body of the handler tag, 'param' tags can be used to set
properties on the handler
+ instance (which uses reflection to find corresponding setter-methods).
+ </p>
+ <!-- version of package description $Id: package.html,v 1.4 2009/04/17
20:04:07 michiel Exp $-->
@since MMBase-1.9.1
</body>
</html>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs