Install old Eclipse plugin
I need to install version 2.2 of the GWT Eclipse plugin, but I can't find it anywhere. In Eclipse there's a checkbox to "show only latest version" but even with that option disabled, version 2.2 doesn't show up. How do I install version 2.2 and not the latest? -- 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.
Is validation on client side enough or do I need both?
The scenario: I have a form where you can create a new person by entering name in a textbox and click a button. When the user clicks the button I grab the value from the textbox and sets it on the Person object. The Person object validates the value and makes sure the name on the object only contains a-z. If not execution stops and an error is presented to the user. If all is good I send the Person object via an RPC call to the server. The question: When continuing execution on the server, can I be sure that the name only contains a-z or do I have to do server validation as well for protection from attackers? -- 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: Bug in TextBox.setEnabled(boolean enabled)?
Maybe this will work :) Just tested in IE9 and it seems to work... input.gwt-TextBox[disabled] I'm using the X-UA-Compatible IE=8 and GWT 2.2.0 btw... On 7 Apr, 14:13, Stephan T wrote: > Ok, I see. The problem I have right now is that I need to style all > textboxes that are disabled but I can't find any selector that will > work with this markup. > > I can't use this one: > input.gwt-TextBox[disabled='disabled'] > > and this one doesn't work in IE (tested in IE9): > input.gwt-TextBox[disabled=''] > > (I need support for IE7 and later) > > On 6 Apr, 16:59, Thomas Broyer wrote: > > > TextBox setDisable sets the disabled *property* (i.e. elem.disabled=true). > > What you see here is a re-serialization of the DOM by your development > > tools. > > > As for the "markup is / markup should be": in SGML-based-HTML (something no > > single browser ever implemented), the markup could be either > disabled> or . In HTML5, it can be either > disabled>, or , but the value > > of the attribute actually doesn't matter (only those 3 forms don't generate > > a "parse error", or in other words are the only "conformant" forms). -- 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: Bug in TextBox.setEnabled(boolean enabled)?
Ok, I see. The problem I have right now is that I need to style all textboxes that are disabled but I can't find any selector that will work with this markup. I can't use this one: input.gwt-TextBox[disabled='disabled'] and this one doesn't work in IE (tested in IE9): input.gwt-TextBox[disabled=''] (I need support for IE7 and later) On 6 Apr, 16:59, Thomas Broyer wrote: > TextBox setDisable sets the disabled *property* (i.e. elem.disabled=true). > What you see here is a re-serialization of the DOM by your development > tools. > > As for the "markup is / markup should be": in SGML-based-HTML (something no > single browser ever implemented), the markup could be either disabled> or . In HTML5, it can be either disabled>, or , but the value > of the attribute actually doesn't matter (only those 3 forms don't generate > a "parse error", or in other words are the only "conformant" forms). -- 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.
Bug in TextBox.setEnabled(boolean enabled)?
When I call the method TextBox.setEnabled(false) the textbox element does not get the correct markup. The markup is: The markup should be: Is this a bug or feature? -- 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.
Scroll to content
I have a rather large form which is taller than the visible area in the page. The users enters search criterias in this form and when the user executes the search I present the searchresults below the form. because the form takes up the whole screen the user doesn't notice that the searchresults have been displayed further down below. I want to programatically scroll the page to display search results. Just like html anchor works. But I can't use anchors sinxce it interferes with gwt history management. How do I programatically make the page scroll to a certain content? -- 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.
Server Side ColumnSorting with AsyncDataProvider
I'm trying to implement server side sorting using CellTable and AsyncDataProvider in GWT 2.2. I've followed the example in the documentation and have everything working with the AsyncDataProvider only fetching ten objects at a time. But when it comes to sorting I can't make it work. I can't figure out how to tell the server on which of the objects attributes to sort the query result. In the onRangeChanged-method I can get the ColumnSortList and then get the columns. But the column object does not contain information like the columns headerString. If I could get the columns headerString I could figure out which attribute of the object to do the sorting on, but I can't and now I'm out of ideas. I could of course subclass the column-object and add some kind of identifier-method to it, but I have a feeling that it's something I've missed because it shouldn't be that tedious. -- 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.
SimplePager - changing page callback
I'd like to perform some operations when a user, by clicking left or right arrow in a SimplePager, changes page in a CellTable. Can't find any suitable callback-methods or methods to override on SimplePager or CellTable. Any suggestions? -- 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.
Showing and hiding a ButtonCell in a CellTable
In a CellTable I'm using a ButtonCell column. The button for each row should show only when a condition is true. How do I achieve that? This is my code now: Column myColumn = new Column(new ButtonCell()) { @Override public String getValue(Person object) { return "Button label"; } }; myColumn.setFieldUpdater(new FieldUpdater() { @Override public void update(int index, final Person object, String value) { object.performOperationOnObject(); // and do some other stuff... } }); myCellTable.addColumn("", myColumn); The button should only show up if the Person.showButton() == true. Reply -- 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.
Showing and hiding a ButtonCell in a CellTable
I have a CellTable and a ButtonCell column. The button for each row should show only when a condition is true. How do I achieve that? This is my code now: Column myColumn = new Column(new ButtonCell()) { @Override public String getValue(Person object) { return "Button label"; } }; myColumn.setFieldUpdater(new FieldUpdater() { @Override public void update(int index, final Person object, String value) { object.performOperationOnObject(); // and do some other stuff... } }); myCellTable.addColumn("", myColumn); The button should only show up if the Person.showButton() == true. -- 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.
Style a ClickableTextCell
I'm using the new CellTable from GWT 2.1 and have a ClickableTextCell. I want the clickable text to have the same style as an a-element and the cursor should be a pointer when hovering the clickable text. How do I achieve 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-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: Can't compile in eclipe - unhandled event loop exception
Yes, I agree, really odd. When using STS 2.5.0 GWT seems to work, but I get some issues with Maven and dependecies. And my colleagues are using STS 2.3.0 and everything works for them. But they are using GWT Plugin 2.0.4. Is it possible to download version 2.0.4 and try? Only 2.1 seems to be available on the update site. // Stephan On 3 Nov, 16:30, Rajeev Dayal wrote: > This seems really odd - I know that we really only tested GPE against STS > 2.5.0 (if you want GPE to work with Roo and Maven project in STS, you need > to be using STS 2.5.0), but I still do not understand why you'd be running > into problems against an Eclipse 3.5 version of an older incarnation of STS. > > Did you have the Google Plugin for Eclipse installed previously? Was this an > upgrade? > > On Wed, Nov 3, 2010 at 5:06 AM, Stephan T wrote: > > Sometimes I also get this error in the Error log: > > > Problems occurred when invoking code from plug-in: > > "org.eclipse.core.resources". > > > java.lang.NoClassDefFoundError: com/google/gdt/eclipse/platform/jdt/ > > model/PlatformJavaModelUtilities$IAnnotationNotAvailableException > > at > > > com.google.gwt.eclipse.core.uibinder.UiBinderXmlModelUtilities.computeQualifiedWidgetTypeName(UiBinderXmlModelUtilities.java: > > 70) > > at > > > com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.tryParseWidgetFromElement(UiBinderXmlParser.java: > > 632) > > at > > > com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parseElement(UiBinderXmlParser.java: > > 301) > > at > > > com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parse(UiBinderXmlParser.java: > > 285) > > at > > > com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.access > > $0(UiBinderXmlParser.java:282) > > at > > com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser > > $1.visitNode(UiBinderXmlParser.java:170) > > at > > com.google.gdt.eclipse.core.XmlUtilities.visitNodes(XmlUtilities.java: > > 410) > > at > > > com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parse(UiBinderXmlParser.java: > > 226) > > at > > com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator > > $UiBinderSubtypeVisitor.parseAndValidateUiXml(UiBinderJavaValidator.java: > > 319) > > at > > com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator > > $UiBinderSubtypeVisitor.visit(UiBinderJavaValidator.java:276) > > at > > org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java: > > 467) > > at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480) > > at > > org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551) > > at > > org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java: > > 484) > > at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480) > > at > > org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551) > > at > > org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java: > > 219) > > at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480) > > at > > > com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator.validate(UiBinderJavaValidator.java: > > 538) > > at > > > com.google.gwt.eclipse.core.validators.java.JavaCompilationParticipant.buildStarting(JavaCompilationParticipant.java: > > 223) > > at > > > org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.notifyParticipants(AbstractImageBuilder.java: > > 565) > > at > > > org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java: > > 287) > > at > > > org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java: > > 60) > > at > > > org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java: > > 254) > > at > > org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java: > > 178) > > at org.eclipse.core.internal.events.BuildManager > > $2.run(BuildManager.java:627) > > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) > > at > > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: > > 170) > > at > > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildMa
Re: Can't compile in eclipe - unhandled event loop exception
Sometimes I also get this error in the Error log: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". java.lang.NoClassDefFoundError: com/google/gdt/eclipse/platform/jdt/ model/PlatformJavaModelUtilities$IAnnotationNotAvailableException at com.google.gwt.eclipse.core.uibinder.UiBinderXmlModelUtilities.computeQualifiedWidgetTypeName(UiBinderXmlModelUtilities.java: 70) at com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.tryParseWidgetFromElement(UiBinderXmlParser.java: 632) at com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parseElement(UiBinderXmlParser.java: 301) at com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parse(UiBinderXmlParser.java: 285) at com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.access $0(UiBinderXmlParser.java:282) at com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser $1.visitNode(UiBinderXmlParser.java:170) at com.google.gdt.eclipse.core.XmlUtilities.visitNodes(XmlUtilities.java: 410) at com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parse(UiBinderXmlParser.java: 226) at com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator $UiBinderSubtypeVisitor.parseAndValidateUiXml(UiBinderJavaValidator.java: 319) at com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator $UiBinderSubtypeVisitor.visit(UiBinderJavaValidator.java:276) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java: 467) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java: 484) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551) at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java: 219) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480) at com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator.validate(UiBinderJavaValidator.java: 538) at com.google.gwt.eclipse.core.validators.java.JavaCompilationParticipant.buildStarting(JavaCompilationParticipant.java: 223) at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.notifyParticipants(AbstractImageBuilder.java: 565) at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java: 287) at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java: 60) at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java: 254) at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java: 178) at org.eclipse.core.internal.events.BuildManager $2.run(BuildManager.java:627) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 201) at org.eclipse.core.internal.events.BuildManager $1.run(BuildManager.java:253) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 256) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java: 309) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java: 341) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java: 140) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java: 238) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.ClassNotFoundException: com.google.gdt.eclipse.platform.jdt.model.PlatformJavaModelUtilities $IAnnotationNotAvailableException at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java: 494) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 410) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 398) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java: 105) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 37 more On 3 Nov, 09:52, Stephan T wrote: > Yes, it's the "Unhandledeventloopexception" that shows up in the > Error log. > > In my plugin folder: > com.google.gdt.eclipse.core_1.4.0.v201010280047.jar > com.google.gdt.eclipse.maven_1.4.0.v201010280047.jar > com.google.gdt.eclipse.platform.e35_1.4.0.v201010280047.jar > com.google.gdt.eclipse.platform.shared_1.4.0.v2010102
Re: Can't compile in eclipe - unhandled event loop exception
Yes, it's the "Unhandled event loop exception" that shows up in the Error log. In my plugin folder: com.google.gdt.eclipse.core_1.4.0.v201010280047.jar com.google.gdt.eclipse.maven_1.4.0.v201010280047.jar com.google.gdt.eclipse.platform.e35_1.4.0.v201010280047.jar com.google.gdt.eclipse.platform.shared_1.4.0.v201010280047.jar com.google.gdt.eclipse.platform_1.4.0.v201010280047.jar com.google.gdt.eclipse.suite_1.4.0.v201010280047.jar On 2 Nov, 16:24, Rajeev Dayal wrote: > Can you drop into your Eclipse installation's plugin directory and tell me > the names of all of the plugins in there that start with com.google.gdt.*? > > Also, do you see any errors in your Error Log (Window -> Show View -> Error > Log)? > > On Tue, Nov 2, 2010 at 11:12 AM, Stephan T wrote: > > > I can't compile my gwt application in Eclipse. Works in Maven outside > > Eclipse though. I'm getting an error related to IPixelConverter (see > > below for full stacktrace). The version of Eclipse is 3.5.1 > > (SpringSource Tool Suite2.3.0) and version 2.1.0 of GWT Plugin > > installed from the 3.5 update site. > > > Any ideas why it doesn't work? > > > eclipse.buildId=2.3.0.200912171331-RELEASE > > java.version=1.6.0_22 > > java.vendor=Sun Microsystems Inc. > > BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=sv_SE > > Framework arguments: -product com.springsource.sts.ide > > Command-line arguments: -os win32 -ws win32 -arch x86_64 -product > > com.springsource.sts.ide > > > java.lang.NoClassDefFoundError: com/google/gdt/eclipse/platform/shared/ > > ui/IPixelConverter > > at > > > com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createAdvancedOptions(GWTCompileDialog.java: > > 337) > > at > > > com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createDialogArea(GWTCompileDialog.java: > > 250) > > at > > > org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java: > > 147) > > at > > > com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createContents(GWTCompileDialog.java: > > 215) > > at org.eclipse.jface.window.Window.create(Window.java:431) > > at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) > > at org.eclipse.jface.window.Window.open(Window.java:790) > > at > > > com.google.gwt.eclipse.core.actions.GWTCompileToolbarAction.run(GWTCompileToolbarAction.java: > > 64) > > at > > org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java: > > 251) > > at > > > org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java: > > 229) > > at > > > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java: > > 584) > > at org.eclipse.jface.action.ActionContributionItem.access > > $2(ActionContributionItem.java:501) > > at org.eclipse.jface.action.ActionContributionItem > > $6.handleEvent(ActionContributionItem.java:452) > > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) > > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) > > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: > > 3880) > > at > > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473) > > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: > > 2405) > > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) > > at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) > > at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) > > at > > org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: > > 332) > > at > > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: > > 493) > > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: > > 149) > > at > > > org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java: > > 113) > > at > > > org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java: > > 194) > > at > > > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: > > 110) > > at > > > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: > > 79) > > at > > org.eclipse.core.runtime.adaptor.EclipseSt
Can't compile in eclipe - unhandled event loop exception
I can't compile my gwt application in Eclipse. Works in Maven outside Eclipse though. I'm getting an error related to IPixelConverter (see below for full stacktrace). The version of Eclipse is 3.5.1 (SpringSource Tool Suite2.3.0) and version 2.1.0 of GWT Plugin installed from the 3.5 update site. Any ideas why it doesn't work? eclipse.buildId=2.3.0.200912171331-RELEASE java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=sv_SE Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide java.lang.NoClassDefFoundError: com/google/gdt/eclipse/platform/shared/ ui/IPixelConverter at com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createAdvancedOptions(GWTCompileDialog.java: 337) at com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createDialogArea(GWTCompileDialog.java: 250) at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java: 147) at com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createContents(GWTCompileDialog.java: 215) at org.eclipse.jface.window.Window.create(Window.java:431) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) at org.eclipse.jface.window.Window.open(Window.java:790) at com.google.gwt.eclipse.core.actions.GWTCompileToolbarAction.run(GWTCompileToolbarAction.java: 64) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java: 251) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java: 229) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java: 584) at org.eclipse.jface.action.ActionContributionItem.access $2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem $6.handleEvent(ActionContributionItem.java:452) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3880) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java: 113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java: 194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 179) 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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) at org.eclipse.equinox.launcher.Main.main(Main.java:1287) Caused by: java.lang.ClassNotFoundException: com.google.gdt.eclipse.platform.shared.ui.IPixelConverter at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java: 494) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 410) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 398) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java: 105) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 38 more -- 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: Building two war-files with Maven using different web.xml
I managed to make it work with the assembly plugin. Maybe not a state of the art maven konfiguration, but it seems to work :) This produces three war-files. The original which I won't be using anymore, and two additional war files with the extension int and ext. added this to the pom: maven-assembly-plugin make-assembly-external assembly-descriptor-external.xml package attached make-assembly-internal assembly-descriptor-internal.xml package attached and this is the assembly-descriptor-external.xml: http://maven.apache.org/plugins/maven-assembly-plugin/assembly/ 1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly- plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd";> ext false war ../${project.artifactId}/target/${project.artifactId}-$ {project.version}/ ** WEB-INF/web.xml / ../${project.artifactId}/src/main/web/ext/web.xml /WEB-INF On 12 Aug, 20:17, "dane.molotok" wrote: > Have you thought about using themaven-assembly-plugin to generate a > secondary end-state? Just an idea. > > On Aug 12, 6:23 am, Stephan T wrote: > > > I need to build two war files with different web.xml files becuase of > > different servlet filter configurations depending on which server it > > will be deployed on. > > > It will be deployed on two server simultaneously. I'd rather build two > > war files during one build, because that will always be the scenario. > > Feels a bit quirky to fiddle with profiles etc. > > > I have successfully managed to get something similar working when > > building another artifact in the project using "executions", but that > > artifact is a jar, and I can't seem to get this to work with themaven > > war plugin. > > > This is the error I get now:: > > Error assembling WAR: Deployment descriptor: W:\trunk\web\target > > \web-2.2.4-SNAPSHOT\WEB-INF\web.xml does not exist. > > > And this is a snippet from my pom.xml which produces the error: > > > > org.apache.maven.plugins > > maven-war-plugin > > > > > > package-int > > package > > > > war > > > > > > war > > war/WEB-INF/web.xml > > > > > > > > package-ext > > package > > > > war > > > > > > war > > src/main/web/ext/web.xml > > > > > > > > > > > I also realize that this hasn't got anything with GWT to do :) But > > since this mail list is heavy on webapp/java knowledgable people and > >mavenis often used to build these kind of products, I guess someone > > might know... > > > // S > > > On 6 Aug, 19:14, andreas wrote: > > > > I don't think you can do that in one build. > > > > But you can use profiles to have two different builds. Of course you > > > will have to build twice, once for each profile but with that you'll > > > have the different builds. I use profiles to run hosted_mode target > > > with fake service servlet implementation
Re: Building two war-files with Maven using different web.xml
I need to build two war files with different web.xml files becuase of different servlet filter configurations depending on which server it will be deployed on. It will be deployed on two server simultaneously. I'd rather build two war files during one build, because that will always be the scenario. Feels a bit quirky to fiddle with profiles etc. I have successfully managed to get something similar working when building another artifact in the project using "executions", but that artifact is a jar, and I can't seem to get this to work with the maven war plugin. This is the error I get now:: Error assembling WAR: Deployment descriptor: W:\trunk\web\target \web-2.2.4-SNAPSHOT\WEB-INF\web.xml does not exist. And this is a snippet from my pom.xml which produces the error: org.apache.maven.plugins maven-war-plugin package-int package war war war/WEB-INF/web.xml package-ext package war war src/main/web/ext/web.xml I also realize that this hasn't got anything with GWT to do :) But since this mail list is heavy on webapp/java knowledgable people and maven is often used to build these kind of products, I guess someone might know... // S On 6 Aug, 19:14, andreas wrote: > I don't think you can do that in one build. > > But you can use profiles to have two different builds. Of course you > will have to build twice, once for each profile but with that you'll > have the different builds. I use profiles to run hosted_mode target > with fake service servlet implementations and web.xml with appropriate > mapping and no security constraints. The normal build will use the > deploy web.xml with real servlet mapped and security constraints. > > For me this works pretty good and you will not have to alter files > (especially pom.xml) for this or that and hence get messy conflicts > with your version system. > > Regards, > > Andreas > > On 6 Aug., 19:02, "dane.molotok" wrote: > > > I've thought about doing that also, in order to to have a war where > > my .gwt.xml inherits the Debug module, and one that does not, but I'm > > beginning to think it's not even buying me much to find out how to do > > it. I'm assuming you have a similar reason for wanting to do this? > > > On Aug 6, 3:57 am, Stephan T wrote: > > > > I'm using the GWT-plugin forMavento build my application. I want to > > > build two war-files where the only difference is that I want to use a > > > different web.xml. > > > > How do I achieve that? > > > > Here's my pom.xml: > > > > > > http://maven.apache.org/POM/4.0.0"; > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0...";> > > > 4.0.0 > > > > Web Application > > > my.company > > > web > > > ${web-version} > > > war > > > > > > > my.company > > > build > > > ${version} > > > ../build/pom.xml > > > > > > > > > > war/WEB-INF/classes > > > > > > > > > org.codehaus.mojo > > > gwt-maven-plugin > > > > > > > > > > > > > > > compile > > > > > > > > > test > > > > > > > > > > > > > > > > >
Building two war-files with Maven using different web.xml
I'm using the GWT-plugin for Maven to build my application. I want to build two war-files where the only difference is that I want to use a different web.xml. How do I achieve that? Here's my pom.xml: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 Web Application my.company web ${web-version} war my.company build ${version} ../build/pom.xml war/WEB-INF/classes org.codehaus.mojo gwt-maven-plugin compile test org.apache.maven.plugins maven-war-plugin war war/WEB-INF/web.xml my.company env-configuration ${env-configuration-version} jar provided my.company common ${common-version} jar com.google.gwt gwt-servlet com.google.gwt gwt-user com.google.gwt gwt-incubator org.springframework.security spring-security-taglibs org.springframework.security spring-security-config org.springframework.security spring-security-web jstl jstl taglibs standard -- 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: Instantiate composite on the server side
The reason why I try to do this is that GWT doesn't support reflections. I'm trying to use a helper method on the server side which receivs the class name, the server side then instatiates the class and returns it to the client. Any other suggestions how to solve this problem? On 5 Aug, 15:47, Mikael Couzic wrote: > Sounds like you violated the SRP principle... > If I got it right, Composite depends on the DOM, which doesn't exist > server-side, so I don't think it is possible. > A solution would be to encapsulate the functionnality you want to use > server-side in a POJO. Your composite would then delegate to the POJO, > which could be reused server-side. > And if you wish to push further towards great design, embrace MVP ! > > On 5 août, 14:42, Stephan T wrote: > > > For several reasons I need to instansiate a Composite on the server > > side that is in the client package. Is it possible? Now I think I'm > > getting class not found exception when trying... -- 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.
Instantiate composite on the server side
For several reasons I need to instansiate a Composite on the server side that is in the client package. Is it possible? Now I think I'm getting class not found exception when trying... -- 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.
Disabling DatePicker
How do I disable the DatePicker widget programatically? Can't find any suitable setEnabled-method... -- 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.
Label for form-element using UIBindings
How do I achieve this code this using UI Bindings? First name -- 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.
RadioButton group handling
I have ten radio buttons which is a group. Is there a way to ask the group of it's current selected value or do I have to go through every RadioButton and check which one is "true"? Also, i'd like to attach an event to change on the group. Do I really have to attach a ChangeEvent on each RadioButton? Can't find anything in the docs. This is basic html form behaviours, so I'm suprised this information is hard to find. Or maybe I haven't searched enough. -- 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.
Creating a definition list composite
I want to create a Composite that generates a HTML definition list. I've managed to do so by using the code below, but I can't figure out how to add widgets to the list properly. Now I'm adding them using widget.getElement() but I have widgets with ClickHandlers attached and then the ClickHandlers doesn't work. I guess I need another approach than creating dom elements in code if I want support for adding widgets? I've been thinking about a UiBinder approach but can't figure out how to make that work when I need to be able to update the definition list in runtime depending on the number of objects in my NameValue list. This is the code I want: name first value Second (widget with a clickhandler) There is no div elements or such allowed inside the dl element (if I want to be able to stick to XHTML 1 Strict) [CODE] package mywebapp.client.widgets; import java.util.List; import mywebapp.client.util.NameValue; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Widget; public class DataGroup extends Composite { FlowPanel flowPanel = new FlowPanel(); private String legend; public DataGroup () { super.initWidget(flowPanel); } public void update(final List nameValueList) { final Element fieldset = DOM.createElement("fieldset"); final Element legend = DOM.createElement("legend"); legend.setInnerText(legend); final Element dl = DOM.createElement("dl"); for (final NameValue nameValue : nameValueList) { final Element dt = DOM.createElement("dt"); dt.setInnerHTML(nameValue.getName()); final Element dd = DOM.createElement("dd"); if(nameValue.getValue() instanceof String) { dd.setInnerHTML((String)nameValue.getValue()); } else if(nameValue.getValue() instanceof Widget) { dd.appendChild(((Widget)nameValue.getValue()).getElement()); } dl.appendChild(dt); dl.appendChild(dd); } fieldset.appendChild(legend); fieldset.appendChild(dl); final HTMLPanel innerHtmlPanel = new HTMLPanel(fieldset.getString()); ((FlowPanel) this.getWidget()).clear(); ((FlowPanel) this.getWidget()).add(innerHtmlPanel); } public void setLegend(String legend) { this.legend = legend; } } [/CODE] -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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.