I have to show a listbox programmatically ( as I let the user
rearrange the order of the items ). I tried the following code but i
get an exception...

    public static native void fireClickListener(ListBox list) /*-{
    var cl =
[email protected]::clickListeners;
 
[email protected]::fireClick
(Lcom/google/gwt/user/client/ui/Widget;)(list);
}-*/;


[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: JavaScript TypeError
exception: 'null' is null or not an object
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
481)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
(ModuleSpace.java:270)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
(JavaScriptHost.java:137)


Maybe the "cl" referring to the clickListeners is not correct...any
ideas appreciated.


Thx

-- pady
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to