Tuesday, September 27, 2016

Re: JsInterop and constants

It can't be a child interface.

On Tuesday, September 27, 2016 at 9:52:47 AM UTC-4, Kirill Prazdnikov wrote:
> or you can move your constants to another class since they are not js visibile...

Thats what am I doing:

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface JsObject {
  @JsProperty int getMyInt();

  interface Const {
    int ONE = 1;
  }
}

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: SDM Class replacement problem

Double check your classpath order, and/or possibly pass your source tree root folder as -src to SDM instead of adding it to the classpath.

On Tuesday, September 27, 2016 at 3:44:44 PM UTC+2, Alexander Tarasov wrote:
Hi.
I need to replace some abstact class from external library.
I've created the same package as in class and put there modified class.
In PROD mode everything works fine, but SDM does not see this file and compiles the original one.
Is it a bug? 
Is there any solution to force SDM to look up for modified files?
Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JsInterop and constants

> or you can move your constants to another class since they are not js visibile...

Thats what am I doing:

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface JsObject {
@JsProperty int getMyInt();

interface Const {
int ONE = 1;
}
}

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: How to debug server side code in Thomas Broyer GWT Maven Plugin

How do I run mvn gwt:compile? I have to pass moduleName. I don't knew how to pass it. I did some research without success. Please help me.

David

On Monday, September 26, 2016 at 10:14:06 AM UTC-4, Thomas Broyer wrote:


On Monday, September 26, 2016 at 3:02:37 PM UTC+2, David wrote:
Thomas,

I am not very familiar with Maven in Eclipse. I use Eclipse 4.6. Once I run "Debug as… → Maven", I see there are a lot of choices such as 
Maven build
Maven build...
Maven clean
Maven generate-sources
Maven install
Maven test.

I cannot figure it out how. Can you give me step-to-step instruction?

I don't use Eclipse (any longer), but IIRC, use "Maven build…" here, then in the window that opens you can give your -pl and -am (in the "goals" field, and define the 'env' system property with value 'dev' (or maybe just pass -Denv=dev)
 
I am very familiar with how to debug GWT application not using Maven.

You're not trying to debug a "GWT application" here actually, but a "web application". GWT is an implementation detail of your servlets as far as the server-side is concerned.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

SDM Class replacement problem

Hi.
I need to replace some abstact class from external library.
I've created the same package as in class and put there modified class.
In PROD mode everything works fine, but SDM does not see this file and compiles the original one.
Is it a bug? 
Is there any solution to force SDM to look up for modified files?
Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: [GWT 2.8 SHNAPSHOT] missing stack trace for 'Should only call onDetach when the widget is attached to the browser's document'

Sorry, I should also add if this is production, you can generate a symbol map file. Usually on my builds it is located under web-inf/deploy/<entry point>/<some hash>.symbolMap. You can search for the obfuscated function names e.g. nC_g$  You can also do this lookup at run-time. I would have to dig up the code because I can't remember the GWT class you use.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: [GWT 2.8 SHNAPSHOT] missing stack trace for 'Should only call onDetach when the widget is attached to the browser's document'

Is this in a production build or SDM? In SDM you can pass the flag -XmethodNameDisplayMode ABBREVIATED. Then in chrome you will see class/method names in the call stack

On Monday, September 26, 2016 at 5:24:25 PM UTC-4, Hristo Stoyanov wrote:
Hi all,
I wonder if anyone can help me figure out what is causing this - I am getting java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document . See below. I suspect this is a GWT exception of some kind, but the stack trace is obfuscated and I can not figure out where the problem is. I tried installing my exception handler with no success - the stack trace is still useless:

 Console.log("Exception logger INSTALLED!!!");
        GWT.setUncaughtExceptionHandler(e -> {
            GWT.log("Unhandled exception", e);
 });

This is happening with Errai 4 SNAPSHOT randomly, but if I figure out the stack trace I can get better understanding of what is going on. How do I get the stack trace ? How do I verify that the gwt Code server has all source maps it needs???

Thanks

================================================================================================================================

Current content widget vanished or changed. Not delivering pageHiding event to HomePage.
ErraiConsoleLogHandler.java:87 14:11:26 WARNING [DefaultNavigatingContainer] Got invalid page name "AboutPage". Redirecting to default page.
ErraiConsoleLogHandler.java:87 java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document
at Unknown.nC_g$(myApp-0.js@8:16163)
at Unknown.TC_g$(myApp-0.js@9:16405)
at Unknown._C_g$(myApp-0.js@9:16452)
at Unknown.kLf_g$(myApp-0.js@9:47908)
at Unknown.WBe_g$(myApp-0.js@18:37314)
at Unknown.aCe_g$(myApp-0.js@14:37371)
at Unknown.nCe_g$(myApp-0.js@14:37481)
at Unknown.ZPj_g$(myApp-0.js@8:114529)
at Unknown.ZBe_g$(myApp-0.js@36:37344)
at Unknown.WPj_g$(myApp-0.js@16:114507)
at Unknown.aOj_g$(myApp-0.js@17:113981)
at Unknown.iAi_g$(myApp-0.js@3:88783)
at Unknown.jAi_g$(myApp-0.js@15:88755)
at Unknown.y2i_g$(myApp-0.js@32:98783)
at Unknown.A2i_g$(myApp-0.js@17:98822)
at Unknown.c6i_g$(myApp-0.js@45:99823)
at Unknown._5i_g$(myApp-0.js@10:99802)
at Unknown.KAi_g$(myApp-0.js@32:88955)
at Unknown.L6i_g$(myApp-0.js@16:100106)
at Unknown.B7i_g$(myApp-0.js@54:100343)
at Unknown.AJj_g$(myApp-0.js@225:112594)
at Unknown.PDj_g$(myApp-0.js@30:110774)
at Unknown.QDj_g$(myApp-0.js@8:110787)
at Unknown.SDj_g$(myApp-0.js@8:110800)
at Unknown.FDj_g$(myApp-0.js@10:110638)
at Unknown.Sii_g$(myApp-0.js@261:83179)
at Unknown.lambda_0_g$(myApp-0.js@27:96)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.