Re: How to change GWT.xml with maven profile by a GWT project
It's not clear. gwt-maven-plugin user's guide http://mojo.codehaus.org/gwt-maven-plugin/user-guide/project.html has a screenshot eclipse package explorer of gwt.xml in src/main/ resources then under Multi-project setup a text diagram with gwt.xml in src/main/java Then http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html shows Why inherit its own name? I could build in Eclipse but Hudson couldn't find my module. What finally worked was adding a module property like this org.codehaus.mojo gwt-maven-plugin ${gwt-maven-plugin.version} xxx.xxx.xxx.xxxClient xxx.xxx.xxx/xxxclient.html ${webappDirectory} Which I found after endless googling here http://jgonian.wordpress.com/2011/02/24/efficient-gwt-development-swap-your-gwt-xml-with-maven/ -- 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 and OSGi
Chapter 15 of OSGI in Action just published by Manning converts the Stockwatcher example to a web application bundle and shows both local and remote servers with distributed OSGI. Another chapter shows Apache Aries and the Blueprint container. -- 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: Runtime errors after updating to 2.1.1
The remaining references to 2.1.0 were in my project's Properties Java Build Path Libraries. I install GWT SDK into Eclipse for the Google Plugin and then do Maven builds with GWT as Maven dependencies. I don't like the redundancy but I don't know how to make the plugin work without the SDK. When I removed the 2.1.0 libraries from the build path the error was cleared. I expected updating the SDK would have cleaned this up. Shouldn't it? Fábio, thanks for prompting me to double check. Gary On Jan 3, 1:31 pm, Fabio wrote: > Verify if you updated GWT version number at maven pom file. > > I got a similar error, because Eclipse was with the right version > (2.1.1) but maven was configured to use 2.1.0: > > > com.google.gwt > gwt-user > ${gwt.version} > provided > > > (gwt.version property was outdated at pom.xml). > > Best regards, > Fábio Miranda. > > On 30 dez 2010, 19:34, Gary S wrote: > > > > > I have a multi Maven module project that built and ran as a Web > > Application without error (it took 2 weeks of dumpster diving). After > > updating to GWT 2.1.1, GPE 3.6, and GWT Maven Plugin 2.1.0-1 I can > > still build and launch as a Web Application but in Eclipse Development > > Mode view there is this: (a similar problem ishttp://bit.ly/gDjlJl > > but GWT 2.1.1 is in my local repo) > > > [DEBUG] [aeou] - Validating newly compiled units > > [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/ > > com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/ > > gwt-user.jar!/com/google/gwt/view/client/CellPreviewEvent.java' > > [ERROR] [aeou] - Line 18: The import > > com.google.gwt.cell.client.Cell.Context cannot be resolved > > [ERROR] [aeou] - Line 66: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 88: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 107: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 111: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 132: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 140: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 141: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Line 155: Context cannot be resolved to a > > type > > [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/ > > com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/ > > gwt-user.jar!/com/google/gwt/view/client/ > > DefaultSelectionEventManager.java' > > [ERROR] [aeou] - Line 336: The method clear() is undefined > > for the > > type MultiSelectionModel > > [ERROR] [aeou] - Line 467: The method getVisibleItemCount() > > is > > undefined for the type HasData > > [ERROR] [aeou] - Line 471: The method getVisibleItem(int) is > > undefined for the type HasData -- 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.
Runtime errors after updating to 2.1.1
I have a multi Maven module project that built and ran as a Web Application without error (it took 2 weeks of dumpster diving). After updating to GWT 2.1.1, GPE 3.6, and GWT Maven Plugin 2.1.0-1 I can still build and launch as a Web Application but in Eclipse Development Mode view there is this: (a similar problem is http://bit.ly/gDjlJl but GWT 2.1.1 is in my local repo) [DEBUG] [aeou] - Validating newly compiled units [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/ gwt-user.jar!/com/google/gwt/view/client/CellPreviewEvent.java' [ERROR] [aeou] - Line 18: The import com.google.gwt.cell.client.Cell.Context cannot be resolved [ERROR] [aeou] - Line 66: Context cannot be resolved to a type [ERROR] [aeou] - Line 88: Context cannot be resolved to a type [ERROR] [aeou] - Line 107: Context cannot be resolved to a type [ERROR] [aeou] - Line 111: Context cannot be resolved to a type [ERROR] [aeou] - Line 132: Context cannot be resolved to a type [ERROR] [aeou] - Line 140: Context cannot be resolved to a type [ERROR] [aeou] - Line 141: Context cannot be resolved to a type [ERROR] [aeou] - Line 155: Context cannot be resolved to a type [ERROR] [aeou] - Errors in 'jar:file:/Users/gs/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.2.1.1_2.1.1.v201012170127/gwt-2.1.1/ gwt-user.jar!/com/google/gwt/view/client/ DefaultSelectionEventManager.java' [ERROR] [aeou] - Line 336: The method clear() is undefined for the type MultiSelectionModel [ERROR] [aeou] - Line 467: The method getVisibleItemCount() is undefined for the type HasData [ERROR] [aeou] - Line 471: The method getVisibleItem(int) is undefined for the type HasData -- 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.
How do I debug module configuration in 2.1?
I get module errors when launching as a Web Application and running JUnit. I've tried to follow the GWT and gwt-maven-plugin documentation. It would help if my log told me what GWT thinks my module configuration is. Also, is there a better writeup on how to configure GWT modules? -- 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.
How to make css layout with old panel layout
We have a GWT application laid out in the old way with lots of nested HorizontalPanels, VerticalPanel, FloatPanels etc. Designers want me to apply CSS ZenGarden type layouts. I know this is impractical and HTMLPanels are what should be used with CSS layout. I can set negative margin and contents of a vertical panel appears to the left of the panel as 1 column. Now I want the contents to span from the left negative margin to the right width of the panel with as many elements that will fit. Replacing the inner VerticalPanel with a few other types of panels still leaves me with 1 column. What can I do with CSS layout short of rewriting the containing layouts? -- 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.
Anyone using JSR 303 validation?
I see gwt-validation and other projects that offer JSR 303 compliance but I they show little activity. Is anyone having success or is something better coming? I'd like to add a validation framework in the next 6 months and don't know which one to use. --~--~-~--~~~---~--~~ 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: Plugin GWT 1.7 SDK "missing"
Hi Jason, I don't see anything in .log. In Properties->Google->Web Toolkit I changed from "Use default SDK(1.7.0) to Use specific SDK 1.7.0 and the problem hasn't been back. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Plugin GWT 1.7 SDK "missing"
Sometimes, I think after running hosted mode, Eclipse loses its reference to GWT classes. Java Buildpath says "missing" for the SDK. When I go to Web Application and click through configure SDK the problem goes away for a while. OS X 10.5 Java 1.5 GWT 1.7 gwt-mvp (included gin) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
JUnit configuration for Google Plugin
The Plugin's unit testing doc only shows a run configuration http://code.google.com/eclipse/docs/gwt_junit.html It links to a page showing junitCreator http://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html I'm missing the part showing to make it work where the test classes are under /test instead of /source. It isn't clear if it's better to have a separate project for tests or a test module within the project. If it's a test module within the project what should the setup look like should source paths be /src and /test ? where should junit.jar go ? what should the *Test.gwt.xml file look like ? --~--~-~--~~~---~--~~ 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: Does GWT work in Snow Leopard?
I tried Soylatte 32 bit Java 6 for Mac http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg10100.html It failed because GWT won't start hosted mode if you run Java 6 on OS X --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
JUnit testing RPCServlet without client
I want to test a RemoteService, its Async and an RPCServlet with an ordinary TestCase that calls the Servlet. Is there an example of how to do this? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Can I use Google Collections Multimap in GWT client?
In understand the client can't use the concurrent classes but some people seem to be able to use some Google Collection classes. If it's possible to use Multimap in the client, how do I configure it? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Google Eclipse plugin + gin + gwt validation
I'm creating a project for the plugin + guice gin + gwt validation. It looks easy enough to do myself, but I want to check if there's a standard way of doing this. I'd think lots of Google plugin projects would also use gin and perhaps gwt validation. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Minimal plugin for existing Maven projects
I tried Google plugin on my multi-module Maven project that already supports GWT. It has a war in one of the modules. I enabled GWT plugin for the root project and set the SDK to the existing GWT 1.6.4. There were no errors but Eclipse takes forever to update Dependencies and I couldn't create a RemoteService interface, a Waiting for background operation to complete dialog stayed up every time I tried until I canceled. All I need from the plugin, on this project, is to create Async service interfaces from service interfaces and keep them in sync and, also, error check jsni. It would be great If I had that option. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Rebinding with wrong generator class
I added Gin modules to one of my GWT modules and now I get these failures. 2 GWT modules try to rebind the same class with 2 different generators and both are the wrong generators GWT module without Gin Compiling module org.kuali.student.lum.ui.requirements.Requirements Computing all possible rebind results for 'org.kuali.student.common.ui.client.CommonUI' Rebinding org.kuali.student.common.ui.client.CommonUI Checking rule [ERROR] Unable to find type 'org.kuali.student.common.ui.client.CommonUI' [ERROR] Hint: Check that the type name 'org.kuali.student.common.ui.client.CommonUI' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots GWT module with Gin Compiling module org.kuali.student.lum.lu.ui.main.LUMMain Computing all possible rebind results for 'org.kuali.student.common.ui.client.CommonUI' Rebinding org.kuali.student.common.ui.client.CommonUI Checking rule [ERROR] Unable to find type 'org.kuali.student.common.ui.client.CommonUI' [ERROR] Hint: Check that the type name 'org.kuali.student.common.ui.client.CommonUI' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots --~--~-~--~~~---~--~~ 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 configure multiple Generators
I'm adding Gin, which generates the injector implementation with GWT.create. Now, I get errors new in other places that use GWT.create. They aren't using the correct Generator class anymore. One of these uses ImmutableImageBundle, I see this should be replaced with ClientBundle, but it worked before. I think that's because my app's GWT.create calls luckily used the correct Generator without my explicitly adding a element to gwt.xml. How should I use and inherit modules in a project with multiple Generators and multiple modules? Should I explicitly add to every module that calls GWT.create? Does the order of inheriting modules make a difference? When I call GWT.create with standard Generators, how do I determine the correct Generator for the class I'm generating. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
PagingScrollTable not removing row
I have a picklist using the PagingScrollTable (Feb 27 build and only have 1 page). I select rows, then copy them to another PagingScrollTable and remove the selected rows from the first table. This works, except not all selected rows disappear from the first table. When I select rows 0,1,2, they all are copied to the other table but the first table always shows row 1. private final Button add = new Button(">", new ClickHandler() { @Override public void onClick(ClickEvent event) { FixedWidthGrid leftDataTable = pagingScrollTable.getDataTable(); Integer[] leftRowIds = new Integer[0];// ConcurrentModificationException using Set leftRowIds = leftDataTable.getSelectedRows().toArray (leftRowIds); FixedWidthGrid rightDataTable = pagingScrollTablePicked.getDataTable(); int rightRowCount = rightDataTable.getRowCount(); rightDataTable.resizeRows(rightRowCount + leftRowIds.length); for(int i = 0; i < leftRowIds.length; i++) { T value = pagingScrollTable.getRowValue(leftRowIds [i]); pagingScrollTablePicked.setRowValue(rightRowCount + i, value); } for(int i = 0; i < leftRowIds.length; i++) { leftDataTable.removeRow(leftRowIds[i]); } pagingScrollTable.redraw(); pagingScrollTablePicked.redraw(); } }); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Composites, Widgets, and polymorphism
I need to: 1. Add behavior and style to GWT widgets 2. Wrap them in Composites 3. Expose the widget behavior and style from the Composite impl class 4. Allow polymorphic substitution of widget impl classes I can do this, but it's ugly: 1. An abstract class extends Composite 2. An impl class has a reference to a widget and the abstract Composite and the impl have wrapper methods exposing some of the public widget methods. 3. In gwt.xml replaceWith elements replace the abstract class with the impl class 4. Instantiate with gwt.Create so future impls can be substituted. 5. Public init methods are necessary because gwt.Create requires a no arg Constructor. It's ugly because there is too much indirection, too many widget methods have to be proxy-ed, replaceWith xml breaks type safety, protected widget methods can't be called, and public init methods and GWT.create are more problematic than Constructors. Is there a clean(er) way to do this? Has anyone done something similar with Guice Gin provider methods? Gary S --~--~-~--~~~---~--~~ 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: Soylatte 32 bit Java 6 for Mac, how to enable Eclipse to use it
There is a check for Java version that terminates the build before compiling. Gary On Feb 1, 12:32 am, Shawn Brown wrote: > Assuming that hosted mode runs off of compiled java code, what about > having soylatte 1.6 source files and setting a .class file > compatibility of 1.5. Then you could use a 1.5 runtime. > > I do that with other projects but don't know how to with gwt. > > Shawn --~--~-~--~~~---~--~~ 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: Soylatte 32 bit Java 6 for Mac, how to enable Eclipse to use it
There is a way to run Eclipse for OS x with 32 bit soylatte Java 6 http://tech-nickel.blogspot.com/2009/01/java-on-mac-os-x-try-soy-latte.html Hooray! Hooray! Hooray! Oh... wait.. Soylatte: "XstartOnFirstThread" is currently not supported So I delete that, only to get "You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X" F**k! F**k! F**k! Gary --~--~-~--~~~---~--~~ 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: Soylatte 32 bit Java 6 for Mac, how to enable Eclipse to use it
I have to use Java 6 Gary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Soylatte 32 bit Java 6 for Mac, how to enable Eclipse to use it
Soylatte has a 32 bit Intel Java 6 which should allow OS X to run hosted mode on a Mac. http://landonf.bikemonkey.org/static/soylatte/#usage It's a "Standard VM" and Eclipse doesn't allow Standard VM's in OS X. A patch for Eclipse was created https://bugs.eclipse.org/bugs/show_bug.cgi?id=211648 I downloaded the patch:StandardVMType.class but Eclipse->Team->Apply Patch didn't work. I found a blog post http://greensopinion.blogspot.com/search/label/mac. He applied the patch once but not anymore. Has anyone got this to work or does anyone have a patched Eclipse? Gary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Serializable and isSerializable dead ends
After trying suggestions on other threads about these problems, the serialization policy file is still not found, even though it is generated. The alternative of adding the isSerializable marker to Serializable classes results in not found errors for isSerializable. We have tried 1.5.2 and 1.5.3 and build with maven and use the gwt:gwt goal. Right now, any reliable way to use Serializable or isSerializable would be appreciated. How can I ensure the policy file is found? Or. How can I ensure isSerializable is found when running mvn gwt: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-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 -~--~~~~--~~--~--~---