Re: Trouble with List Editors

2011-08-30 Thread Maiku
Thank you for de-confirming my assumption (which was only based on my
experience and the fact that FavoritesWidget I linked to did not use
UIBinder).  The error that I am receiving is appearing in DevMode but
I am not sure how to go about debugging further to find the root
cause. Any thoughts?

-- 
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: Trouble with List Editors

2011-08-29 Thread Maiku
It's unfortunate no one has further input on this. For the time being,
it looks to me like a limitation that you cannot use UIBinder for the
editors that are created by the ListEditor. Can anyone confirm 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.



Re: Trouble with List Editors

2011-08-29 Thread Thomas Broyer
I can confirm you *can* use any kind of sub-editor with ListEditor. More 
often than not our sub-editors are built using UiBinder (we do use 
RequestFactoryEditorDriver, but that really shouldn't matter; UiBinder is an 
implementation detail).

Is the error happening in DevMode or using GWT Designer?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/HmjasW9ST88J.
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.



Trouble with List Editors

2011-08-17 Thread Maiku
Hello,

I have a model that contains a List of Language objects (which just
contain a string for the language code and boolean to denote
default).  I am trying to setup a List Editor like that shown in
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java
for that model (with the major change that I am using
SimpleBeanEditorDriver instead of RequestFactoryEditorDriver).

However, during the creation of the LanguageEditor from the
LanguageListEditor.LanguageEditorSource's create method, it dies on
the call to uiBinder.createAndBindUi. The error seems to refer to
native javascript and I am unsure of how to debug it any further. Does
anyone have suggestions of what is the problem or how I can track it
down further?


22:09:04.490 [ERROR] [viewappdesigner] Failed to create an instance of
'vivid.client.widget.LanguageListEditor' via deferred binding

com.google.gwt.core.client.JavaScriptException: (TypeError):
__static[458906].call is not a function
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.DOMImpl.createElement(DOMImpl.java)
at com.google.gwt.dom.client.Document$.createDivElement$
(Document.java:290)
at com.google.gwt.user.client.ui.HTMLPanel.lt;initgt;
(HTMLPanel.java:79)
at
vivid.client.widget.LanguageEditor_LanguageEditorUiBinderImpl.createAndBindUi(LanguageEditor_LanguageEditorUiBinderImpl.java:
13)
at
vivid.client.widget.LanguageEditor_LanguageEditorUiBinderImpl.createAndBindUi(LanguageEditor_LanguageEditorUiBinderImpl.java:
1)
at vivid.client.widget.LanguageEditor.lt;initgt;
(LanguageEditor.java:50)
at vivid.client.widget.LanguageListEditor
$LanguageEditorSource.create(LanguageListEditor.java:47)
at vivid.client.widget.LanguageListEditor
$LanguageEditorSource.create(LanguageListEditor.java:1)
at
com.google.gwt.editor.client.adapters.ListEditorWrapper.add(ListEditorWrapper.java:
50)
at vivid.client.widget.LanguageListEditor.lt;initgt;
(LanguageListEditor.java:76)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
465)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
vivid.client.view.ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.createAndBindUi(ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.java:
26)
at
vivid.client.view.ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.createAndBindUi(ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.java:
1)
at vivid.client.view.ApplicationDialogViewImpl.lt;initgt;
(ApplicationDialogViewImpl.java:77)
at vivid.client.ClientFactoryImpl.lt;clinitgt;
(ClientFactoryImpl.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
654)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
458)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at vivid.client.ViewAppDesigner.onModuleLoad(ViewAppDesigner.java:
44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)

-- 
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