Thursday, June 29, 2017

Re: Does FlexTable break SplitLayoutPanel?

The short answer is "no". My error was unrelated to the FlexTable.

On Wednesday, June 28, 2017 at 1:40:54 PM UTC-4, Harry Wagner wrote:
I have an app written back in the 1.x days that I am trying to migrate to 2.8 and standards mode. It uses SplitLayoutPanel. Following initialization a dialog box is displayed that includes a FlexTable. That seems to break the SplitLayoutPanel. The splitter stops working at that point. No error msgs I have been able to find. Should this work or do I need to substitute something else for the FlexTable? TIA.

Harry

--
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: Debugging question

Found it. The module with the onModuleLoad() method implements ResizeHandler and NativePreviewHandler. The doEventPreview() method was trying to set the splitter position programmatically. I pulled that code since the "resizable" panels I am using now manages resize events. Seems to work now. Many thanks for the help!

On Thursday, June 29, 2017 at 8:04:44 AM UTC-4, Stevko wrote:
name_0_g$ has the signature of an object member variable. Sounds like you have an initialization problem with one of your classes.



On Jun 29, 2017 7:55 AM, "Harry Wagner"  wrote:
Some progress. The unresponsiveness is due to a breakpoint being taken due to an umbrella exception. I found this on the debugger tab of Safari's developer tools. 

Exception with thrown value: Error: com.google.web.bindery.event.shared.UmbrellaException: Exception caught: (TypeError) : undefined is not an object (evaluating 'name_0_g$')

I've no idea what is causing the exception and am still looking for a stack trace.


On Thursday, June 29, 2017 at 7:46:12 AM UTC-4, Thomas Broyer wrote:


On Thursday, June 29, 2017 at 1:41:08 PM UTC+2, Harry Wagner wrote:
I mean that the SplitLayoutPanel's splitter no longer works, nor the page's HTML links. It works if I comment-out the code that displays the dialog box.

It might be that there's a transparent element that covers them/everything and "eats" the mouse events. You'd have to chase where it comes from and why it doesn't go away (hopefully the div's attributes –e.g. class=""– will hint in the right direction).

--
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-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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.1 release

Thanks Alexander. Nice



Am Donnerstag, 29. Juni 2017 13:59:58 UTC+2 schrieb Alexander Leshkin:

I'll create a patch.

On Thursday, June 29, 2017 at 2:15:19 PM UTC+3, Thomas Broyer wrote:
You're right!

Could one of you file an issue and/or send in a patch?
http://www.gwtproject.org/makinggwtbetter.html

On Thursday, June 29, 2017 at 12:08:55 PM UTC+2, Alexander Leshkin wrote:
Looks like there is a bug in https://github.com/gwtproject/gwt/blob/a90832fec9a56f4cb83ed009c7048e0a8d196fe8/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java#L175

I think it should be:
args.add("-includeJsInteropExports");
args.add(regex);

And line above (for excludeJsInteropExports) has the same issue.

On Wednesday, June 28, 2017 at 3:42:49 PM UTC+3, Thomas Broyer wrote:


On Wednesday, June 28, 2017 at 1:04:12 PM UTC+2, Max F wrote:
Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.

But the -generateJsInteropExports help message references the other two as singular instead of plural: https://github.com/gwtproject/gwt/blob/2.8.1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerGenerateJsInteropExports.java#L32
 
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c

How are you passing the arguments?
It looks like you're passing "-includeJsInteropExports a.b.c" as a single argument, which indeed won't work. You need to pass 2 arguments: "-includeJsInteropExports" and "a.b.c".

--
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.1 release



On Thursday, June 29, 2017 at 1:59:58 PM UTC+2, Alexander Leshkin wrote:

Great! 

--
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: Debugging question

name_0_g$ has the signature of an object member variable. Sounds like you have an initialization problem with one of your classes.



On Jun 29, 2017 7:55 AM, "Harry Wagner" <wagner.harry@gmail.com> wrote:
Some progress. The unresponsiveness is due to a breakpoint being taken due to an umbrella exception. I found this on the debugger tab of Safari's developer tools. 

Exception with thrown value: Error: com.google.web.bindery.event.shared.UmbrellaException: Exception caught: (TypeError) : undefined is not an object (evaluating 'name_0_g$')

I've no idea what is causing the exception and am still looking for a stack trace.


On Thursday, June 29, 2017 at 7:46:12 AM UTC-4, Thomas Broyer wrote:


On Thursday, June 29, 2017 at 1:41:08 PM UTC+2, Harry Wagner wrote:
I mean that the SplitLayoutPanel's splitter no longer works, nor the page's HTML links. It works if I comment-out the code that displays the dialog box.

It might be that there's a transparent element that covers them/everything and "eats" the mouse events. You'd have to chase where it comes from and why it doesn't go away (hopefully the div's attributes –e.g. class=""– will hint in the right direction).

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

--
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.1 release

Issue https://github.com/gwtproject/gwt/issues/9533

I'll create a patch.

On Thursday, June 29, 2017 at 2:15:19 PM UTC+3, Thomas Broyer wrote:
You're right!

Could one of you file an issue and/or send in a patch?
http://www.gwtproject.org/makinggwtbetter.html

On Thursday, June 29, 2017 at 12:08:55 PM UTC+2, Alexander Leshkin wrote:
Looks like there is a bug in https://github.com/gwtproject/gwt/blob/a90832fec9a56f4cb83ed009c7048e0a8d196fe8/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java#L175

I think it should be:
args.add("-includeJsInteropExports");
args.add(regex);

And line above (for excludeJsInteropExports) has the same issue.

On Wednesday, June 28, 2017 at 3:42:49 PM UTC+3, Thomas Broyer wrote:


On Wednesday, June 28, 2017 at 1:04:12 PM UTC+2, Max F wrote:
Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.

But the -generateJsInteropExports help message references the other two as singular instead of plural: https://github.com/gwtproject/gwt/blob/2.8.1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerGenerateJsInteropExports.java#L32
 
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c

How are you passing the arguments?
It looks like you're passing "-includeJsInteropExports a.b.c" as a single argument, which indeed won't work. You need to pass 2 arguments: "-includeJsInteropExports" and "a.b.c".

--
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: Debugging question

Some progress. The unresponsiveness is due to a breakpoint being taken due to an umbrella exception. I found this on the debugger tab of Safari's developer tools. 

Exception with thrown value: Error: com.google.web.bindery.event.shared.UmbrellaException: Exception caught: (TypeError) : undefined is not an object (evaluating 'name_0_g$')

I've no idea what is causing the exception and am still looking for a stack trace.


On Thursday, June 29, 2017 at 7:46:12 AM UTC-4, Thomas Broyer wrote:


On Thursday, June 29, 2017 at 1:41:08 PM UTC+2, Harry Wagner wrote:
I mean that the SplitLayoutPanel's splitter no longer works, nor the page's HTML links. It works if I comment-out the code that displays the dialog box.

It might be that there's a transparent element that covers them/everything and "eats" the mouse events. You'd have to chase where it comes from and why it doesn't go away (hopefully the div's attributes –e.g. class=""– will hint in the right direction).

--
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: Debugging question



On Thursday, June 29, 2017 at 1:41:08 PM UTC+2, Harry Wagner wrote:
I mean that the SplitLayoutPanel's splitter no longer works, nor the page's HTML links. It works if I comment-out the code that displays the dialog box.

It might be that there's a transparent element that covers them/everything and "eats" the mouse events. You'd have to chase where it comes from and why it doesn't go away (hopefully the div's attributes –e.g. class=""– will hint in the right direction).

--
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: Debugging question

I mean that the SplitLayoutPanel's splitter no longer works, nor the page's HTML links. It works if I comment-out the code that displays the dialog box. I am using both the Safari and Chrome developer tools.I am new to GWT and would not be surprised to learn I am doing something silly. Thanks for your help!

On Wednesday, June 28, 2017 at 3:33:59 PM UTC-4, Thomas Broyer wrote:
What do you mean by unresponsive? Have you looked at the browser's developer tools?

--
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.1 release

You're right!

Could one of you file an issue and/or send in a patch?
http://www.gwtproject.org/makinggwtbetter.html

On Thursday, June 29, 2017 at 12:08:55 PM UTC+2, Alexander Leshkin wrote:
Looks like there is a bug in https://github.com/gwtproject/gwt/blob/a90832fec9a56f4cb83ed009c7048e0a8d196fe8/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java#L175

I think it should be:
args.add("-includeJsInteropExports");
args.add(regex);

And line above (for excludeJsInteropExports) has the same issue.

On Wednesday, June 28, 2017 at 3:42:49 PM UTC+3, Thomas Broyer wrote:


On Wednesday, June 28, 2017 at 1:04:12 PM UTC+2, Max F wrote:
Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.

But the -generateJsInteropExports help message references the other two as singular instead of plural: https://github.com/gwtproject/gwt/blob/2.8.1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerGenerateJsInteropExports.java#L32
 
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c

How are you passing the arguments?
It looks like you're passing "-includeJsInteropExports a.b.c" as a single argument, which indeed won't work. You need to pass 2 arguments: "-includeJsInteropExports" and "a.b.c".

--
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: Unable to install GWT Plugin in Eciplse Neon

Don't use the plugin from google. Use this one instead : https://github.com/gwt-plugins/gwt-eclipse-plugin

Watch the YouTube movies for instructions : https://www.youtube.com/watch?v=DU7ZQVLR5Zo&list=PLBbgqtDgdc_TqzA-qXrjgTFMC_6DKAQyT

--
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.1 release

Looks like there is a bug in https://github.com/gwtproject/gwt/blob/a90832fec9a56f4cb83ed009c7048e0a8d196fe8/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java#L175

I think it should be:
args.add("-includeJsInteropExports");
args.add(regex);

And line above (for excludeJsInteropExports) has the same issue.

On Wednesday, June 28, 2017 at 3:42:49 PM UTC+3, Thomas Broyer wrote:


On Wednesday, June 28, 2017 at 1:04:12 PM UTC+2, Max F wrote:
Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.

But the -generateJsInteropExports help message references the other two as singular instead of plural: https://github.com/gwtproject/gwt/blob/2.8.1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerGenerateJsInteropExports.java#L32
 
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c

How are you passing the arguments?
It looks like you're passing "-includeJsInteropExports a.b.c" as a single argument, which indeed won't work. You need to pass 2 arguments: "-includeJsInteropExports" and "a.b.c".

--
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: Unable to install GWT Plugin in Eciplse Neon

I got the same error when install plugin from marketplace as well. Anyone know the workaround?

On Sunday, June 25, 2017 at 9:53:10 PM UTC+8, Gautam SHAHI wrote:
Why i am getting this error?

--
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.1 release

Hi Thomas,

yes, I used a common space. The parameters keep joined as one.
I'll just be waiting until someone else tries this feature.

Thanks!

Kind regards,
Max

Am Mittwoch, 28. Juni 2017 18:22:32 UTC+2 schrieb Thomas Broyer:


On Wednesday, June 28, 2017 at 4:55:55 PM UTC+2, Max F wrote:
Thanks for your reply, Thomas.

I am using Brandon's Eclipse plugin. I thought a space would be a separator for parameters; this is working for e.g. the -war parameter. My arguments for the CodeServer:
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl XXX.html -logLevel INFO -codeServerPort 9997 -port 8888 -generateJsInteropExports -includeJsInteropExports a.b.c -war D:\XXX\XXX\war com.XXX.XXX.XXX

Check that this is a "real" space character (U+0020) then and not a non-breaking space or other flavor? (I'm out of ideas)

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

Wednesday, June 28, 2017

Transpile plain Java project WITHOUT references to any UI, DOM, or any other web/framework features

Hi all,

I have a Java project which performs scientific calculations. It does not have any dependencies and it does not reference any UI, DOM, or any other web environment features. It is basically a few custom data structures and algorithms. I wish to expose one class in this project using JsInterop and consume it in a React Native and React app.

I've successfully transpiled the Java into Javascript, but I am unable to use it my React Native app because the resulting Javascript seems to reference UI elements (there's always "var $wnd = $wnd || window.parent..." at the top of the cache.js file which React Native chokes on). Is there a way to achieve my goal and, if so, how?

Thanks,

Igor

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

Debugging question

What do you mean by unresponsive? Have you looked at the browser's developer tools?

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

Debugging question

I am migrating an old 1.x app to 2.8 and standards mode. After initialization the app displays a dialog box for authentication. After accepting the user input (and successfully authenticating) the app becomes completely unresponsive. I cannot find an error msg or other hint as to why. I am working in command-line mode and using SDM. Other than the command-line console and the SDM console is there anywhere else I might find a clue as to what had gone wrong? TIA.

Harry

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

Does FlexTable break SplitLayoutPanel?

I have an app written back in the 1.x days that I am trying to migrate to 2.8 and standards mode. It uses SplitLayoutPanel. Following initialization a dialog box is displayed that includes a FlexTable. That seems to break the SplitLayoutPanel. The splitter stops working at that point. No error msgs I have been able to find. Should this work or do I need to substitute something else for the FlexTable? TIA.

Harry

--
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.1 release



On Wednesday, June 28, 2017 at 4:55:55 PM UTC+2, Max F wrote:
Thanks for your reply, Thomas.

I am using Brandon's Eclipse plugin. I thought a space would be a separator for parameters; this is working for e.g. the -war parameter. My arguments for the CodeServer:
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl XXX.html -logLevel INFO -codeServerPort 9997 -port 8888 -generateJsInteropExports -includeJsInteropExports a.b.c -war D:\XXX\XXX\war com.XXX.XXX.XXX

Check that this is a "real" space character (U+0020) then and not a non-breaking space or other flavor? (I'm out of ideas)

--
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.1 release

Thanks for your reply, Thomas.

I am using Brandon's Eclipse plugin. I thought a space would be a separator for parameters; this is working for e.g. the -war parameter. My arguments for the CodeServer:
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl XXX.html -logLevel INFO -codeServerPort 9997 -port 8888 -generateJsInteropExports -includeJsInteropExports a.b.c -war D:\XXX\XXX\war com.XXX.XXX.XXX

Not using any quotes; they seem to get eliminated from the arguments string anyway by Eclipse.

Kind regards,
Max

Am Mittwoch, 28. Juni 2017 14:42:49 UTC+2 schrieb Thomas Broyer:


On Wednesday, June 28, 2017 at 1:04:12 PM UTC+2, Max F wrote:
Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.

But the -generateJsInteropExports help message references the other two as singular instead of plural: https://github.com/gwtproject/gwt/blob/2.8.1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerGenerateJsInteropExports.java#L32
 
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c

How are you passing the arguments?
It looks like you're passing "-includeJsInteropExports a.b.c" as a single argument, which indeed won't work. You need to pass 2 arguments: "-includeJsInteropExports" and "a.b.c".

--
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.1 release



On Wednesday, June 28, 2017 at 1:04:12 PM UTC+2, Max F wrote:
Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.

Thanks, I just fixed the release notes: https://github.com/gwtproject/gwt-site/commit/54403382872815bb4ee94224839b0dbeccad8935
But the -generateJsInteropExports help message references the other two as singular instead of plural: https://github.com/gwtproject/gwt/blob/2.8.1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerGenerateJsInteropExports.java#L32
 
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c

How are you passing the arguments?
It looks like you're passing "-includeJsInteropExports a.b.c" as a single argument, which indeed won't work. You need to pass 2 arguments: "-includeJsInteropExports" and "a.b.c".

--
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.1 release

Hello,

first of all, thanks for GWT!
I am trying to make use of the new includeJsInteropExports flag while using the CodeServer.
It seems that those new two switches need an extra "s": e.g. -includeJsInteropExports instead of -includeJsInteropExport.
But even then I did not succeed; CodeServer returns with:

Unknown argument: -includeJsInteropExports a.b.c
Google Web Toolkit 2.8.1

Could anyone provide a working CodeServer parameters list using that feature? I just found the GWT test case (https://github.com/gwtproject/gwt/blob/master/dev/core/test/com/google/gwt/dev/ArgHandlerFilterJsInteropExportsTest.java).

Or is this feature only to be used in deployment, not during development using CodeServer?

Thanks for any response.

Kind regards,
Max


Am Dienstag, 25. April 2017 21:30:21 UTC+2 schrieb Colin Alworth:

I'm very pleased to announce the release of GWT 2.8.1. This contains many bugfixes and a few enhancements to JsInterop.


Highlights from release notes:

  • Elemental1's JSON parser now correctly throws an exception when a string, object, or array is not correctly ended.

  • Support filtering JsInterop types for export, with whitelist/blacklist and wildcards. The -generateJsInteropExport flag is still used to enable the feature, but -includeJsInteropExport and -excludeJsInteropExport now exist to specify packages with optional * wildcards. Later arguments and patterns override earlier ones.

  • Support "*" (any) and "?" (unknown) types as a JsType native name. The "Unknown" type can be preferred over Object if the type is unknown, while "any" is preferred supertype of any JS type, including primitives.


Additionally, this supports the recent beta release of jsinterop.base and elemental2, available from Maven Central.


Please check out the full release notes, then download the release zip or update your project to get version 2.8.1 from Maven Central.

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

Tuesday, June 27, 2017

built a widget for a multiple phone number

Hello,

I have a widget for one number phone .As shown by the code below

---------------PhoneEditor.java-----------

import com.google.gwt.event.dom.client.BlurEvent;
   
import com.google.gwt.event.dom.client.BlurHandler;
   
import com.google.gwt.event.dom.client.FocusEvent;
   
import com.google.gwt.event.dom.client.FocusHandler;
   
import com.google.gwt.event.dom.client.KeyCodes;
   
import com.google.gwt.event.dom.client.KeyDownEvent;
   
import com.google.gwt.event.dom.client.KeyDownHandler;
   
import com.google.gwt.user.client.ui.Label;
   
import com.google.gwt.user.client.ui.PopupPanel;
   
import com.google.gwt.user.client.ui.TextBox;

   
public class TelephoneEditor extends TextBox implements BlurHandler, FocusHandler, KeyDownHandler {
     
public TelephoneEditor() {  
        addBlurHandler
(this);
        addFocusHandler
(this);
        addKeyDownHandler
(this);
        setMaxLength
(10);
     
}

     
private void unformat() {
        setText
(getUnformattedValue());
     
}

     
private void format() {
       
String text = getText();
        text
= text.replaceAll("\\D+", "");

       
if (text.length()>10) {
          text
= text.substring(0,10);
       
}

       
if (text.length() == 10) {
            setText
(text.substring(0, 3) + " " + text.substring(3, 6) + "-" + text.substring(6, 10));
       
} else {
          setText
(text);
       
}
     
}

     
@Override
     
public void onKeyDown(KeyDownEvent event) {
       
int keycode = event.getNativeKeyCode();

       
if (event.isControlKeyDown()) {
         
switch (keycode) {
         
case 67: // ctrl+C
         
case 86: // ctrl+V
         
case 88: // ctrl+X
           
return;
         
default:
           
break;
         
}
       
}
       
switch (keycode) {
       
case KeyCodes.KEY_ENTER:
       
case KeyCodes.KEY_TAB:
       
case KeyCodes.KEY_BACKSPACE:
       
case KeyCodes.KEY_DELETE:
       
case KeyCodes.KEY_LEFT:
       
case KeyCodes.KEY_RIGHT:
       
case KeyCodes.KEY_UP:
       
case KeyCodes.KEY_DOWN:
       
case KeyCodes.KEY_END:
       
case KeyCodes.KEY_ESCAPE:
       
case KeyCodes.KEY_PAGEDOWN:
       
case KeyCodes.KEY_PAGEUP:
       
case KeyCodes.KEY_HOME:
       
case KeyCodes.KEY_SHIFT:
       
case KeyCodes.KEY_ALT:
       
case KeyCodes.KEY_CTRL:
       
case 173: // - FF
         
break;

       
default:
         
// Accepte que les chiffres
         
if (((keycode >= 48 && keycode <= 57) || // 0 à 9
             
(keycode >= 96 && keycode <= 105))) { // numpad0 à numpad9
           
return;
         
}

         
// innerBox.cancelKey();
         
this.cancelKey();
       
}
     
}

     
@Override
     
public void onFocus(FocusEvent event) {
        unformat
();
        selectAll
();
     
}

     
@Override
     
public void onBlur(BlurEvent event) {
        format
();
     
}

     
@Override
     
public void cancelKey() {
       
super.cancelKey();
       
PopupPanel popup = new PopupPanel(true, false);
        popup
.add(new Label("Touche invalide."));
        popup
.showRelativeTo(this);
     
}

     
@Override
     
public void setValue(String value, boolean fireEvents) {
       
super.setValue(value, fireEvents);
        format
();
     
}

     
@Override
     
public String getValue() {
       
return getUnformattedValue();
     
}

     
private String getUnformattedValue() {
       
String text = getText();
        text
= text.replaceAll("\\D+", "");
       
return text;
     
}
   
}

and I  use PhoneEditor in UIBuilder file(*.ui.xml) for example

<gt:myLabel ui:field="Telephone" />


It's works for one number phone .Now I want to implement for a multiple number phone for example (office_phone, post,phone_home and cellular) . I don't want in my  uibuilder file(*.ui.xml) four line for (office_phone, post,phone_home and cellular) for example

<gt:myLabel ui:field="office_Phone" />
   
<gt:PhoneEditor/>
   
<gt:myLabel ui:field="phone_hone" />
   
<gt:PhoneEditor/>
   
<gt:myLabel ui:field="cellular" />
   
<gt:PhoneEditor/>
   
<gt:TextBox ui:field="post" />

I want to create a widget that groups all on one line as via a DTO

<gt:myLabel ui:field="phone_regroup" />
   
<gt:PhoneEditor/>


Please can you help me

Thanks

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