Debugging question

2017-06-28 Thread Thomas Broyer
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+unsubscr...@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

2017-06-28 Thread Harry Wagner
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+unsubscr...@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?

2017-06-28 Thread Harry Wagner
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+unsubscr...@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

2017-06-28 Thread 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  -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+unsubscr...@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

2017-06-28 Thread Max F
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  -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.
>>
>
> 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+unsubscr...@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

2017-06-28 Thread 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.
>

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+unsubscr...@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

2017-06-28 Thread Max F
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+unsubscr...@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.


built a widget for a multiple phone number

2017-06-28 Thread tigeline01
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



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








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




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+unsubscr...@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.