Re: Building your own GWT library
Thanks a ton Gregor!!!Your response certainly helped. It resolved my issue On Apr 4, 11:25 pm, gregor wrote: > Hi Gugle, > > yes, you need to make a .gwt.xml file. you will then probably > need to specify the source path in it - that can be as simple as: > > > > > // or whatever > > > so "src" (whatever) specifies your module source code location > relative to the .gwt.xml file itself in the jar. Then all you > have to do is inherit the new module in your main GWT application > gwt.xml file and make sure its jar is in the classpath for the GWT > compilation. The GWT compiler will find the .gwt/xml file > first, then follow the source path instruction to find the .java > files. > > regards > gregor > > On Apr 4, 5:28 pm, Gugle wrote: > > > Hi all, > > I'm trying to build a small GWT library of my own to implement a new > > widget. I have created a jar file with the java classes I've written. > > I added this jar file to my classpath in Eclipse and I can access > > these classes from my Eclipse project without any compilation errors. > > For e.g., I have a class 'A' which uses class 'B' which I've developed > > as part of my library. This class compiles fine in Eclipse, but when I > > try to do a GWT compilation using com.google.gwt.dev.GWTCompiler to > > get the JS files generated, I get an error indicating that the class > > 'B' cannot be found, even though the jar file is in classpath in the > > compile command. > > > Can someone advise me on what all should be added to the jar file if I > > need to publish it as a generic GWT library? What all should I define > > in my 'libraryname'.gwt.xml file and where should it be placed?? --~--~-~--~~~---~--~~ 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: Connecting to database with eclipse
It seems like a problem with your client-side code. I'm pretty sure it's a problem with your web.xml file (not declaring your servlet) or with the path you use to instantiate the RPC interface. On Sat, Apr 4, 2009 at 8:14 AM, Cryssyenddo wrote: > > Hi, > > I'm fresh to GWT. > I'm using eclipse to develop a GWT appication and i'm having problems > connecting to my database. > > project name is vCarePortal. I've included my JDBC in eclipse in the > project libraries, and here's my method at my vCarePortal.server > package: > > private Statement stmt; > private String url = "jdbc:mysql://cpcc-2009:3306/"; > private String db = "charityportal"; > private String driver = "com.mysql.jdbc.Driver"; > private String user = "root"; > private String password = "password"; > > /** Connect to database */ > public void connectDatabase(){ > try{ > > Class.forName(driver); > System.out.println("Driver loaded"); > > Connection connection = DriverManager.getConnection(url > +db,user,password); > System.out.println("Database Connected"); > > stmt = connection.createStatement(); > } > > > > catch (Exception ex) { > ex.printStackTrace(); > } > } > > But when i tried to run it, these errors popped out: > > [ERROR] Unable to instantiate > 'vCarePortal.server.DiscussionBoardServiceImpl' > java.lang.ClassNotFoundException: > vCarePortal.server.DiscussionBoardServiceImpl > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet > (GWTShellServlet.java:936) > at com.google.gwt.dev.shell.GWTShellServlet.service > (GWTShellServlet.java:277) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:237) > at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:157) > at org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:214) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardContextValve.invokeInternal > (StandardContextValve.java:198) > at org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:152) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:137) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:118) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:102) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:109) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: > 929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: > 160) > at org.apache.coyote.http11.Http11Processor.process > (Http11Processor.java:799) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt > (PoolTcpEndpoint.java:577) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > (ThreadPool.java:683) > at java.lang.Thread.run(Unknown Source) > > > I have no idea what is wrong with my method here. Can anyone please > help me? > > > > --~--~-~--~~~---~--~~ 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 unsubscrib
Re: opening new page
The Window.Location.assign() method allows you to move to a different page. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Window.Location.html --- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.com On Apr 4, 3:15 pm, bhanu wrote: > Hi Friends, > > I am new to GWT. I have been going through some tutorials and some > other stuffs. But I could not find out > any thing regarding to open new different page. A Simple example is > Login screen. Once the user successfully > logged in, it should be able to open new page and should show his name > like Welcome username. > > One I found out, using formpanel. form.setAction("\newpage"); I tried > to use. But i got some error when I tried to > click login button regarding module name not found in classpath. My > login screen has the entry point. > when I click login button, it should go to the new page .so that new > page should have a session details from the login screen. > > can you please help me? > > Thanks > Bhanu lakshmi --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to get internal widget to notify its parent widget when clicked (and have the parent execute something)
As per the title :) How to get internal widget to notify its parent widget when clicked (and have the parent execute something)? I think it has something to do with sinking and unsinking events but I haven't been able to find a very good example of doing this. Any help would be appreciated! --~--~-~--~~~---~--~~ 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: How to load a new GWT app from another GWT app?
I suggest reading: http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ and http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications These links talk about GWT logins, cookies, and security. A lot of what is provided by sessions on the server simply can be provided by static variables within a GWT application; these will exist for the lifetime of the application (the entire time in which the user remains on the application's page). This is one way in which writing a GWT application is more closely akin to writing a desktop application than to writing a server-side web application. I'm not sure whether one GWT application calling another is possible. For starters, both would have to be on the same page; there also probably is setup that the GWT infrastructure must do before onModuleLoad is called. Finally, the generated code for the applications could conflict in some way. I think that much better strategies would be: 1.) Having multiple GWT modules and compiling them into one GWT application. The downside of this is that if you have lots of large modules, compilation will take a *long* time (making development more difficult). 2.) Having each application on a separate page and navigating from one page to the other. Tony -- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.com On Apr 4, 12:46 am, Shank wrote: > On Apr 3, 10:03 pm, Tony Strauss > wrote: > > > > > One way is to call Window.Location.assign with the URL of the new > > application (which the URL varying based on the user's identity). > > > We've implemented a similar requirement with our current project. Our > > login page actually is *NOT* a GWT application but instead is a simple > > form (handled by a servlet in our web server). Upon a successful > > login, the servlet returns an HTML page linking to the appropriate GWT > > application for the user. > > > Tony > > -- > > Tony Strauss > > Designing Patterns, > > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com > > > On Apr 3, 10:01 am, Shank wrote: > > > > I am new to GWT , i have created a app where a user has to login now > > > whenever a user logs in successfully, i have to load a application > > > according to the user logged in . How do i load a new application from > > > another GWT application. > > can i load a new GWT app by just calling the onModuleLoad method of > the second app from the onModuleLoad of the first app ?? --~--~-~--~~~---~--~~ 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: resize imagebundle
Hello, I had this problem, too. Actually it is how html works. Imagebundle creates css background, and the background image can not be resied AFAICT. Best - István On Sat, Apr 4, 2009 at 10:29 PM, L Frohman wrote: > I couldn't find any information on this. I have an application where the > images > get resized using setWidth(), setHeight(). This shrinks the images to the > requested size. I changed the application to use ImageBundle, and the > images come from AbstractImagePrototype.createImage(). But now, the > setWidth() and setHeight() calls just crop the image instead of shrinking > it. > Has anyone run into this problem or have a solution? > > Thanks, > Lance > > > > > > -- Best Regards - István Szoboszlai istvan.szobosz...@inepex.com | +36 30 432 8533 | inepex.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Connecting to database with eclipse
Hi, I'm fresh to GWT. I'm using eclipse to develop a GWT appication and i'm having problems connecting to my database. project name is vCarePortal. I've included my JDBC in eclipse in the project libraries, and here's my method at my vCarePortal.server package: private Statement stmt; private String url = "jdbc:mysql://cpcc-2009:3306/"; private String db = "charityportal"; private String driver = "com.mysql.jdbc.Driver"; private String user = "root"; private String password = "password"; /** Connect to database */ public void connectDatabase(){ try{ Class.forName(driver); System.out.println("Driver loaded"); Connection connection = DriverManager.getConnection(url +db,user,password); System.out.println("Database Connected"); stmt = connection.createStatement(); } catch (Exception ex) { ex.printStackTrace(); } } But when i tried to run it, these errors popped out: [ERROR] Unable to instantiate 'vCarePortal.server.DiscussionBoardServiceImpl' java.lang.ClassNotFoundException: vCarePortal.server.DiscussionBoardServiceImpl at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet (GWTShellServlet.java:936) at com.google.gwt.dev.shell.GWTShellServlet.service (GWTShellServlet.java:277) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 160) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:683) at java.lang.Thread.run(Unknown Source) I have no idea what is wrong with my method here. Can anyone please help me? --~--~-~--~~~---~--~~ 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: Announcing GWT 1.6 RC2 - issues with cancelKey()
Is TextBoxBase.cancelKey() working ok now in 1.6? While replacing my old listeners to handlers, I notice that the new equivalent KeyDownEvent.stopPropogation() or .preventDefault() is not obeyed. When I tried back with the old cancelKey() it too didn't work. I would like to check if others have seen this problem, if not I'll go hunt in my code. --~--~-~--~~~---~--~~ 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 doesn't work my form?
Hi All! Please help me, if you can. I created an app with GWT, where i've a form, which call a non gwt servlet, because i want to upload files with using this form. I tried so many example from the net, where they upload files. My problem with this, the client code seems not to call the servlet. It's do nothing when i click the submit. I defined the servlet in the gwt xml properly, but do nothing. My servlet create logs to database, but nothing happens when i call submit. I tried another way, i'm used RequestBuilder, and this called the servlet properly, and received the response object, but form can't send data to servlet. The parameter map is null. I don't understand it. I tried in hosted mode. Do you have an idea? This is very important for me. Thanks --~--~-~--~~~---~--~~ 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: Announcing GWT 1.6 RC2 - DateBox.setFormat() nullifies the getValue if the pattern is raw
The following call makes the susequent getValue() to null. DateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat ("MMM dd, HH:mm aaa"))); But the following does not have any problem... DateBox.setFormat(new DateBox.DefaultFormat (DateTimeFormat.getMediumDateTimeFormat())); I don't see any known issue?.. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
resize imagebundle
I couldn't find any information on this. I have an application where the images get resized using setWidth(), setHeight(). This shrinks the images to the requested size. I changed the application to use ImageBundle, and the images come from AbstractImagePrototype.createImage(). But now, the setWidth() and setHeight() calls just crop the image instead of shrinking it. Has anyone run into this problem or have a solution? Thanks, Lance --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
opening new page
Hi Friends, I am new to GWT. I have been going through some tutorials and some other stuffs. But I could not find out any thing regarding to open new different page. A Simple example is Login screen. Once the user successfully logged in, it should be able to open new page and should show his name like Welcome username. One I found out, using formpanel. form.setAction("\newpage"); I tried to use. But i got some error when I tried to click login button regarding module name not found in classpath. My login screen has the entry point. when I click login button, it should go to the new page .so that new page should have a session details from the login screen. can you please help me? Thanks Bhanu lakshmi --~--~-~--~~~---~--~~ 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: Building your own GWT library
Hi Gugle, yes, you need to make a .gwt.xml file. you will then probably need to specify the source path in it - that can be as simple as: // or whatever so "src" (whatever) specifies your module source code location relative to the .gwt.xml file itself in the jar. Then all you have to do is inherit the new module in your main GWT application gwt.xml file and make sure its jar is in the classpath for the GWT compilation. The GWT compiler will find the .gwt/xml file first, then follow the source path instruction to find the .java files. regards gregor On Apr 4, 5:28 pm, Gugle wrote: > Hi all, > I'm trying to build a small GWT library of my own to implement a new > widget. I have created a jar file with the java classes I've written. > I added this jar file to my classpath in Eclipse and I can access > these classes from my Eclipse project without any compilation errors. > For e.g., I have a class 'A' which uses class 'B' which I've developed > as part of my library. This class compiles fine in Eclipse, but when I > try to do a GWT compilation using com.google.gwt.dev.GWTCompiler to > get the JS files generated, I get an error indicating that the class > 'B' cannot be found, even though the jar file is in classpath in the > compile command. > > Can someone advise me on what all should be added to the jar file if I > need to publish it as a generic GWT library? What all should I define > in my 'libraryname'.gwt.xml file and where should it be placed?? --~--~-~--~~~---~--~~ 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: Compiling servlet classes
Hi Sumit, Thomas, Thank you both for your explanations : that's ok now ! Cheers, Mathieu On 1 avr, 20:22, Sumit Chandel wrote: > Hi Mathieu, > Please follow Thomas' advice in his last post. I must have been sleep typing > that night :-) > > Cheers, > -Sumit Chandel > > On Wed, Apr 1, 2009 at 2:24 AM, Thomas Broyer wrote: > > > On 1 avr, 08:09, "m...@gmail.com" wrote: > > > Hi Sumit, > > > > I didn't forget to include the gwt-servlet.jar in the javac classpath, > > > that's why I'm surprised of this error... > > > Er, gwt-servlet does *not* include the javax.servlet classes (it's > > meant do be deployed in your servlet container, which already has > > them), use gwt-dev- for compilation and gwt-servlet only for > > deployment (or add your servlet.jar (or whatever its name) in the > > classpath in addition to gwt-servlet when compiling). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Building your own GWT library
Hi all, I'm trying to build a small GWT library of my own to implement a new widget. I have created a jar file with the java classes I've written. I added this jar file to my classpath in Eclipse and I can access these classes from my Eclipse project without any compilation errors. For e.g., I have a class 'A' which uses class 'B' which I've developed as part of my library. This class compiles fine in Eclipse, but when I try to do a GWT compilation using com.google.gwt.dev.GWTCompiler to get the JS files generated, I get an error indicating that the class 'B' cannot be found, even though the jar file is in classpath in the compile command. Can someone advise me on what all should be added to the jar file if I need to publish it as a generic GWT library? What all should I define in my 'libraryname'.gwt.xml file and where should it be placed?? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How do I implement NodeList?
Hi all! I'm wondering how I can use NodeList with an XML file so output a list of values from tags of the same type: 1st value 2nd value 3rd value 4th value In case case I would like to output all the result tags, I am familar with using XMLParser but am having trouble with finding a way to iterate through a set of values and outputting all of them in order. Cheers! --~--~-~--~~~---~--~~ 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: Calling a function within a native javascript function
Thanks Vitali Lovich, i solved the problem. As Vitali lovich said I was calling function2 in a wrong way(I am new to gwt). If someone has the same problem this link explains JSNI. http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html On Apr 4, 8:55 am, Vitali Lovich wrote: > You're callling it wrong. You still needs to call function2 using > JSNI because the GWT compiler will mangle the name of function2 but > won't realize that it needs to update the reference in the javascript > code you are writing. > > 2009/4/3 alberto : > > > > > Hi > > > I have theese two native javascript functions: (just a simply example) > > > public native void function1( ) { > > alert( function2( ) ); > > } > > > public native int function2( ) { > > return 9; > > } > > > It seems that function1 can not see and invoke function2. > > Is that true? Is there a way to resolve that problem?? > > > Thank yuo --~--~-~--~~~---~--~~ 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: Dependency Injection: rocket-gwt Vs gwtoolbox
You might also want to take a look at Spring ME. It's not targeting GWT in particular, but it currently includes an example that uses it for a GWT application. Spring ME relies on compile time dependency injection, just like GIN. http://springframework.me/ On Feb 27, 10:07 pm, Arthur Kalmenson wrote: > I'm using Google GIN on our current project and it's working out > _very_ well. It's really slick and worked out of the box (aside from > some minor issues which are resolved quickly by the devs). > > -- > Arthur Kalmenson > > > > On Fri, Feb 27, 2009 at 2:45 PM, Thomas Broyer wrote: > > > On 27 fév, 17:41, jesty wrote: > >> I'm starting a new project based on GWT and I wantdependency > >>injection! > >> I've seen this two framework, but I'm not sure about the best choose. > > >> Can you help me? What do you guide me to this choose? > > > I'd go for GIN, which has "little-to-no runtime overhead compared to > > manual DI" thanks to "using GWT's compile-time Generator support". > >http://code.google.com/p/google-gin/ > > > But you might also want to look at Suco: > >http://code.google.com/p/suco/ > > It has a "Guice-like API" but does everything at run-time (contrary to > > GIN which tries to do everything at compile-time) > > > rocket-gwt and gwtoolbox have the same compile-time approach as GIN > > but using a Spring-like XML-based configuration. Given that you get > > bean instances by name, I suspect it has a slight overhead over GIN. > > However, rocket-gwt supports AOP (interceptors/advices) which others > > don't, but again you'll pay it in the compiled code (GIN's plan is to > > inline aspects to reduce overhead, and that's probably why it's not > > implemented yet...) --~--~-~--~~~---~--~~ 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: GWT import external jar
You mean I don't need to add to the OnlineBanker.gwt.xml? On Apr 4, 1:58 am, Vitali Lovich wrote: > Wait, if you only have a dependancy in your server-side code, why are > you trying to integrate the client code? > > On Sat, Apr 4, 2009 at 2:36 AM,Qing wrote: > > > I added FinancialToolkit.gwt.xml into the jar. Doesn't work. do I need > > to put this file to the folder of OnlineBanker as well? > > > On Apr 4, 12:16 am, Nicanor Babula wrote: > >> Hi, > >> It looks like you have to add to your jar file > >> FinancialToolkit.gwt.xml. > >> This may > >> help:http://roberthanson.blogspot.com/2006/05/how-to-package-gwt-component.. > > >> On Saturday 04 April 2009 06:49:14Qingwrote: > > >> > Hi, > > >> > I'm now using gwt develop my web application. I create a gwt project > >> > 'OnlineBanker' in command line and import it into eclipse. The server > >> > side code of OnlineBanker need to use the class in another java > >> > project 'FinancialToolkit'. I export FinancialTookit as a jar file, > >> > and import it into OnlineBanker by following away: > >> > OnlineBanker->Properties->Java build path-> libraries -> Add external > >> > Jars > >> > and I add > >> > into OnlineBanker.gwt.xml > >> > I run it as OnlineBanker-shell, there's error > >> > [ERROR] Unable to find 'FinancialTookit.gwt.xml' on your classpath; > >> > could be a typo, or maybe you forgot to include a classpath entry for > >> > source? > > >> > Any advice? --~--~-~--~~~---~--~~ 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: Failed to load module
It's working now Hoooray! Actually I can't explain the reason for it. I've deinstalled IE 7 again and then I reinstalled it (including all bug fixes etc.). Since the first deinstallation I haven't changed the code and now it's working! Vitali, thank you so much for your support! I already wanted to kick GWT away but your help motivated me to find the reason! [TOPIC CLOSED] On 4 Apr., 13:37, Vitali Lovich wrote: > No, I meant put something like GWT.log(RootPanel.get().toString(), > null) as the first line of your onModuleLoad & post the result of > that. For some reason, it's not finding your div tag, hence returning > null & crashing when you try to access the add method. > > On Sat, Apr 4, 2009 at 6:21 AM, Chuck wrote: > > > The HTML code seems to be ok: > > > > > > > > > > > Homepage > > > src="website.Index.nocache.js"> > > > > > > > > > > > > > > > style="position:absolute;width:0;height:0;border:0"> > > > > > > > I hope it's what you meant by your expression. Thank you very much for > > your help so far!!! > > > On 4 Apr., 11:38, Vitali Lovich wrote: > >>http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > >> Are you sure your HTML is correct? Can you post the appropriate page? > >> Don't post the HTML file - instead post the output of > >> RootPanel.get().toString() - that shows you the HTML context that GWT > >> sees. > > >> On Sat, Apr 4, 2009 at 4:53 AM, Chuck wrote: > > >> > Yes: > > >> > [ERROR] Unable to load module entry point class website.client.Index > >> > (see associated exception for details) > >> > java.lang.NullPointerException: null > >> > at website.client.Index.onModuleLoad(Index.java:46) > >> > 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.ModuleSpace.onLoad(ModuleSpace.java:320) > >> > at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace > >> > (BrowserWidget.java:329) > >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 > >> > (BrowserWidgetIE6.java:37) > >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad > >> > (BrowserWidgetIE6.java:76) > >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke > >> > (BrowserWidgetIE6.java:139) > >> > 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.GWTShell.pumpEventLoop(GWTShell.java:720) > >> > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) > >> > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > > >> > I read somewhere that I have to uninstall IE 7 to fix this problem. > >> > I've done that but it didn't work. > > >> > On 4 Apr., 10:33, Vitali Lovich wrote: > >> >> Can you please post the exception you get? It should be in the log. > > >> >> On Sat, Apr 4, 2009 at 3:52 AM, Chuck wrote: > > >> >> > Hi there! > > >> >> > I'm a starter and I already got troubles running my project. I > >> >> > searched a lot of forums and old threads but I couldn't find a > >> >> > solution. I'm developing with Eclipse and there seems to be something > >> >> > wrong with the RootPanel.add(String).add(x). It works as long as the > >> >> > parameter of add() is empty but as soon as I add my id of the HTML > >> >> > code it crashes with the error message: > > >> >> > "Failed to load module website.index". Please see the log in the > >> >> > development shell for details." > > >> >> > Development Shell: Unable to load module entry point class > >> >> > website.client.Index (see associated exception for details) > > >> >> > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown > >> >> > correctly. > > >> >> > RootPanel.get("navi").add(bar); --> crashes because of the error > >> >> > mentioned above > > >> >> > HTML Code: > > >> >> > Does somebody has an idea? I already checked the libraries but I > >> >> > couldn't find anything... --~--~-~--~~~---~--~~ 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-
Re: Failed to load module
No, I meant put something like GWT.log(RootPanel.get().toString(), null) as the first line of your onModuleLoad & post the result of that. For some reason, it's not finding your div tag, hence returning null & crashing when you try to access the add method. On Sat, Apr 4, 2009 at 6:21 AM, Chuck wrote: > > The HTML code seems to be ok: > > > > > > Homepage > src="website.Index.nocache.js"> > > > > > > > > style="position:absolute;width:0;height:0;border:0"> > > > > > I hope it's what you meant by your expression. Thank you very much for > your help so far!!! > > > > > On 4 Apr., 11:38, Vitali Lovich wrote: >> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... >> >> Are you sure your HTML is correct? Can you post the appropriate page? >> Don't post the HTML file - instead post the output of >> RootPanel.get().toString() - that shows you the HTML context that GWT >> sees. >> >> On Sat, Apr 4, 2009 at 4:53 AM, Chuck wrote: >> >> > Yes: >> >> > [ERROR] Unable to load module entry point class website.client.Index >> > (see associated exception for details) >> > java.lang.NullPointerException: null >> > at website.client.Index.onModuleLoad(Index.java:46) >> > 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.ModuleSpace.onLoad(ModuleSpace.java:320) >> > at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace >> > (BrowserWidget.java:329) >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 >> > (BrowserWidgetIE6.java:37) >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad >> > (BrowserWidgetIE6.java:76) >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke >> > (BrowserWidgetIE6.java:139) >> > 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.GWTShell.pumpEventLoop(GWTShell.java:720) >> > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) >> > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) >> >> > I read somewhere that I have to uninstall IE 7 to fix this problem. >> > I've done that but it didn't work. >> >> > On 4 Apr., 10:33, Vitali Lovich wrote: >> >> Can you please post the exception you get? It should be in the log. >> >> >> On Sat, Apr 4, 2009 at 3:52 AM, Chuck wrote: >> >> >> > Hi there! >> >> >> > I'm a starter and I already got troubles running my project. I >> >> > searched a lot of forums and old threads but I couldn't find a >> >> > solution. I'm developing with Eclipse and there seems to be something >> >> > wrong with the RootPanel.add(String).add(x). It works as long as the >> >> > parameter of add() is empty but as soon as I add my id of the HTML >> >> > code it crashes with the error message: >> >> >> > "Failed to load module website.index". Please see the log in the >> >> > development shell for details." >> >> >> > Development Shell: Unable to load module entry point class >> >> > website.client.Index (see associated exception for details) >> >> >> > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown >> >> > correctly. >> >> >> > RootPanel.get("navi").add(bar); --> crashes because of the error >> >> > mentioned above >> >> >> > HTML Code: >> >> >> > Does somebody has an idea? I already checked the libraries but I >> >> > couldn't find anything... > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
part time designer wanted
Looking for designer to do CSS for gwt. 1. pls provide sample work 2. expected charge --~--~-~--~~~---~--~~ 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: Failed to load module
The HTML code seems to be ok: Homepage I hope it's what you meant by your expression. Thank you very much for your help so far!!! On 4 Apr., 11:38, Vitali Lovich wrote: > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > Are you sure your HTML is correct? Can you post the appropriate page? > Don't post the HTML file - instead post the output of > RootPanel.get().toString() - that shows you the HTML context that GWT > sees. > > On Sat, Apr 4, 2009 at 4:53 AM, Chuck wrote: > > > Yes: > > > [ERROR] Unable to load module entry point class website.client.Index > > (see associated exception for details) > > java.lang.NullPointerException: null > > at website.client.Index.onModuleLoad(Index.java:46) > > 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.ModuleSpace.onLoad(ModuleSpace.java:320) > > at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace > > (BrowserWidget.java:329) > > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 > > (BrowserWidgetIE6.java:37) > > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad > > (BrowserWidgetIE6.java:76) > > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke > > (BrowserWidgetIE6.java:139) > > 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.GWTShell.pumpEventLoop(GWTShell.java:720) > > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) > > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > > > I read somewhere that I have to uninstall IE 7 to fix this problem. > > I've done that but it didn't work. > > > On 4 Apr., 10:33, Vitali Lovich wrote: > >> Can you please post the exception you get? It should be in the log. > > >> On Sat, Apr 4, 2009 at 3:52 AM, Chuck wrote: > > >> > Hi there! > > >> > I'm a starter and I already got troubles running my project. I > >> > searched a lot of forums and old threads but I couldn't find a > >> > solution. I'm developing with Eclipse and there seems to be something > >> > wrong with the RootPanel.add(String).add(x). It works as long as the > >> > parameter of add() is empty but as soon as I add my id of the HTML > >> > code it crashes with the error message: > > >> > "Failed to load module website.index". Please see the log in the > >> > development shell for details." > > >> > Development Shell: Unable to load module entry point class > >> > website.client.Index (see associated exception for details) > > >> > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown > >> > correctly. > > >> > RootPanel.get("navi").add(bar); --> crashes because of the error > >> > mentioned above > > >> > HTML Code: > > >> > Does somebody has an idea? I already checked the libraries but I > >> > couldn't find anything... --~--~-~--~~~---~--~~ 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: navigating from one HTML page to another
Not only that, but you may want to brush up on what Javascript is. Just because you write GWT code in Java, it's still Javascript in the end. If you figure out a way to maintain session state purely on the client-side (especially through Javascript only) between pages I'd like to hear about it. Cause that would be a huge security & privacy flaw in the browser. One hack, that may or may not work, would be to have p1 & p2 include p3.html as an iframe. P3 then maintains "state" through cookies which hopefully haven't been cleared in the transition. The other, proper way, would be to have p3 (your actual app) load p1 in an iframe. then when a request is made, load p2. However, you're going to have XSS issues - AFAIK, this kind of stuff of scripts communicating between different pages is an HTML5 "feature". On Sat, Apr 4, 2009 at 12:33 AM, Ian Bambury wrote: > Why do you want to do it like this? It's a very strange requirement for an > Ajax-based site, and not wanting to remove and add widgets means that you > will get very little (if any) benefit from using GWT. > If that is really what you want to do, I'd suggest looking at some other > languages. > Ian > > http://examples.roughian.com > > > 2009/4/4 mrfreeze81 >> >> I want to navigate from one HTML page to another (P1.html to P2.html). >> On start up my code loads P1.html as entrypoint. I have a few buttons >> there as navigation buttons. One of the buttons when clicked should >> take me to p2.html. >> >> I have to load a new page (that's my requirement) but do not want to >> refresh or clean my Rootpanel and add a new widget. I also want to >> retain my session when I move from p1.html to p2.html. >> >> How do I go about this,. >> >> Thanks in advance >> >> > > > > > --~--~-~--~~~---~--~~ 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: Failed to load module
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/a776eb5c819b510a?pli=1 Are you sure your HTML is correct? Can you post the appropriate page? Don't post the HTML file - instead post the output of RootPanel.get().toString() - that shows you the HTML context that GWT sees. On Sat, Apr 4, 2009 at 4:53 AM, Chuck wrote: > > Yes: > > [ERROR] Unable to load module entry point class website.client.Index > (see associated exception for details) > java.lang.NullPointerException: null > at website.client.Index.onModuleLoad(Index.java:46) > 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.ModuleSpace.onLoad(ModuleSpace.java:320) > at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace > (BrowserWidget.java:329) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 > (BrowserWidgetIE6.java:37) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad > (BrowserWidgetIE6.java:76) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke > (BrowserWidgetIE6.java:139) > 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.GWTShell.pumpEventLoop(GWTShell.java:720) > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > > > I read somewhere that I have to uninstall IE 7 to fix this problem. > I've done that but it didn't work. > > On 4 Apr., 10:33, Vitali Lovich wrote: >> Can you please post the exception you get? It should be in the log. >> >> On Sat, Apr 4, 2009 at 3:52 AM, Chuck wrote: >> >> > Hi there! >> >> > I'm a starter and I already got troubles running my project. I >> > searched a lot of forums and old threads but I couldn't find a >> > solution. I'm developing with Eclipse and there seems to be something >> > wrong with the RootPanel.add(String).add(x). It works as long as the >> > parameter of add() is empty but as soon as I add my id of the HTML >> > code it crashes with the error message: >> >> > "Failed to load module website.index". Please see the log in the >> > development shell for details." >> >> > Development Shell: Unable to load module entry point class >> > website.client.Index (see associated exception for details) >> >> > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown >> > correctly. >> >> > RootPanel.get("navi").add(bar); --> crashes because of the error >> > mentioned above >> >> > HTML Code: >> >> > Does somebody has an idea? I already checked the libraries but I >> > couldn't find anything... > > > --~--~-~--~~~---~--~~ 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: Failed to load module
Yes: [ERROR] Unable to load module entry point class website.client.Index (see associated exception for details) java.lang.NullPointerException: null at website.client.Index.onModuleLoad(Index.java:46) 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.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 (BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:139) 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.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) I read somewhere that I have to uninstall IE 7 to fix this problem. I've done that but it didn't work. On 4 Apr., 10:33, Vitali Lovich wrote: > Can you please post the exception you get? It should be in the log. > > On Sat, Apr 4, 2009 at 3:52 AM, Chuck wrote: > > > Hi there! > > > I'm a starter and I already got troubles running my project. I > > searched a lot of forums and old threads but I couldn't find a > > solution. I'm developing with Eclipse and there seems to be something > > wrong with the RootPanel.add(String).add(x). It works as long as the > > parameter of add() is empty but as soon as I add my id of the HTML > > code it crashes with the error message: > > > "Failed to load module website.index". Please see the log in the > > development shell for details." > > > Development Shell: Unable to load module entry point class > > website.client.Index (see associated exception for details) > > > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown > > correctly. > > > RootPanel.get("navi").add(bar); --> crashes because of the error > > mentioned above > > > HTML Code: > > > Does somebody has an idea? I already checked the libraries but I > > couldn't find anything... --~--~-~--~~~---~--~~ 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: Failed to load module
Can you please post the exception you get? It should be in the log. On Sat, Apr 4, 2009 at 3:52 AM, Chuck wrote: > > Hi there! > > I'm a starter and I already got troubles running my project. I > searched a lot of forums and old threads but I couldn't find a > solution. I'm developing with Eclipse and there seems to be something > wrong with the RootPanel.add(String).add(x). It works as long as the > parameter of add() is empty but as soon as I add my id of the HTML > code it crashes with the error message: > > "Failed to load module website.index". Please see the log in the > development shell for details." > > Development Shell: Unable to load module entry point class > website.client.Index (see associated exception for details) > > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown > correctly. > > RootPanel.get("navi").add(bar); --> crashes because of the error > mentioned above > > HTML Code: > > Does somebody has an idea? I already checked the libraries but I > couldn't find anything... > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Failed to load module
Hi there! I'm a starter and I already got troubles running my project. I searched a lot of forums and old threads but I couldn't find a solution. I'm developing with Eclipse and there seems to be something wrong with the RootPanel.add(String).add(x). It works as long as the parameter of add() is empty but as soon as I add my id of the HTML code it crashes with the error message: "Failed to load module website.index". Please see the log in the development shell for details." Development Shell: Unable to load module entry point class website.client.Index (see associated exception for details) RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown correctly. RootPanel.get("navi").add(bar); --> crashes because of the error mentioned above HTML Code: Does somebody has an idea? I already checked the libraries but I couldn't find anything... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---