Hi All,


I want to load my all gwt-ext javascripts files after my home page. I
think, there should be one method through JSNI like this :-

        public static native void loadScript() /*-{
             document.write('<script src="js//ext//adapter//yui//yui-
utilities.js" type="text/javascript"></script>');
             document.write('<script src="js//ext//adapter//yui/ext-yui-
adapter.js" type="text/javascript"></script>');
             document.write('<script src="js//ext//ext-all.js" type="text/
javascript"></script>');
             document.write('<script src="js//DDView.js" type="text/
javascript"></script>');
             document.write('<script src="js//Multiselect.js" type="text/
javascript"></script>');
             document.write('<script
src="com.shrisure.SrisureHome.nocache.js" type="text/javascript"></
script>');
             }-*/;


Through this method, my all js files loads, but when i am trying to
use GWT-Ext widgets. It throws an exception :

Caused by: com.google.gwt.core.client.JavaScriptException:
(TypeError): '$wnd.Ext.StatusBar' is null or not an object
 number: -2146823281
 description: '$wnd.Ext.StatusBar' is null or not an object
        at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
        at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)


Thanks and regards,

Sanj.
--~--~---------~--~----~------------~-------~--~----~
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