You haven't said what version of the Gadgets library you are using, but I assume it's 1.0.0 (RC1) There was a bug fixed at r724 which came just after that release.
If you are using a more recent version of the gwt-gadgets library and have a small test case that reproduces the issue, I'd like to investigate it. -Eric. On Mon, Oct 27, 2008 at 8:48 AM, zujee <[EMAIL PROTECTED]> wrote: > > Hi all, > When I tried to to run the sample program of HelloGadgets its showing > error like > > > ERROR] Failed to create an instance of > 'com.myApp.client.HelloPreferences' via deferred binding > com.google.gwt.core.client.JavaScriptException: (TypeError): Object > expected > number: -2146823281 > description: Object expected > at com.google.gwt.gadgets.client.impl.PreferencesUtil > $.nativeInitPrefs(Native Method) > at com.google.gwt.gadgets.client.UserPreferences > $Preference.<init>(UserPreferences.java:50) > at > com.google.gwt.gadgets.client.EnumPreference.<init>(EnumPreference.java: > 34) > at com.MyApp.client.HelloPreferencesUserPreferencesImpl > $1.<init>(transient source for > com.myApp.client.HelloPreferencesUserPreferencesImpl:8) > at > com.myApp.client.HelloPreferencesUserPreferencesImpl.<init>(transient > source for com.myApp.client.HelloPreferencesUserPreferencesImpl:8) > at com.google.gwt.core.client.GWT.create(GWT.java:97) > at com.myApp.client.HelloGadgetsGadgetImpl.<init>(transient source > for com.myApp.client.HelloGadgetsGadgetImpl:8) > > any idea, whats missing from my side. > My class is like this.. > public class HelloGadgets extends Gadget<HelloPreferences> ..{..} > > and hellopreference is like public interface HelloPreferences extends > UserPreferences {...} > > its working fine when my HelloGadgets extends Gadget<UserPreferences> > directly,insted of using interface. > > pls help me > thanx in advance > zujee > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---