GWT calendar in Designer

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

GWT calendar in Designer

Postby nina » Sun Sep 07, 2008 5:25 pm

Has anyone successfully used any kind of calendar widget in GWT designer? I have been looking at

GWTChismes: http://code.google.com/p/gwtchismes/
Date picker http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=DatePicker

But I can't seem to understand how I can integrate them into the palette. I've tried Add Entry but always get a ClassNotFoundException, even though it finds it alright in the Choose a Widget dialogue.

I've also thought of using GWT-Ext's calendar, but I can't get the GWT-Ext palette to work on Ubuntu (there's a separate thread on that).

Would be grateful if anyone would like to share their calendar experience. All I want is for the user to be able to select a date (and maybe even time) on a form from a popup calendar, like we've been doing in Javascript for a long time.

Thanks
Nina
nina
 
Posts: 5
Joined: Mon Sep 01, 2008 5:00 pm

Re: GWT calendar in Designer

Postby Eric Clayberg » Mon Sep 08, 2008 9:53 am

nina wrote:Has anyone successfully used any kind of calendar widget in GWT designer?

We've used the one from GWT-Ext several times.

nina wrote:I've tried Add Entry but always get a ClassNotFoundException, even though it finds it alright in the Choose a Widget dialogue.

What does your Eclipse ".log" show?

A ClassNotFoundException error usually implies a classpath issue, a compilation issue, a JDK mismatch issue or even a JavaScript issue. See the Designer FAQ for suggestions.

nina wrote:I've also thought of using GWT-Ext's calendar, but I can't get the GWT-Ext palette to work on Ubuntu

Are you able to open the examples in our GWT Example Project?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: GWT calendar in Designer

Postby wangtong » Tue Sep 09, 2008 11:43 am

I am having the exact same problem. I added gwt-incubator.jar to my project's build path. Here is the eclipse log:

Code: Select all
!ENTRY com.swtdesigner 4 4 2008-09-09 15:58:43.296
!MESSAGE [Add Entry Dialog] Error load class: java.lang.ClassNotFoundException: com.google.gwt.widgetideas.datepicker.client.DatePicker
!STACK 0
java.lang.ClassNotFoundException: com.google.gwt.widgetideas.datepicker.client.DatePicker
   at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:610)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at com.swtdesigner.gwt.gef.palette.GWTPaletteEditorProvider.acceptEntryClass(GWTPaletteEditorProvider.java:27)
   at com.swtdesigner.gef.palette.configurable.ui.EntryDialog.handleValidateClass(EntryDialog.java:363)
   at com.swtdesigner.gef.palette.configurable.ui.EntryDialog$10.run(EntryDialog.java:347)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
   at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
   at org.eclipse.jface.window.Window.open(Window.java:801)
   at com.swtdesigner.gef.palette.model.PaletteInfo.addNewEntry(PaletteInfo.java:208)
   at com.swtdesigner.gef.palette.DesignerPaletteViewerProvider$3.run(DesignerPaletteViewerProvider.java:149)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
   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:3823)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
   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:193)
   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:382)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
wangtong
 
Posts: 4
Joined: Tue Sep 09, 2008 7:21 am

Re: GWT calendar in Designer

Postby wangtong » Tue Sep 09, 2008 12:03 pm

It's working now. I forgot the "inherits" tag in gwt.xml:

<inherits name="com.google.gwt.widgetideas.WidgetIdeas"/>
wangtong
 
Posts: 4
Joined: Tue Sep 09, 2008 7:21 am

Re: GWT calendar in Designer

Postby Eric Clayberg » Tue Sep 09, 2008 1:10 pm

wangtong wrote:It's working now. I forgot the "inherits" tag in gwt.xml:
<inherits name="com.google.gwt.widgetideas.WidgetIdeas"/>

Yes. You have to be careful about that. Just putting the jar on the classpath isn't enough for GWT.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests