Define Custom Data Type
<p>I'm trying to define a own custom datatype by extending SimpleType. I want to bind it against an Input Field. But something I must be doing wrong because my custom type is ignored completely.</p>

<p>Here my snipplets:</p>

<pre><code>sap.ui.define([
    "sap/ui/model/SimpleType",
    "sap/ui/model/ValidateException"
], function (SimpleType, ValidateException) {
    "use strict";

    return SimpleType.extend("my.model.customFloat", {

        formatValue: function(oValue) {

            return parseFloat(oValue);
        },
        parseValue: function(oValue) {


            if(isNaN(parseFloat(oValue))) {
                return 0.0
            }

            return parseFloat(oValue);
        },
        validateValue: function(oValue) {
            if(isNaN(parseFloat(oValue))) {
                throw new ValidateException(oValue+" is not a valid decimal value");
            }
        }

    });

});
</code></pre>

<p>and in my view.xml I have used my custom type in this way.</p>

<pre><code>&lt;Input value="{ path:'draftModel&gt;SomeCustomValue', type: 'my.model.customFloat'}" change="onEditDoSomething"/&gt;
</code></pre>

<p>But it doesn't work. When I type something and want to Debug parseValue, formatValue or validateValue, the methods are never been called. What am I doing wrong?</p>