isomorphic-software / smartgwt

Smart GWT is a GWT-based framework that allows you to not only utilize its comprehensive widget library for your application UI, but also tie these widgets in with your server-side for data management.
35 stars 22 forks source link

Unable to override FormItem.getCriterion() #323

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

FormItem has the following method:

    public native void getCriterion() /*-{
        var self = this.@com.smartgwt.client.core.DataClass::getJsObj()();
        self.getCriterion();
    }-*/;

According to its Javadoc, I should override it to provide a specialized
criteria. But the method returns "void" instead of returning a "Criteria".

I didn't investigate in further details the mecanisms of overriding
javascript methods, but I think the method should follow the model of
ComboBoxItem's getPickListFilterCriteria(), accompanied by ComboBoxItem's
native init() method which sets up the override logic.

What version of the product are you using? On what operating system?
SmartGWT trunk (r742)

Keep up the great work!

Regards

Original issue reported on code.google.com by nev...@gmail.com on 19 Sep 2009 at 1:17

GoogleCodeExporter commented 8 years ago
great!

Original comment by grs...@gmail.com on 25 Nov 2009 at 2:36

GoogleCodeExporter commented 8 years ago

Original comment by sanjiv.j...@gmail.com on 14 Nov 2010 at 12:20