Re: VerticalPanel insert and index
If anyone else ever wonder about this issue I looked in the source code and the index range is actually set using the getWidgetCount() which I think is wrong but nevermind. As a workaround I'm using another grid with 1 column and k rows for each column so I can have an uneven grid On 25 נובמבר, 11:27, Ittai wrote: > Hi, > I tested and saw that when the verticalPanel is created it will > receive the index values of 0 and 1. and if you add by panel.add > (widget) > a label then you will be able to use 0,1,2 > but still I have no way to manipulate the index myself > Please has anyone any idea? > > On 24 נובמבר, 18:38,Ittai wrote: > > > > > Hello all, > > I have an array of strings which I divide unevenly between different > > columns of a grid (by some unrelated logic) and I need the string in > > the i place of the array to be inserted to the i place of the column. > > My grid holds one row and 6 columns and in each column I have a > > VerticalPanel which acts as my column, mainly because the columns are > > in different sizes and can change. > > What i wanted to do is something like this: > > > for (int i=0;i > Label labelWidget = new Label(array[i]); > > getVerticalPanelColumn().insert(labelWidget,i); //where > > getVerticalPanelColumn() is my method > > } > > > Now I noticed that the API stated that IndexOutOfBounds will be thrown > > if the index passed to insert is out of range but the problem is that > > I couldn't, for the life of me, find any way to set the range'/size/ > > capacity of the verticalPanel or to query it (and I don't mean > > widgetCount() I mean the index to which I can relate). > > So basically as a horibble workaround (which I won't use) I think I > > can add "i" null widgets to the VerticalPanel thus I believe I will > > increment the index and do my iteration but this hack is irrelevant > > for me due to the "cost" of all those null widgets addition to all my > > columns. > > Basically I would like the insert to just insert the widget at the > > closest point to i that is if i==5 and the panel holds only widget > > whose index is 1 4 7 then the insert should insert the widget between > > 4 and 7 if i==10 it should just insert it in the end and remeber its > > index is 10. > > > Has anyone encountered this? > > Isn't this some sort of bug that you have no way to set or query an > > object about the index range but you can pass it an index variable? > > > Thanks a million for any help > >Ittai-הסתר טקסט מצוטט- > > -הראה טקסט מצוטט- -- 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.
Re: Should we use maven or not for a project?
I think there is an Ant integration for Maven, so it should be possible to reuse existing Ant builds. But I'm not sure how well it works. So the reasons, why Maven is easy for our GWT project is simple. We do Java development and all our GWT modules are build as plain Java projects, as JARs (containing a file called xxx.gwt.xml and the source code), that's it. So our whole Maven stuff works completely as pure Java stuff like in any other Java project to. The only point where GWT integration comes in, is that in our web app's POM file, there is the GWT-Maven plugin configured to compile a specified GWT module (included in a JAR, which is a provided-scoped dependency) as JavaScript to the web-app directory (so it's included in the WAR). We don't use GWT unit tests, instead our code is as independent from GWT as possible (e. g. MVP Pattern) and normal unit tests work well. We don't use i18n Message interface generation, since it doesn't increase productivity, we're using an IDE. We don't run anything from Maven, we're launching our development environments from Eclipse (GWT plugin). So at least, Maven has two roles in our project. The first is doing the build, running the unit tests automatically, but all on top of typical Java projects. The second is the project configuration. We're using m2eclipse plugin to enable Eclipse configuration by Maven. Since we're doing no special stuff, m2eclipse configures our Maven projects as simple Java projects or web projects. There is one project containing our 'main' GWT module, this has to be made a GWT project manually (GWT Eclipse plugin, just do it once) to launch the hosted browser from the IDE. This works well, except sometimes m2eclipse changes the order of the libraries in Eclipse classpath and then hosted browser crashes, but it can be fixed easily. I wouldn't do it another way, if I had chosen Ant or Gradle or anything else. The rules are clear, use the power of your IDE for development (it's not the work a build tool is made for) and keep your project a Java project. The second point is important. You can do standard Java development with JUnit or TestNG, standard packaging and build tool configuration and that's exactly, what I recommend. Reduce GWT to the things it's really needed for in your project. Regards Jan Ehrhardt On Sat, Nov 28, 2009 at 11:47 PM, jbdhl wrote: > Thanks for all your insightful comments! It seems that there is no de- > facto correct answer to my original question, so let me instead, for > simplicity, ask for elaboration of the three following questions: > > * The pro-maven replies above all states something like "maven makes a > lot of things easy", which is kind of unspecific. As far as I can see > (and I might miss something), many of the gwt-shortcuts in maven is > sort direct mappings to commands that are already there in gwt: e.g. > there are already gwt commands for i18n-interface creation. Also, > whole unittest suites can be run from within eclipse, so as far as I > can see, maven doesn't solve any problems there. What is it that maven > solves so elegantly that cannot be done just as elegant by using > "naked" gwt? > > * Assume we start developing without maven. If we later decide to use > maven, how complicated would you guess that the project convertion > would be (from non-maven to maven)? That is, is it easy or complicated > to convert an existing project to maven? Notice, there is a lot of non- > java stuff in the project, such as shell scripts, LaTeX documents, > Makefiles, text files, etc). > > * Just to be clear: does maven contain the functionality of GNU make > or ant? Can it solve the same problems as make and ant? > > -- > > 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. > > > -- 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.
LayoutPanel support in RC2
Has anybody managed to get the GWT layout panels to work in RC2? In the javadoc for SplitLayoutPanel has the following example that does not work for me, it just shows a blank page. SplitLayoutPanel p = new SplitLayoutPanel(); p.addWest(new HTML("navigation"), 128); p.addNorth(new HTML("list"), 384); p.add(new HTML("details")); RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(p); Is there some extra css I need to use? My host html page looks like this http://www.w3.org/ TR/html4/strict.dtd"> My Application -- 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.
Re: Controlling desktop windows size and position.
Java is not Javascript. On Nov 28, 8:01 pm, Patrick Simons wrote: > I'm sure there is a way, I've seen Java applications do this before > > On Mon, Nov 23, 2009 at 10:09 AM, Martin Trummer > wrote: > > > you can't do that with html/javascript, so GWT can't help you > > > On 19 Nov., 18:35, PatrickJ wrote: > > > Is there and equivalent functional in GWT to VB's FindWindow, > > > ShowWindow and MoveWindow? > > > > I would like to write a simple GWT application that would list all > > > applications running on a Windows PC and have the ability to control > > > the window's position attributes. > > > > Patrick > > > -- > > > 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=. -- 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.
Re: DatePicker starting week on Monday
On 12 nov, 00:20, santins wrote: > Is there a way to change the first day of the week from Sunday to > Monday? It's automatic depending on the locale. See http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideSpecifyingLocale to learn how the locale is determined and how to set an explicit locale. -- 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.
Re: Running GWTTestCase in Netbeans IDE and "Java heap space" error
http://codepimpsdotorg.blogspot.com/2009/10/netbeans-and-gwttestcase.html On Nov 27, 5:27 am, danielgue wrote: > Hi List! > > I use Netbeans 6.7.1 and GWT 1.7. > > I already tried to find if this problem has been reported before and > indeed found one > thread which I mention below. > > The problem is that within my Netbeans IDE I simply cannot run *any* > GWTTestCase > because there is always a "java.lang.OutOfMemoryError: Java heap > space" error > (see below for error message). > > I already tried to fix this by allocating more memory but it didn't > help. > > The problem seems to have been reported back in July last year: > > http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > Ironically, while being not able to run any GWTTestCase in Netbeans > (standard JUnit > tests all work), I immediately succeeded running one GWTTestCase in a > different > application with Eclipse and the Google GWT Plugin. So I checked, but > could not find > any differences between both projects concerning the compiling process > and the > tests. In fact, I even got the same "Java heap space" error within > Eclipse as I used > "Run As... JUnit Test" within the Eclipse context menu - if I use the > "correct" > "Run As... GWT JUnit Test" (which is provided by the Google GWT > Plugin, I think) any > GWTTestCase in Eclipse works. > > Does this indicate anything that helps to solve my problem? What can > be the difference > between those two options in Eclipse and what happens if I choose one > or the other? > > Many thanks in advance and regards, > > Daniel > > NewClassGWTTestCase): Caused an ERROR > Java heap space > java.lang.OutOfMemoryError: Java heap space > at java.lang.AbstractStringBuilder. > (AbstractStringBuilder.java:45) > at java.lang.StringBuilder.(StringBuilder.java:68) > at java.lang.Throwable.toString(Throwable.java:344) > at java.lang.String.valueOf(String.java:2826) > at java.io.PrintWriter.println(PrintWriter.java:710) > at java.lang.Throwable.printStackTrace(Throwable.java:509) > at > org.eclipse.jdt.internal.compiler.Compiler.handleInternalException > (Compiler.java:562) > at org.eclipse.jdt.internal.compiler.Compiler.compile > (Compiler.java:498) > at com.google.gwt.dev.javac.JdtCompiler.doCompile > (JdtCompiler.java:266) > at com.google.gwt.dev.javac.CompilationState.compile > (CompilationState.java:189) > at com.google.gwt.dev.javac.CompilationState.refresh > (CompilationState.java:178) > at com.google.gwt.dev.javac.CompilationState. > (CompilationState.java:93) > at com.google.gwt.dev.cfg.ModuleDef.getCompilationState > (ModuleDef.java:264) > at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle > (ModuleDef.java:325) > at > com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule > (JUnitShell.java:364) > at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java: > 626) > at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java: > 346) > at com.google.gwt.junit.client.GWTTestCase.runTest > (GWTTestCase.java:219) > at com.google.gwt.junit.client.GWTTestCase.run > (GWTTestCase.java:132) -- 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.
Re: How to create a login in gwt?
salvador.ce pisze: > > look at this linkhttp://www.dariusz-borowski.com/wp/?p=20 Thats actually ueless - no auth stuff mentioned at all :) -- Jacek -- 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.
Re: Should we use maven or not for a project?
Thanks for all your insightful comments! It seems that there is no de- facto correct answer to my original question, so let me instead, for simplicity, ask for elaboration of the three following questions: * The pro-maven replies above all states something like "maven makes a lot of things easy", which is kind of unspecific. As far as I can see (and I might miss something), many of the gwt-shortcuts in maven is sort direct mappings to commands that are already there in gwt: e.g. there are already gwt commands for i18n-interface creation. Also, whole unittest suites can be run from within eclipse, so as far as I can see, maven doesn't solve any problems there. What is it that maven solves so elegantly that cannot be done just as elegant by using "naked" gwt? * Assume we start developing without maven. If we later decide to use maven, how complicated would you guess that the project convertion would be (from non-maven to maven)? That is, is it easy or complicated to convert an existing project to maven? Notice, there is a lot of non- java stuff in the project, such as shell scripts, LaTeX documents, Makefiles, text files, etc). * Just to be clear: does maven contain the functionality of GNU make or ant? Can it solve the same problems as make and ant? -- 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.
Re: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code.
Alessandro Loche wrote: > (p.s. Why returning ArrayList instead of List? Separate interface from > implementation...) > > With GWT, it is better to use concrete implementations in your RPC API. If you use List instead of ArrayList, then the GWT compile will look for every List implementation to compile it to javascript. Paul -- 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.
Re: Controlling desktop windows size and position.
Please tell us you're not confusing Java and Javascript running in a web browser -- 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.
Re: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code.
This is because you are using XMLParser in server side. Otherwise you should put that code under the client package. (p.s. Why returning ArrayList instead of List? Separate interface from implementation...) -- From: "Dave" Sent: Saturday, November 28, 2009 8:59 AM To: "Google Web Toolkit" Subject: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. > I have the following code on my server > > public ArrayList getAMIs() > { > ArrayList amis = new ArrayList(); > int n; > > AMI ami = new AMI(); > GetResources amiResourceXML = new GetResources(); > > try > { > Document amiDom = XMLParser.parse(amiResourceXML.getAmi()); > Element root = amiDom.getDocumentElement(); > XMLParser.removeWhitespace(root); > > ... > >} >catch >{ ..} >return "some value to client" >} > >Why do I receive this error below? > > SEVERE: [1259395014149000] javax.servlet.ServletContext log: Exception > while dispatching incoming RPC call > com.google.gwt.user.server.rpc.UnexpectedException: Service method > 'public abstract java.util.ArrayList > com.clemson.client.AmazonService.getAMIs()' threw an unexpected > exception: java.lang.ExceptionInInitializerError > at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure > (RPC.java:360) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:546) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:166) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1093) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > (TransactionCleanupFilter.java:43) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at com.google.appengine.tools.development.StaticFileFilter.doFilter > (StaticFileFilter.java:121) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:712) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) > at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > (DevAppEngineWebAppContext.java:54) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at com.google.appengine.tools.development.JettyContainerService > $ApiProxyHandler.handle(JettyContainerService.java:342) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:313) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 506) > at org.mortbay.jetty.HttpConnection$RequestHandler.content > (HttpConnection.java:844) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:396) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:442) > Caused by: java.lang.ExceptionInInitializerError > at com.google.gwt.xml.client.XMLParser.(XMLParser.java:28) > at com.clemson.server.AmazonServiceImpl.getAMIs > (AmazonServiceImpl.java:45) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.google.appengine.tools.development.agent.runtime.Runtime.invoke > (Runtime.java:100) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:527) > ... 27 more > Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create > () is only usable in client code! It cannot be called, for example, > from server code. If you are running a unit test, check that your > test case extends GWTTestCase and that GWT.create() is not called from > within an initializer or constructor. > at com.google.gwt.core.client.GWT.create(GWT.java:85) > at com.google.gwt.xml.client.impl.XMLParserImpl. > (XMLParserImpl.java:29) > ... 35 more > Thanks > > -- > > You re
GWT, Wave extensions & API tutorials/resources
Anyone know of any good resources for developing wave extensions with gwt? -a -- 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.
Re: Getting Sarted
Thanks a lot gwtfanb0y. can we be friend on chat.my id is vkijust4u On Sat, Nov 28, 2009 at 11:50 PM, gwtfanb0y wrote: > Welcome, look there: > http://blog.jdevelop.eu/2009/11/11/create-a-gwt-application-from-scratch/ > > On 28 Nov., 10:44, Vki wrote: > > Hi Friends i'm beginner in Google Web Toolkit.Anyone give me idea > > where to start and which software i need to create the new project. > > Please give me idea friends > > -- > > 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. > > > -- Vicky Thakor -- 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.
Re: Getting Sarted
Welcome, look there: http://blog.jdevelop.eu/2009/11/11/create-a-gwt-application-from-scratch/ On 28 Nov., 10:44, Vki wrote: > Hi Friends i'm beginner in Google Web Toolkit.Anyone give me idea > where to start and which software i need to create the new project. > Please give me idea friends -- 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.
Re: DatePicker starting week on Monday
Yes, Id like to know this too On Nov 11, 11:20 pm, santins wrote: > Is there a way to change the first day of the week from Sunday to > Monday? -- 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.
protocol buffer? anyone tried?
anyone tried using PB on GWT? from my research i came across saying performance issues with PB http://tinyurl.com/yem57ud any comments? -- 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.
Which Security and Workflow frameworks are recomended with GWT+google App engine?
Hi, We are building a Volunteering system for underprevilaged schools. We are using GWT+Google App engine+Spring MVC. Have 2 questions: 1. We need to have a framework for managing roles and permissions and use Single Sign on. Spring Security sounds promising but Google App Engine doesent fully support it. Wat are other options fully supported by Google App Engine? 2. Are there any application workflow engines supported by Google App engine? Do it have support for Spring Webflow? Regards, Ravdeep -- 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.
Getting Sarted
Hi Friends i'm beginner in Google Web Toolkit.Anyone give me idea where to start and which software i need to create the new project. Please give me idea friends -- 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.
Re: Should we use maven or not for a project?
I would suggest using ant, it provides more flexibility. I have been on a GWT project with Maven and Ant, and Ant hit a lot less roadbumps. Also if you want to build GWT itself it uses Ant. Cheers, Scott On Nov 28, 2:47 am, Jan Ehrhardt wrote: > Yes, Maven can be complex, but if your project has a clear structure, it can > be very powerful. > > Another option, I haven't tried yet, could be Gradle. It is a build tool, > that uses Groovy for writing build scripts. The benefit is, that it's based > on Ant and Ivy, so it allows you to use all the Ant stuff around. > > Regards > Jan Ehrhardt > > On Fri, Nov 27, 2009 at 7:05 PM, gwtfanb0y > wrote: > > > Now after all the maven enthusiasts above this comment, i have to say > > some words about ANT. > > I have used the default ant build-scripts (which are included inside > > the project when you create > > it with the webAppCreator) in all of my projectes and it worked very > > well. If you want to add > > new ant-targets e.g. for gui-tests, these are easy to implement. > > > My experience with maven is, when you have a big project, the > > administration of maven is > > a fulltime job. > > > If you have litte experience with maven und need to start fast your > > project, so you should > > choose ANT. > > > On 26 Nov., 22:46, jbdhl wrote: > > > I'm about to start a new GWT project but can't decide weather to use > > > maven or not - partly because I'm completely new to maven. Are there > > > really large benefits from using maven? I've heard, that not even > > > google is using it, and this worries me a little. > > > > Our project will be a bit of a mix of various stuff and I don't know > > > how well this fits into the maven structure: > > > > * besides the usual client/servlet code, we will build a few smaller > > > java tools to be run periodically by cron. > > > > * we will use a bunch of scripts written in various languages to > > > solve different tasks > > > > * the project will include a bunch of documentation and text > > > documents > > > > All in all: what is your recomendation? Maven or not? > > > -- > > > 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. -- 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.
ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code.
I have the following code on my server public ArrayList getAMIs() { ArrayList amis = new ArrayList(); int n; AMI ami = new AMI(); GetResources amiResourceXML = new GetResources(); try { Document amiDom = XMLParser.parse(amiResourceXML.getAmi()); Element root = amiDom.getDocumentElement(); XMLParser.removeWhitespace(root); ... } catch { ..} return "some value to client" } Why do I receive this error below? SEVERE: [1259395014149000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.ArrayList com.clemson.client.AmazonService.getAMIs()' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:342) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Caused by: java.lang.ExceptionInInitializerError at com.google.gwt.xml.client.XMLParser.(XMLParser.java:28) at com.clemson.server.AmazonServiceImpl.getAMIs (AmazonServiceImpl.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke (Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) ... 27 more Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create () is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.google.gwt.xml.client.impl.XMLParserImpl. (XMLParserImpl.java:29) ... 35 more 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 g
Re: lacking an interface with "setEnabled" method
I ended up writing a bunch of small *Ext classes (TextBoxExt, etc.) that implement some interfaces of my creation, HasEnablement (clunky naming, I know) being one of them. I second the request that such an interface be added to GWT. On Nov 23, 9:37 am, Michel Daviot wrote: > Hi, > > I think an interface defining the setEnabled method is lacking. This > would be implemented in FocusWidget, DateBox ... -- 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.
Re: HMVP design pattern?
> MVP structure with item duplication prevented by checking > proposed additions to a shopping cart against all the others via the > event bus. This is basically what I've done in my first GWT hierarchical MVP app. One of its functions is to collect two password recovery question choices, one from each of two listboxes The parent presenter adds two questionbox presenters which communicate selection choices via the eventbus. User selections for questions, answers, password updates, etc. bubble up this way to a level where it can be determined whether or not the update button can be enabled. At first, I thought this might be too fine-grained, but it's worked out well to separate out the logic this way. The problem I quickly ran into with MVP was that the ratio of boilerplate to interesting code was very bad. So, I built a quick and dirty codegen using StringTemplate that reads an XML description of the presenters/UI (no 2.0 yet) and generates a display impl, a presenter interface, a presenter impl abstract base class, associated events, and RPC plumbing (and validation bindings, etc, etc.) So far, so goodI feel like I'm writing mostly unique code without too many redundantly expressed ideas. One additional problem was that some of the presenter logic got very complicated very quickly. I ended up drawing a state machine and implementing it with SMC (http:// smc.sourceforge.net/). The presenter fires state machine actions which in return fire presenter methods to modify the display and other client-side state. With minor modification, the generated SMC code plays nicely in client-side GWT. I'm now interested in how hierarchical state machines could be used to model GWT apps in a more integrated way. How much of client side behavior can be declared without boxing a developer into a too-rigid framework? Would the resulting JavaScript be small enough? Has anyone else experimented with these sorts of things? Anyone interested enough in what I've done for me to attempt to open source it (it's corp-owned right now)? Am I completely off my rocker? -- 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.
Oooops! - GWT 1.7.1 + JDK 6.17 + VistaFei 1.0.0.2b3 On WINXP Pro SP3
HI I hope someone may be able to advise! Completely new to GWT & Java but thought it about time I investigated GWT. Have installed tools (as listed in subject) to enable drag drop design in attempt to get started. When trying to run, in hosted mode, simple 'Hello World' app I get following error, which I do not understand... loading 'old' gwt.js bootstrap script is no longer supported; please load 'com.mycompany.HomePage.nocache.js directly Any thoughts suggestions. Are there perhaps better, more robust, Drag Drop IDE's available? Regards TS -- 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.
Re: JSON - When to use JSONParser and when JavaScript object
Thanks, very nice. I'll give it a try. On Fri, Nov 27, 2009 at 2:30 PM, Thomas Broyer wrote: > > > On 27 nov, 16:56, Jeff Chimene wrote: > > On 11/12/2009 12:45 PM, Thomas Broyer wrote: > > > > > And actually, now that I've switched to GWT 2.0, I use interfaces to > > > model my objects, with RemoteService/*Async interfaces to model my > > > services; and I implement them using JSOs (JSOs can implement > > > interfaces under certain conditions in GWT 2.0) > > > > Hi Thomas, > > > > Would you mind expanding on this a little bit? How does one implement a > > JSO interface? > > interface MyModelObject { > String getFoo(); > void setFoo(String foo); > } > > class MyModelObjectImpl extends JavaScriptObject implements > MyModelObject { > protected MyModelObjectImpl() { } > public final native String getFoo() /*-{ return this.foo; }-*/; > public final native void setFoo(String foo) /*-{ this.foo = foo; }- > */; > } > > There's really nothing special, but the interface cannot be > implemented by more than one JSO. > > I then do: > interface MyService extends RemoteService { > MyModelObject get(); > } > @ImplementedBy(MyServiceAsyncImpl.class) > interface MyServiceAsync { > void get(AsyncCallback callback); > } > > implemented as: > class MyServiceAsyncImpl implements MyServiceAsync { > public void get(AsyncCallback callback) { > // create a RequestBuilder, and in the > RequestCallback::onResponceReceived, parse the response > (JsonUtils.unsafeEval for instance) into a MyModelObjectImpl and pass > it to the callback.onSuccess() >} > } > > -- > > 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. > > > -- 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.
Re: dynamic Messages/ImageBundle possible?
Thanks a lot, that's indeed what i needed. It took me sometime to realize what the requirement to put Messages.properties files in "classpath root" really means. Is there a possibility to have Messages.properties reside within the same package where the code using it (maybe though an interface), since it makes it somewhat uncomfortable the way it works now, more even so when you have several gwt modules in a single project that should use difference bundles. thanks On Nov 25, 10:12 pm, kgeri wrote: > [Not sure if my previous post went through, so... > ] > > For dynamic (string-accessible) message support take a look at > this:http://code.google.com/p/gwt-dmesg > > I wrote it because we've faced the same problem a million times now in > our GWT projects and it was annoying :) > > Hope it helps, comments and ideas are welcome! > > On nov. 24, 23:36, denis56 wrote: > > > Oh, thanks for the hint. > > > Are you aware of the similar class for Messages? > > > On 23 Nov., 16:44, "Dean S. Jones" wrote: > > > > this might help a little > > > >http://code.google.com/p/asmodaiosgwt/ > > > > On Nov 23, 10:40 am, denis56 wrote: > > > > > Hi there, > > > > > I wonder if it is possible to use Internationalization and > > > > ImageBundles in GWT in a more dynamic way. For instance, if there is a > > > > client method > > > > > void createSportTitleAndImage(String sportId) { > > > > > } > > > > > is it somehow possible to have the "sportId" argument being > > > > dynamically plugged into the relevant ImageBundle/Messages method to > > > > return appropriate code without the if/else-jungle. > > > > > So instead of: > > > > > void createSportTitleAndImage(String sportId) { > > > > if (sport.equals("basketball")) > > > > ImageBundle.getBasketballImage(); > > > > Messages.getBasketballText(); > > > > else if (sport.equals("handball")) > > > > ImageBundle.getHandballImage(); > > > > Messages.getHandballText(); > > > > else ... > > > > > } > > > > > to have something like : > > > > > void createSportTitleAndImage(String sportId) { > > > > ImageBundle.getSportImageById(sportId); > > > > Messages.getSportTextById(sportId); > > > > > } > > > > > where getSportByName(sportId) would fetch resource for the key "base + > > > > sportId" ? > > > > > That would really simplify things:) > > > > 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-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.
Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted
Hi Thomas >> 5.Then copied gpe-e35-1.2rc1.zip\eclipse\plugins to C:\Program Files >> (x86)\eclipse\plugins > > 1) Why are you using 1.2rc1? it won't work with GWT 2.0.0 RC2 wrt the - > portHosted vs. -codeServerPort naming change. There you go. I was obviously suffering brain fade and really not paying attention. Thank you for pointing that out. > 2) Why not just unzip it in C:\Program Files (x86)\eclipse\dropins as > you're told to do? Go easy! :-) ...because the first time i tried it, it didn't work. Seems to work perfectly now. It may well have been due to me having the wrong plugin. >> 6.Then copied the contents of gwt-2.0.0-rc2.zip to >> gpe-e35-1.2rc1.zip\eclipse\plugins > > Why are you putting it within your eclipse install? Was fighting int he dark. I'm no eclipse expert and that's where it seemed to be in the previous plugin. I've now moved it. > See above: you have to use the RC2 version of the plugin with the RC2 > version of GWT. Thanks! :-) All workign now. Thanks! -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.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-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.
Re: Controlling desktop windows size and position.
I'm sure there is a way, I've seen Java applications do this before On Mon, Nov 23, 2009 at 10:09 AM, Martin Trummer wrote: > you can't do that with html/javascript, so GWT can't help you > > On 19 Nov., 18:35, PatrickJ wrote: > > Is there and equivalent functional in GWT to VB's FindWindow, > > ShowWindow and MoveWindow? > > > > I would like to write a simple GWT application that would list all > > applications running on a Windows PC and have the ability to control > > the window's position attributes. > > > > Patrick > > -- > > 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=. > > > -- 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.
Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted
On 28 nov, 10:27, Paul Grenyer wrote: > Hi > > I've just done a completely fresh Eclipse and GWT 2.0 RC2 install > including the new plugin: > > 1.Extracted eclipse-java-galileo-SR1-win32.zip to C:\Program Files (x86). > > 2.Ran Eclipse, set up a new workspace workspace at > C:\Users\Paul\Documents\Sandbox\EclipseWorkspace and selected “Use > this as the default and do not ask again.” > > 3.Then installed Eclipse's Web Standard Tools (WST) > > - Help->Install new software. > - Manually added the update url as none was > present:http://download.eclipse.org/releases/galileo/ > - Then Web, XML, and Java EE Development -> Eclipse Web Developer Tools > - Restarted Eclipse and then closed it. > > 4.Then copied gpe-e35-1.2rc1.zip\eclipse\features to C:\Program Files > (x86)\eclipse. > > 5.Then copied gpe-e35-1.2rc1.zip\eclipse\plugins to C:\Program Files > (x86)\eclipse\plugins 1) Why are you using 1.2rc1? it won't work with GWT 2.0.0 RC2 wrt the - portHosted vs. -codeServerPort naming change. 2) Why not just unzip it in C:\Program Files (x86)\eclipse\dropins as you're told to do? > 6.Then copied the contents of gwt-2.0.0-rc2.zip to > gpe-e35-1.2rc1.zip\eclipse\plugins Why are you putting it within your eclipse install? > 7.Started Eclipse again and used the plugin to create a new project. > > - Started the wizard. > - Configured the GWT SDK as C:\Program Files > (x86)\eclipse\plugins\gwt-2.0.0-rc2 > - Unticked “Use Google App Engine” > - Entered project name etc and clicked finish. > > 8.Then opened the “Web Application” Run Configuration for the project > and ticked “Automatically select unused port” and clicked Run. > > And I get the same error: > > Unknown argument: -portHosted > Google Web Toolkit 2.0.0-rc2 See above: you have to use the RC2 version of the plugin with the RC2 version of GWT. -- 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.
Re: GWT 2.0 - startupUrl field
On Nov 28, 11:03 am, Andrey wrote: > Hello! > > Why is startupUrl field removed from run configuration in RC2? > For example, I use a servlet as a main page, GWT plugin obviously > cannot determine the servlet's url itself and gives me incorrect url > by default. > Now I need to set -startupUrl in program arguments. > > It would be better if your return the field back - it was very > convenient. > > Thanks in advance! +1 -- 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 2.0 - startupUrl field
Hello! Why is startupUrl field removed from run configuration in RC2? For example, I use a servlet as a main page, GWT plugin obviously cannot determine the servlet's url itself and gives me incorrect url by default. Now I need to set -startupUrl in program arguments. It would be better if your return the field back - it was very convenient. 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-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.
Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted
Hi Hi I've got a bit further > So, I am now a little further. I have a Java Application Run > Configuration that uses com.google.gwt.dev.DevMode as the Main class > and has the arguments: -port Gwt2RC2 (my project is called > Gwt2RC2). > > However, i still have a problem when I run it: > > [ERROR] Unable to find 'Gwt2RC2.gwt.xml' on your classpath; could be a > typo, or maybe you forgot to include a classpath entry for source? I needed to fully qualify my module name, so I now have: -port uk.co.marauder.gwt2rc2.Gwt2RC2 and I can start the server and get the HTML part of the web page up, however I get an error on the Gwt2RC2 (FF) tab of the GWT Development Module: [TRACE] Finding entry point classes [ERROR] Unable to find type 'uk.co.marauder.gwt2rc2.client.Gwt2RC2' [ERROR] Hint: Check that the type name 'uk.co.marauder.gwt2rc2.client.Gwt2RC2' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots [ERROR] Failed to load module 'gwt2rc2' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)' at Paul-Desktop:50949 I've tried adding war\WEB-INF\classes to my Run Configuration class path, but that hasn't worked. Any ideas? Sorry for the iterative approach this morning, but I expected to be stuck at each hurdle. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.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-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.
Youtube video not displayed
Hello all, I have a problem when trying to display youtube videos in my gwt application. I have the youtube video url in my data base. Then i try to display the player by doing that: String htmlTag = getEmbedTag(linkPublication.getLinkURL()); HTML html = new HTML(); html.setHTML(htmlTag); this.extraArea.add(html); private String getEmbedTag(String linkURL) { return ""; } The embed tag is attached to the page but I cannot see the video. Any ideas? [], José Vicente -- 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.
Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted
Hi All I should really know by now, that the Internet is a wonderful, wonderful thing! On the page I quoted: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC there is a comment, currently second from bottom, on November 23rd by "a.revolution.ultra.blue", which states, in response to another comment that has the same problem the people in this tread are having: --BEGIN--- YES! You CANNOT use the google g-icon "web app run menu", you need a plain jane java application runner, with main class com.google.gwt.dev.DevMode?? Make sure you have the usual program arguments for a gwt project; mine are: -port -startupUrl / ai.yx.xSeed I have / set to a welcome servlet in web.xml, and my gwt project is ai.yx.xSeed If you want to use appengine, you will also need to add the program arguments and vm arguments I mentioned in the post above. ALSO, if you do NOT use appengine, leave the working directory at default. If you DO use appengine, add /war to whatever your default directory is... My project xBook uses ${workspace_loc:xBook}/war If you absolutely can't get it to go, just download ms2 from the deprecated dl page, and you can go ahead and use the old google-plugin launch configuration. --ENG-- So, I am now a little further. I have a Java Application Run Configuration that uses com.google.gwt.dev.DevMode as the Main class and has the arguments: -port Gwt2RC2 (my project is called Gwt2RC2). However, i still have a problem when I run it: [ERROR] Unable to find 'Gwt2RC2.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I've tried fiddling with the classpath and source settings of the Run Configuration, but so far nothing's worked. Does anyone know what I'm doing wrong? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.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-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.
Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted
Hi I've just done a completely fresh Eclipse and GWT 2.0 RC2 install including the new plugin: 1.Extracted eclipse-java-galileo-SR1-win32.zip to C:\Program Files (x86). 2.Ran Eclipse, set up a new workspace workspace at C:\Users\Paul\Documents\Sandbox\EclipseWorkspace and selected “Use this as the default and do not ask again.” 3.Then installed Eclipse's Web Standard Tools (WST) - Help->Install new software. - Manually added the update url as none was present: http://download.eclipse.org/releases/galileo/ - Then Web, XML, and Java EE Development -> Eclipse Web Developer Tools - Restarted Eclipse and then closed it. 4.Then copied gpe-e35-1.2rc1.zip\eclipse\features to C:\Program Files (x86)\eclipse. 5.Then copied gpe-e35-1.2rc1.zip\eclipse\plugins to C:\Program Files (x86)\eclipse\plugins 6.Then copied the contents of gwt-2.0.0-rc2.zip to gpe-e35-1.2rc1.zip\eclipse\plugins 7.Started Eclipse again and used the plugin to create a new project. - Started the wizard. - Configured the GWT SDK as C:\Program Files (x86)\eclipse\plugins\gwt-2.0.0-rc2 - Unticked “Use Google App Engine” - Entered project name etc and clicked finish. 8.Then opened the “Web Application” Run Configuration for the project and ticked “Automatically select unused port” and clicked Run. And I get the same error: Unknown argument: -portHosted Google Web Toolkit 2.0.0-rc2 DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-workDir dir] module[s] where -noserverPrevents the embedded web server from running -portSpecifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logdir Logs to a file in the given directory, as well as graphically -logLevelThe level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -gen Debugging: causes normally-transient generated types to be saved in the specified directory -codeServerPort Specifies the TCP port for the code server (defaults to 9997) -server Specify a different embedded web server to run (must implement ServletContainerLauncher) -startupUrl Automatically launches the specified URL -war The directory into which deployable output files will be written (defaults to 'war') -extra The directory into which extra files, not intended for deployment, will be written -workDir The compiler's working directory for internal use (must be writeable; defaults to a system temp dir) and module[s]Specifies the name(s) of the module(s) to host I assume I must be doing something wrong in my install? Having to manually copy the SDK took me rather by surprise. I guess its kind of implicit here, http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC, but an explicit instruction would have been helpful. I'm running Vista Business if that makes any difference? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.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-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.
Re: PDF Viewer Widget
Creating such a simple Widget shouldn't be to difficult. Just take an 'iframe' and let it show the PDF. Regards Jan Ehrhardt On Fri, Nov 27, 2009 at 12:55 PM, marcelpsouza wrote: > Hi people, > > Does anyone know if there is a GWT widget to view PDF files? > I know that I can open a window and show a PDF file with an Adobe plug- > in but I am looking for a widget to better control the PDF file > visualization in my app. > > Any help would be appreciate, > > marcel. > > -- > > 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. > > > -- 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.
Re: GWT1.7 + Spring3 intégration
I don't know, how your application is structured, but why don't you use Spring 3 with REST and JSON? Spring 3 comes with a cupel of nice features to create RESTful APIs on top of Spring Controllers. This fits much better into the Spring world, than GWT RPC could ever do. On the other hand, GWT + JavaScript Overlays makes the usage of RESTful API with JSON very smart to GWT apps. We'd the same idea for the Grails GWT plugin, since Grails comes with REST build in and GWT-RPC never felt native. For me it would definitively be the preferred way in a Spring world. Regards Jan Ehrhardt 2009/11/27 Valéry Stroeder > Hello, > > I'm trying to integrate Spring into a Gwt application (using IntelliJ > Idea) to use some beans or class located in the core package. > Here is the application's structure > [IMG]http://www.monsterup.com/image.php?url=upload/1259317243629.png[/ > IMG] > > I found an interresant way on http://code.google.com/p/spring4gwt/. > I followed the "simple rpc example" at this page : > http://code.google.com/p/spring4gwt/wiki/SimpleRPCExample. > > Thus i added spring libraries, gwt libraries and the spring4gwt.jar to > my project and modify my files following the example. > > [B]WEB-INF/web.xml[/B] > [CODE] > http://java.sun.com/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; > version="2.5"> > > > >contextConfigLocation >classpath:applicationContext.xml > > > class>org.springframework.web.context.ContextLoaderListener class> > > > > >springGwtRemoteServiceServlet > > org.spring4gwt.server.SpringGwtRemoteServiceServlet servlet-class> > > >springGwtRemoteServiceServlet >/springGwtServices/* > > [/CODE] > > [B]ressources/applicationContext.xml[/B] > [CODE] > http://www.springframework.org/schema/beans"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xmlns:aop="http://www.springframework.org/schema/aop"; >xmlns:context="http://www.springframework.org/schema/context"; > xmlns:tx="http://www.springframework.org/schema/tx"; >xsi:schemaLocation="http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >http://www.springframework.org/schema/context > > http://www.springframework.org/schema/context/spring-context-2.5.xsd";> > > package="biz.manex.chbah.crc.web.server" /> > [/CODE] > > [B]client/CRCService[/B] > [co...@remoteservicerelativepath("springGwtServices/crcService") > public interface CRCService extends RemoteService { >String sayHello(String name); > }[/CODE] > > [B]client/CRCServiceAsync[/B] > [CODE]public interface CRCServiceAsync { >void sayHello(String name, final AsyncCallback async); > }[/CODE] > > [B]server/CRCServiceImpl[/B] > [co...@service("crcService") > public class CRCServiceImpl implements CRCService { > //@Resource > //private Patient myPatient; >public String sayHello(String name) { >return "Nom du parametre : " + name + ". Nom de la personne : > " /*+ myPatient.getFirstName()*/; >}[/CODE] > > [B]CRC.gwt.xml[/B] > [CODE] > > > > > > > > > > > > > [/CODE] > > [B]TestPanel.java[/B] (the panel who will call the rpc service > [CODE]package biz.manex.chbah.crc.web.client.panels; > > import biz.manex.chbah.crc.web.client.CRCService; > import biz.manex.chbah.crc.web.client.CRCServiceAsync; > import com.extjs.gxt.ui.client.widget.LayoutContainer; > import com.extjs.gxt.ui.client.widget.layout.FlowLayout; > import com.google.gwt.core.client.GWT; > import com.google.gwt.event.dom.client.ClickEvent; > import com.google.gwt.event.dom.client.ClickHandler; > import com.google.gwt.user.client.Element; > import com.google.gwt.user.client.rpc.AsyncCallback; > import com.google.gwt.user.client.ui.*; > > /** > * Created by Manex > * User: valery.stroeder (valery.stroe...@manex.biz) > * Date: 12-nov.-2009 > * Time: 17:07:56 > */ > > public class TestPanel extends LayoutContainer { >private VerticalPanel verticalPanel = new VerticalPanel(); >private HorizontalPanel horizontalPanel = new HorizontalPanel(); >private TextBox textBox = new TextBox(); >private Button button = new Button("Add"); >private Label label = new Label(); >private AsyncCallback callback; >private CRCServiceAsync serviceAsync; > >@Override >protected void onRender(Element parent, int index) { >super.onRender(parent, index); >setLayout(new FlowLayout()); > >// assemble Add Stock panel >horizontalPanel.add(textBox); >horizontalPanel.add(button); > >// create service asynchrone >serviceAsync = GWT.create(CRCServ
Re: Should we use maven or not for a project?
Yes, Maven can be complex, but if your project has a clear structure, it can be very powerful. Another option, I haven't tried yet, could be Gradle. It is a build tool, that uses Groovy for writing build scripts. The benefit is, that it's based on Ant and Ivy, so it allows you to use all the Ant stuff around. Regards Jan Ehrhardt On Fri, Nov 27, 2009 at 7:05 PM, gwtfanb0y wrote: > Now after all the maven enthusiasts above this comment, i have to say > some words about ANT. > I have used the default ant build-scripts (which are included inside > the project when you create > it with the webAppCreator) in all of my projectes and it worked very > well. If you want to add > new ant-targets e.g. for gui-tests, these are easy to implement. > > My experience with maven is, when you have a big project, the > administration of maven is > a fulltime job. > > If you have litte experience with maven und need to start fast your > project, so you should > choose ANT. > > > On 26 Nov., 22:46, jbdhl wrote: > > I'm about to start a new GWT project but can't decide weather to use > > maven or not - partly because I'm completely new to maven. Are there > > really large benefits from using maven? I've heard, that not even > > google is using it, and this worries me a little. > > > > Our project will be a bit of a mix of various stuff and I don't know > > how well this fits into the maven structure: > > > > * besides the usual client/servlet code, we will build a few smaller > > java tools to be run periodically by cron. > > > > * we will use a bunch of scripts written in various languages to > > solve different tasks > > > > * the project will include a bunch of documentation and text > > documents > > > > All in all: what is your recomendation? Maven or not? > > -- > > 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. > > > -- 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.