Re: [gwt-contrib] Some separate compilation errors/questions

2014-07-19 Thread Miroslav Genov
Hello, 

Is there issue about this ?

I was searching for it, but I can't find it. 

On Saturday, June 21, 2014 7:21:30 PM UTC+3, Jens wrote:
>
> Hey Jens
>>
>> Thanks for trying it out.
>>
>
> Hey John,
>
> are you aware of issues regarding GWT's RuntimeRebinder classes and 
> incremental compilation? I am trying SDM incremental from time to time and 
> have these issues:
>
> 1.) In current GWT trunk a new app with empty entry point does not work 
> anymore at runtime when using incremental compile. It fails with
>
>
>1. Uncaught TypeError: Cannot read property 
>'containsKey__Ljava_lang_Object_2Z' of undefined Example-0.js:8181
>   1. 
>   
> com_google_gwt_lang_RuntimeRebinder_createInstance__Ljava_lang_Class_2Ljava_lang_Object_2
>   Example-0.js:8181
>   2. java_util_AbstractHashMap_clearImpl__VExample-0.js:21715
>   3. java_util_AbstractHashMap_$init__VExample-0.js:21695
>   4. java_util_AbstractHashMap_AbstractHashMap__VExample-0.js:21667
>   5. java_util_HashMap_HashMap__VExample-0.js:26220
>   6. com_google_gwt_lang_RuntimeRebinder_$clinit__VExample-0.js:8167
>   7. 
>   
> com_google_gwt_lang_RuntimeRebinder_createInstance__Ljava_lang_Class_2Ljava_lang_Object_2
>   Example-0.js:8178
>   8. com_google_gwt_core_client_impl_Impl_$clinit__VExample-0.js:3534
>   9. 
>   
> com_google_gwt_core_client_impl_Impl_registerEntry__Lcom_google_gwt_core_client_JavaScriptObject_2
>   Example-0.js:3728
>   10. 
>   
> com_google_gwt_lang_ModuleUtils_registerEntry__Lcom_google_gwt_core_client_JavaScriptObject_2
>   Example-0.js:197
>   11. (anonymous function)
>   
>
> 2.) In an older GWT trunk version, which does not cause the issue in 1.), 
> sometimes the RuntimeRebinder.runtimeRebindRuleByRequestTypeName Map has 
> some missing entries. Because of that the app fails to start at runtime 
> when using incremental compilation because no RuntimeRebindRule for my 
> AppGinjector can be found in the map. When not using incremental compile, 
> everything works.
>
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/89f131d9-99f1-4ecf-971c-064a16b9aedb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Отг: Re: Broken editor type conversions in GWT trunk r10227

2011-05-26 Thread Miroslav Genov
Ah my mistake. Sorry about that post, but I wasn't sure where the problem is 
with my usage or some GWT issue. Thats why I posted it on both groups. 

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Broken editor type conversions in GWT trunk r10227

2011-05-26 Thread Miroslav Genov
Hello,
I'm trying to use trunk version of GWT but I'm encountering some conversion 
issues with the Editor framework. 

Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.String
at 
com.google.gwt.text.shared.testing.PassthroughRenderer.render(PassthroughRenderer.java:1)
at 
com.google.gwt.user.client.ui.ValueBoxBase.setValue(ValueBoxBase.java:394)
at 
com.google.gwt.user.client.ui.ValueBoxBase.setValue(ValueBoxBase.java:389)
at 
com.google.gwt.editor.ui.client.adapters.ValueBoxEditor.setValue(ValueBoxEditor.java:106)
at com.google.gwt.editor.client.impl.Refresher.visit(Refresher.java:45)
at com.google.gwt.editor.client.impl.Initializer.visit(Initializer.java:49)
at 
com.google.gwt.editor.client.impl.AbstractEditorContext.traverse(AbstractEditorContext.java:128)
at 
com.clouway.requestfactory.app.client.CustomerEditor_RequestFactoryEditorDelegate.accept(CustomerEditor_RequestFactoryEditorDelegate.java:54)
at 
com.google.gwt.editor.client.impl.AbstractEditorContext.traverse(AbstractEditorContext.java:129)
at 
com.clouway.requestfactory.app.client.CustomerEditorWorkflow_DriverImpl.accept(CustomerEditorWorkflow_DriverImpl.java:6)
at 
com.google.gwt.editor.client.impl.BaseEditorDriver.doEdit(BaseEditorDriver.java:92)
at 
com.google.web.bindery.requestfactory.gwt.client.impl.AbstractRequestFactoryEditorDriver.edit(AbstractRequestFactoryEditorDriver.java:178)

The AbstractEditorDriverGenerator is generating different 
AbstractEditorContext for each property of the entity, so the following 
declaration:
  @UiField
  ValueBoxEditorDecorator age;

  Age:
  

  

  

generates AbstractEditorContext for "age" field as 
@Override public Class getEditedType() { return java.lang.Integer.class; 
}
  @Override public java.lang.Integer getFromModel() {
return (parent != null && true) ? parent.getAge() : null;
  }

And here is the problem, the   TextBoxBase class is using the default 
PassthroghtParser (of type String)

protected TextBoxBase(Element elem) {
  super(elem, PassthroughRenderer.instance(), PassthroughParser.instance());
}
which is causing the provided exception. Any idea how I can make it working 
?

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors