Here's how I found it. While trying to add my custom form widget to the form
I got the error "not supported for reseting". I found in the Qooxdoo source
where this check happens and in Resetter.js:51 this line evaluates false:
"if (this.__supportsValue(item))". Here is the method definition for
__supportsValue:
__supportsValue : function(formItem) {
var clazz = formItem.constructor;
return (
qx.Class.hasInterface(clazz, qx.ui.form.IBooleanForm) ||
qx.Class.hasInterface(clazz, qx.ui.form.IColorForm) ||
qx.Class.hasInterface(clazz, qx.ui.form.IDateForm) ||
qx.Class.hasInterface(clazz, qx.ui.form.INumberForm) ||
qx.Class.hasInterface(clazz, qx.ui.form.IStringForm)
);
}
So my conclusion is either to use one of the standard form widget interfaces
or redefine the add method to use a modified version of __supportsValue that
allows custom interfaces. I can use the IStringForm interface and everything
works just fine, but for that matter any "valid" interface works since they
all have the same prototypes defined. This same issue exists in the
validation manager as well.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Custom-form-widget-Interfaces-tp5462306p5465690.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel