Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

FloatItem getValueAsFloat() exception

$
0
0
Isomorphic SmartClient/SmartGWT Framework (v9.0p_2014-02-28/EVAL Deployment 2014-02-28)

Uncaught exception escaped : com.google.gwt.event.shared.UmbrellaException
Exception caught: invoke arguments: JS value of type string, expected float
See the Development console log for details.
Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.

FormItem.class
Code:

    /**
    * Return the value tracked by this form item.
    *
    * @return value of this element
    */
    public native Float getValueAsFloat() /*-{
        var self = this.@com.smartgwt.client.core.DataClass::getJsObj()();
        var ret;
        if(self.setValue) {
            ret = self.getValue();
        } else {
            ret = self.value;
        }
        if(ret==null) return null;
        return @com.smartgwt.client.util.JSOHelper::toFloat(F)(ret);
    }-*/;


Viewing all articles
Browse latest Browse all 4756

Trending Articles