Mozilla Problem
Hi All, I run my application is on Mozilla 3.4 then there is no issue but when i run the same thing in Mozilla 3.5.5 then i am facing following issue :- 00:00:34.234 [ERROR] Failed to load module 'shrisurance' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)' at localhost:3262 java.lang.NullPointerException: nullat com.google.gwt.dev.javac.JsniChecker.getSuppressedWarnings(JsniChecker.java: 445)at com.google.gwt.dev.javac.JsniChecker $JsniDeclChecker.visit(JsniChecker.java:115)at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java: 209)at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java: 1294) at org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java: 478)at org.eclipse.jdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java: 576)at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java: 239)at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java: 1239) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java: 687)at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java: 478)at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java: 427)at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater $UnitProcessorImpl.process(CompilationStateBuilder.java:62) at com.google.gwt.dev.javac.JdtCompiler $CompilerImpl.process(JdtCompiler.java:166) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 467)at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:142) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: 281)at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java: 182)at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java: 280)at com.google.gwt.dev.DevModeBase $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 180)at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380)at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222)at java.lang.Thread.run(Unknown Source) Thanks and regards, Sunil Bansal. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Application +Memory Leakage
HI All, I am facing memory leakage problem in my application. I searched on Google but i found that memory leakage may be because of EXT JS because of some cyclic references in between JSNI and DOM objects and browser is not able to handle these DOM objects for garbage collection. I am using following technologies in my application : - GWT 1.6.4 GWT EXT Gilead When i explorer my code then i found some reason that may be cause of Memory Leakage as :- 1.) While i am clearing the widget or setting it's reference to null then i am not removing the listeners explicitly. But i am feeling, this memory leakage is not only because of this not removing listener explicitly and now i am not able to understand how can i remove this problem. So, please tell me if anybody have an idea? 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Why LazyPanel?
Hi All, I am using gwt 1.6.4 and when i listened about it's LazyPanel widget then one thought was coming in my mind i.e. if i use in my widgets then can some effect on performance of widget loading. But when i checked it's example then i found if i follow some good practices in my code i.e. not make any unnecessary objects then it behaves same like as and then there should be no major differences according to performance. Just i want to know what is the difference in between :- Given in GWT Example :- public class LazyPanelExample implements EntryPoint { private static class HelloLazyPanel extends LazyPanel { @Override protected Widget createWidget() { return new Label(Well hello there!); } } public void onModuleLoad() { final Widget lazy = new HelloLazyPanel(); lazy.setVisible(false); PushButton b = new PushButton(Click me); b.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { lazy.setVisible(true); } }); RootPanel root = RootPanel.get(); root.add(b); root.add(lazy); } } And what am i thinking :- public class AlternativeLazyPanelExample implements EntryPoint { public void onModuleLoad() { HorizontalPanel hp = new HorizontalPanel(); PushButton b = new PushButton(Click me); b.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { hp.clear(); Label label = new Label(Well hello there!); hp.add(label); } }); RootPanel root = RootPanel.get(); root.add(b); root.add(hp); } } And as the differences what i am thinking there is major difference i.e. in my case everytime these lines will execute :- hp.clear(); Label label = new Label(Well hello there!); hp.add(label); But object creation is same. And any major differences i.e. is lazyPanel help me for increasing the loading time of widgets. 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT 1.6 Compilation
HI All, I am trying to shift on GWT 1.6. But when i compiled my code on GWT 1.6 then i face some compilation issue. The Exception stack trace is showing as :- [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass$FieldReflector.getPrimFieldValues (Unknown Source) at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am using GWT 1.6, GWT-EXT 2.0.4 and Gilead. Is this problem coming because of Old version of GWT-Ext old version. Thanks and regards, Sunil Bansal. --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead
Hi All, I am using GWT 1.6.4 and Gilead. When i am trying to return the (List)data after executing the sql successfully then I am facing this issue. com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived (RequestCallbackAdapter.java:192) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl (Request.java:264) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch (Request.java:236) at com.google.gwt.http.client.Request.fireOnResponseReceived (Request.java:227) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod (IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke (IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Thanks and regards, Sunil --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead
Hi All, I am using GWT 1.6.4 and Gilead. When i am trying to return the (List)data after executing the sql successfully then I am facing this issue. com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived (RequestCallbackAdapter.java:192) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl (Request.java:264) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch (Request.java:236) at com.google.gwt.http.client.Request.fireOnResponseReceived (Request.java:227) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod (IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke (IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Thanks and regards, Sunil --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hibernate4Gwt inherited issue
Hi All, I am new to Hibernate4GWT. I try to implement in my module and follow the same instruction as given in the Hibernate4GWT test case. According to that one, i creates my BDO's in com.test.modulename.bdo package and imported in the client or widgets. But i am facing some issue i.e. [ERROR] Line 16: No source code is available for type com.test.modulename.bdo.ABC; did you forget to inherit a required module? While i also included the source path in the gwt.xml file as :- source path='bdo'/ source path='client'/ Then also not able to resolve that issue. Please give me solution on that issue. Regards, Sunil. --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hibernate performance in GWT
Hello Friends, When i was trying to use hibernate in GWT then i was found one major problem i.e. PersistentBag is not serializable. For resolving this issue, i read many blogs. According to the blogs, i found many solutions but at last i found when i am using this method then there is some performance methods and can't use hibernate lazy-loading properly because we can't use lazy-loading outside the scope of the Session and so when we use the Hibernate in GWT then we need to close the session on the service/server level while we send the object on the client side. Some described solution for using hibernate in the group are :- 1.)Array instead of collection :- One is the major solution for using the collection object, use array instead of the Collection object. But with this solution there is lot of overhead on the user part i.e. maintain the array properly with index values. 2.)Inverse-Owner objects :- One another solution for supporting the colletion in the hibernate i.e. use only inverse-owner objects instead of the collection object but in this case there is one major problem i.e. whenever we need to use the collections data then we need to send the one extra call on the server everytime for collecting the collections objects and for maintaining that thing code readability also lost. 3.)Maintain PersistentBag/PersistentSet Serializable class :- Somewhere i read about create one serializable class for PersistentBag,PersistentSet and use it. But in this case, we need to create that class on the client side package and while we are creating this after that problem starts i.e. GWT not support for importing org.hibernate.PersistentBag on the client side. 4.)Convertor class :- One another method for using hibernate in GWT is Convertor class i.e. when you send your Object on the client side then you need to use the Convertor class for changing all the PersistentBag/PersistentSet objects in Collection objects.In this case, performance is decreased badly because of lazy-loading .But it's working fine. I used the fourth method with some changes for increaing the performance. I include one Obect Fetch Plan design pattern with the lazy loading. In this pattern, we need to create one xml file where we define the fetch plans with the binding name. for e.g. suppose i have one object A and A having collection of B,C,D and E, F 1-1 objects in class A.B having 1-1 objects of B1, B2. Suppose in this case when i need to fetch the A object from the database then fetch only A, B, B1 not all the other objects as defined in the A objects and in another fetch plan, fetch only A,C,E,F objects then we need to create two fetch plans which we bind with the corresponding Fetch-Plan-Name i.e. A_B and A_C_E_F. When we use hibernate in this way, then i know there is also lazy- loading problem but we can control on the fetching of the objects while we convert the Collections objects. In this way, we need to care one thing i.e. use lazy=true for collection and 1-1 objects. Thanks and regards, Sunil Bansal, +91-9784175320 --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWTExt chart on GWT widgets
Hi Arthur, You are right. I should go in GWT Ext forms for this issue. But GWT- Ext group is not active. So, i put my problem here on Gwt group with the hope for finding the solution of my problem. I know, i am missing one thing, i think there is some problem related to refreshing the charts on any events. Thanks regards, Sunil Bansal. On Dec 18, 6:59 pm, Arthur Kalmenson arthur.k...@gmail.com wrote: Arthur might be able to help you. LMAO. Thanks for the good joke :) Sanj, you may find more help by asking on the gwt-ext group here:http://groups.google.com/group/gwt-ext -- Arthur Kalmenson On Thu, Dec 18, 2008 at 12:34 AM, Rob Smith scubacarri...@gmail.com wrote: Arthur might be able to help you. On Dec 18, 12:08 am, Sanj sunil.ban...@daffodildb.com wrote: Hi All, I am facing a problem in rendering of GWT-EXT charts on GWT widgets in IE. When i am trying to render Chart panel on RootPanel then charts do not render properly in Hosted mode. But if i am adding same panel on viewPort then it's working fine. I have also updated the version of Flash i.e. Adobe 10. SO i think that problem is not occurring because of Flash. I am using this code for rendering the chartPanel :- public class SrisureHome extends EntryPoint { public void onModuleLoad() { MemoryProxy proxy = new MemoryProxy(getData()); RecordDef recordDef = new RecordDef(new FieldDef[] { new IntegerFieldDef(year), new IntegerFieldDef(revenue), new IntegerFieldDef(expense), new IntegerFieldDef(income) }); ArrayReader reader = new ArrayReader(recordDef); final Store store = new Store(proxy, reader); store.load(); SeriesDefX incomeSeries = new SeriesDefX(Income, income); incomeSeries.setType(ChartType.LINE); SeriesDef[] seriesDef = new SeriesDef[] { new SeriesDefX(Revenue, revenue), new SeriesDefX(Expense, expense), incomeSeries }; NumericAxis currencyAxis = new NumericAxis(); final BarChart chart = new BarChart(); chart.setTitle(Income Chart); chart.setStore(store); chart.setSeries(seriesDef); chart.setYField(year); chart.setXAxis(currencyAxis); chart.setWidth(100%); chart.setHeight(100%); RootPanel.get().add(chart); } public static Object[][] getData() { return new Object[][] { new Object[] { new Integer(2003), new Integer (1246852), new Integer(1123359), new Integer(123493) }, new Object[] { new Integer(2004), new Integer(2451876), new Integer(2084952), new Integer(366920) }, new Object[] { new Integer(2005), new Integer (2917246), new Integer(2587151), new Integer(330095) }, new Object[] { new Integer(2006), new Integer(3318185), new Integer(3087456), new Integer(230729) } }; } } If anybody has an idea about this problem then please suggest me where i am wrong or how can i solve this problem. Thanks 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWTExt chart on GWT widgets
Hi All, I am facing a problem in rendering of GWT-EXT charts on GWT widgets in IE. When i am trying to render Chart panel on RootPanel then charts do not render properly in Hosted mode. But if i am adding same panel on viewPort then it's working fine. I have also updated the version of Flash i.e. Adobe 10. SO i think that problem is not occurring because of Flash. I am using this code for rendering the chartPanel :- public class SrisureHome extends EntryPoint { public void onModuleLoad() { MemoryProxy proxy = new MemoryProxy(getData()); RecordDef recordDef = new RecordDef(new FieldDef[] { new IntegerFieldDef(year), new IntegerFieldDef(revenue), new IntegerFieldDef(expense), new IntegerFieldDef(income) }); ArrayReader reader = new ArrayReader(recordDef); final Store store = new Store(proxy, reader); store.load(); SeriesDefX incomeSeries = new SeriesDefX(Income, income); incomeSeries.setType(ChartType.LINE); SeriesDef[] seriesDef = new SeriesDef[] { new SeriesDefX(Revenue, revenue), new SeriesDefX(Expense, expense), incomeSeries }; NumericAxis currencyAxis = new NumericAxis(); final BarChart chart = new BarChart(); chart.setTitle(Income Chart); chart.setStore(store); chart.setSeries(seriesDef); chart.setYField(year); chart.setXAxis(currencyAxis); chart.setWidth(100%); chart.setHeight(100%); RootPanel.get().add(chart); } public static Object[][] getData() { return new Object[][] { new Object[] { new Integer(2003), new Integer (1246852), new Integer(1123359), new Integer(123493) }, new Object[] { new Integer(2004), new Integer(2451876), new Integer(2084952), new Integer(366920) }, new Object[] { new Integer(2005), new Integer (2917246), new Integer(2587151), new Integer(330095) }, new Object[] { new Integer(2006), new Integer(3318185), new Integer(3087456), new Integer(230729) } }; } } If anybody has an idea about this problem then please suggest me where i am wrong or how can i solve this problem. Thanks 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Dynamically load GWT-Ext js
Hi All, If i load all js files at the loading times then application performance makes a huge issue for me because these files takes 15-20 sec for loading. I am thinking, To create my home page in completely as a GWT widget and after loading that home page loading all javascript files through JSNI. I think, i am thinking in right way. But missing one step and don't know where this step is? If anybody have an idea how can i remove that time. Thanks and regards, Sanj. On Dec 11, 9:37 am, Sanj [EMAIL PROTECTED] wrote: Hi All, I want to load my allgwt-extjavascripts 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 alljsfiles loads, but when i am trying to useGWT-Extwidgets. 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 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 -~--~~~~--~~--~--~---
Dynamically load GWT-Ext js
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 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 -~--~~~~--~~--~--~---
FormPanel rendering time
Hi All, I am using GWT EXt formPanel, it takes lot of time in adding/rendering in hosted mode. It takes appx. 1.5 sec for two text fields and two labels. How can i reduce this rendering? I am using GWT-Exit 2.0.4 and GWT 1.5. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---