Tuesday, May 31, 2016

Re: Unknown property: checks.type

Most likely you have two versions of GWT on class path.

-- J.

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

Unknown property: checks.type

I'm getting 

[INFO] --- gwt-maven-plugin:2.8.0-SNAPSHOT:compile (default) @ demo ---
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.IllegalArgumentException: Unknown property: checks.type
[INFO] at com.google.gwt.dev.cfg.Properties.setProperties(Properties.java:132)

What am I doing wrong ? 

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.

Re: Getting username from url only works after refresh

As said what you have done is generally fine in terms of passing data to a new place. I am saying that you have a bug somewhere in your code that results in a blank "logged in as: " widget because when you do placeController.goTo(new UserPlace(username)) then your UserActivity should be created with the same UserPlace instance as constructor parameter and thus you have the username available in your UserActivity. If that does not happen something is generally wrong in your code.

Personally I would not store the username in the browser URL as it is data for the current user session. An URL can be shared with other people so it should not contain "personal" information, only navigational information. At work we have a class called UserSession which stores user related data like username, permissions and is used as a singleton.

-- J.

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

I recall a patch to 2.6 (I think) that allowed Java 8 syntax.  If I remember right this was available more than a year ago.  This would be the equivalent of the 'retrolamba' capability that is widely used to allow Java 8 syntax with the Java 7 runtimes on Android.  

An official 2.7.1 release with that patch would, I am sure, be very welcome and provide the great advantages that lambdas have for event-driven and responsive client development.

On Monday, 30 May 2016, NGdeM <nuno.godinhomatos@gmail.com> wrote:
One can understand that the amount of resources behind Angular are far superior to those behind GWT.

In any case, the project's last official hear-beat dates from December 3, 2015, and this was a beta release.

For anybody watching, it is scary to see a UI framework having releases going out at such a slow pace.
It most likely far from being trivial to bring full support to the Java 8 api.

But in that case, could one say that the scope for the deliverable is not properly planned?
Could the scope of the GWT releases have not been sliced into multiple final incremental stable releases? 

None the less, even if the scope of the 2.8 release is to support the full Java 8 API, then several beta releases like the beta 1 could have already come out. Such as every 4 months there should be a goal to have something stable coming out.
One could enumerate the set of of open work tasks and APIs not yet supported...

At this point in time, would looking at the release notes in the GWT documentation just thinks the project is terminated.

Would a beta-2 be possible any time soon?
Many libraries such as Vaadin GWT widgets no longer support 2.8 beta1.

Many thanks and kind regards.


On Sunday, May 8, 2016 at 5:26:22 PM UTC+2, steve Zara wrote:
GWT 2.8 is now well over a year behind what seemed to be the original schedule.  I'm having to deal with colleagues who say they have lost confidence in the GWT project, which is a problem as I have GWT projects to support and further develop, as part of what I hope will be a globally used and long-lived system.  Confidence in software requires the presence of established releases, NOT betas, which put off investors.

Is there anything that can be done to assist with progress?  Is there a problem with lack of interest in GWT from, say, Google?  Does GWT 2.8 involve too many features when compared to 2.7? Is there a lack of developers working on GWT?  Are more testers needed?  

Regards

Steve Zara

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/4ISY79wAq04/unsubscribe.
To unsubscribe from this group and all its topics, 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: Getting username from url only works after refresh

Ok. Then let me be a little more precise. How do you normally pass a variable between 2 places. How should i access my username from the UserViewImpl knowing the facts above ?

I've tried using History.getToken(), and when the page gets loaded the username does not appear (i have a widget which says "logged in as: " and it's blank. Nothing appears. When i click the browser refresh button, then the username appears., like "logged in as: UserPlace:andrei.olar" , same as when i splitted my url to obtain the username....

PS: no uibinder

--
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: Getting username from url only works after refresh

The only issue I can see with the above code is that you have not implemented hashcode/equals for your places. However GWT expects you do implement both methods correctly for your places. I am still under the impression that it should just work, especially because you use placeController.goTo(new UserPlace(name)). In that case GWT does not parse the URL at all but only updates the URL in the browser based on the place you have created yourself in code.

Do you use UiBinder in your UserViewImpl? If yes then check if the widget that shows the user name has not been recreated accidentally, e.g. something like

UserViewImpl extends Composite {

  @UiField
  Label userNameLabel;

  public UserViewImpl() {
    initWidget(...);
    userNameLabel = new Label();
  }

  void setName(...) {
     userNameLabel.setText(...);
  }

}

will not work because the userNameLabel has been recreated manually in the constructor and is not attached in the browser UI at all.


-- J.

--
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: Getting username from url only works after refresh

I've tried that before, and I didn't managed to get the username to be visible in my ViewImpl...

For example. This is the structure I have:

UserActivity
public class UserActivity extends AbstractActivity implements UserView.Presenter {


 
private ClientFactory clientFactory;
 
private String name;


 
public UserActivity(UserPlace place, ClientFactory clientFactory) {
 
this.name = place.getPlaceName();
 
this.clientFactory = clientFactory;
 
}


 
@Override
 
public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
 
UserView userView = clientFactory.getUserView();
 userView
.setName(name);
 userView
.setPresenter(this);
 containerWidget
.setWidget(userView.asWidget());


 
}


 
@Override
 
public void goTo(Place place) {
 clientFactory
.getPlaceController().goTo(place);
 
}


}



UserPlace
public class UserPlace extends Place {

private String username;

public UserPlace(String username) {
this.username = username;
}

public String getPlaceName() {
return username;
}

public static class Tokenizer implements PlaceTokenizer<UserPlace> {

@Override
public UserPlace getPlace(String token) {
return new UserPlace(token);
}

@Override
public String getToken(UserPlace place) {
return place.getPlaceName();
}

}

}


UserView
public interface UserView extends IsWidget {

void setName(String name);

void setPresenter(Presenter presenter);

public interface Presenter {
void goTo(Place place);
}
}

UserViewImpl
public class UserViewImpl extends Composite implements UserView {

        ...

public UserViewImpl() {
Widget mainMenu = createMenu();
initWidget(mainMenu);
}

        ...
}

How can I access the username I send from my LoginViewImpl like shown above in my UserViewImpl ? 

Thanks in advance


marți, 31 mai 2016, 01:25:10 UTC+3, Olar Andrei a scris:

My login based application, requires to always know the username of the logged in user. (MVP) . So I'm getting the username from the url, but when the page opens after the login succeeded, I can't get the username from the url, because it does not appear to exists, but it is there. It only works after a refresh. Then I'm able to get the username.


The URL is in the form http://127.0.0.1:8888/AdministrareBloc.html#AdminPlace:admin, where I'm splitting the String to only get the admin part.


I thought this is because it downloads the code before verifying the user. So I placed a split point in my code like this: (I don't know if I placed it correctly)


loginButton.addClickHandler(new ClickHandler() {            @Override          public void onClick(ClickEvent event) {              final String username = usernameBox.getText();              final String password = passwordBox.getText();              GWT.runAsync(new RunAsyncCallback() {                    @Override                  public void onSuccess() {                      performUserConnection(username, password);                  }                    @Override                  public void onFailure(Throwable reason) {                      // TODO Auto-generated method stub                  }              });          }      });      private static void performUserConnection(String username, String password) {      DBConnectionAsync rpcService = (DBConnectionAsync) GWT.create(DBConnection.class);      ServiceDefTarget target = (ServiceDefTarget) rpcService;      String moduleRelativeURL = GWT.getModuleBaseURL() + "DBConnectionImpl";      target.setServiceEntryPoint(moduleRelativeURL);        rpcService.authenticateUser(username, password, new AsyncCallback<User>() {            @Override          public void onSuccess(User user) {                if (user.getType().equals("User")) {                  String username = user.getUsername();                  presenter.goTo(new UserPlace(username));              } else if (user.getType().equals("Admin")) {                  String username = user.getUsername();                  presenter.goTo(new AdminPlace(username));              }          }        }  }


This is happening when the user clicks the login button. Is the split point placed correclty, or not ? How can I get the username without needing to refresh the page after a successful login ?

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: Modifying the date format for specific locales through properties file

I think the issue is that the DateBox I'm using doesn't actually use the DateConstants, but rather the DateTimeFormatInfoImpl_xx.java implementation. Adding my own implementation of that class has done the trick.

Thanks!

On Tuesday, 31 May 2016 13:41:13 UTC+10, Aleks wrote:
Hi,

I have a specific requirement where the business are not happy with the GWT default DATE_SHORT format for the en_AU locale. Currently it is set to d/MM/y. 

I was convinced that there must be a way of overriding this. My approach was creating my own com/google/gwt/i18n/client/constants/DateTimeConstantsImpl_en_AU.properties in my application thinking it would be picked up at runtime.
I have done a similar thing in the past with the NumberConstants_en_AU.properties file so expected this to work the same way.

However, I have had no luck with this approach this time. Could someone be able to tell me what I'm doing wrong, or is it perhaps not possible at all?

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

Monday, May 30, 2016

Re: GWT 2.8 delays

I am with NGdeM on this one.
Just make a lot more smaller releases. This will give a better impression of the state of the GWT project.

I am aware you can create your own builds. But it is much better to do a lot more official releases for the state of the project.

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

Modifying the date format for specific locales through properties file

Hi,

I have a specific requirement where the business are not happy with the GWT default DATE_SHORT format for the en_AU locale. Currently it is set to d/MM/y. 

I was convinced that there must be a way of overriding this. My approach was creating my own com/google/gwt/i18n/client/constants/DateTimeConstantsImpl_en_AU.properties in my application thinking it would be picked up at runtime.
I have done a similar thing in the past with the NumberConstants_en_AU.properties file so expected this to work the same way.

However, I have had no luck with this approach this time. Could someone be able to tell me what I'm doing wrong, or is it perhaps not possible at all?

--
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: Getting username from url only works after refresh

Well there is nothing wrong with the code you posted. I guess your issue is in some other code. You said you are splitting the URL String, which sounds like you do this manually? Actually GWT already does this using the AdminPlace and its Tokenizer. Whenever you visit the above URL you should get a PlaceChangeEvent for the AdminPlace which should already hold the username. So your ActivityMapper.getActivity(Place) method should be triggered and then you can pass on the user name to your activity/presenter.

-- J.

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

Hi,

And thanks for the suggestion.
Something I will definitely try out.
However, I am not sure how practical this approach actually is once you depend on third party gwt libraries that do not keep a release pace matchin your internal nexus GWT 2.8 releases...
Some people seem to be keeping pace with GWT trunk, Vaadin being one such example.
I am not so sure that is a gold standard though.

In any case, I believe your approach is acceptable if you own most of the code compiled by gwt.

By the way, out of curiosity, why the main build system for GWT still ant?
This reminds of Mojarra, also still built by ant.

Kind regards.

On Monday, May 30, 2016 at 10:06:52 PM UTC+2, Ignacio Baca Moreno-Torres wrote:
I said this many times but... I strongly recommend that you create your own releases. This is what we have been doing for years...

1. create a release using something like... (tools and trunk are github clones, build-deploy.sh is the script to deploy to your company repo, you should create it yourself)
system in /Users/you/Code/gwt/  
ll
total
16
-rw-r--r--  1 you staff  247 jul 17  2015 README.md
-rwxr--r--  1 you staff  297 ago 14  2015 build-deploy.sh
-rwxr--r--  1 you staff  191 abr 12  2015 build-local.sh
-rwxr--r--  1 you staff  159 mar 12  2015 push-to-m2.sh
drwxr
-xr-x 10 you staff  340 abr  7 10:56 tools
drwxr
-xr-x 30 you staff 1020 mar 20 09:20 trunk
drwxr
-xr-x  4 you staff  136 sep  6  2014 workspace
 
system
in /Users/you/Code/gwt/  
cat build-deploy.sh  
#!/bin/sh
export GWT_VERSION=2.8.0-i`date +%Y%m%d`
export GWT_MAVEN_REPO_URL=http://maven.yourcompany.com/ext-release-local
export GWT_MAVEN_REPO_ID=maven.yourcompany.com
echo building version $GWT_VERSION
...  
cd trunk
ant clean buildonly elemental dist
-dev
maven
/push-gwt.sh
git tag
-f $GWT_VERSION

2. update your project gwt version... done. :)


Yep quite easy. We usually make 1 release a week, some time more some time less, GWT is extremely stable, usually if something is wrong is really wrong, which is a good thing because problems are detected quite early. You can spend more time, but I don't think that you are going to find any surprise if you develop during one or two week with a new version. So we usually change the GWT version just after a release, and we just continue developing using the new version, if no-one detects anything before the next release we just release. Looks like google compile most of it's projects using the gwt head, so you find frequently that if some commit makes something inestable they revert it in a few day (frequently the next day). So if you test your version during more than a week and you review the last commits since your release tag, you can see even more info if something is going to fail.


This has obvious advantages, you get used to compile gwt so if you find some bug which affect your project you can always hack it (which is far easier that find a perfect solution) and fix the problem for your clients, obviously, you get the cool advantage of being always using the last features of gwt, and finally your are going to start feeling like GWT is much live than you thought it be only seeing its releases.


Please, atleast try, make a release in your company maven report. Compile your project, and see what happen. Only good things can happens XD


On Monday, May 30, 2016 at 8:50:02 PM UTC+2, NGdeM wrote:
One can understand that the amount of resources behind Angular are far superior to those behind GWT.

In any case, the project's last official hear-beat dates from December 3, 2015, and this was a beta release.

For anybody watching, it is scary to see a UI framework having releases going out at such a slow pace.
It most likely far from being trivial to bring full support to the Java 8 api.

But in that case, could one say that the scope for the deliverable is not properly planned?
Could the scope of the GWT releases have not been sliced into multiple final incremental stable releases? 

None the less, even if the scope of the 2.8 release is to support the full Java 8 API, then several beta releases like the beta 1 could have already come out. Such as every 4 months there should be a goal to have something stable coming out.
One could enumerate the set of of open work tasks and APIs not yet supported...

At this point in time, would looking at the release notes in the GWT documentation just thinks the project is terminated.

Would a beta-2 be possible any time soon?
Many libraries such as Vaadin GWT widgets no longer support 2.8 beta1.

Many thanks and kind regards.


On Sunday, May 8, 2016 at 5:26:22 PM UTC+2, steve Zara wrote:
GWT 2.8 is now well over a year behind what seemed to be the original schedule.  I'm having to deal with colleagues who say they have lost confidence in the GWT project, which is a problem as I have GWT projects to support and further develop, as part of what I hope will be a globally used and long-lived system.  Confidence in software requires the presence of established releases, NOT betas, which put off investors.

Is there anything that can be done to assist with progress?  Is there a problem with lack of interest in GWT from, say, Google?  Does GWT 2.8 involve too many features when compared to 2.7? Is there a lack of developers working on GWT?  Are more testers needed?  

Regards

Steve Zara

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

Getting username from url only works after refresh

My login based application, requires to always know the username of the logged in user. (MVP) . So I'm getting the username from the url, but when the page opens after the login succeeded, I can't get the username from the url, because it does not appear to exists, but it is there. It only works after a refresh. Then I'm able to get the username.


The URL is in the form http://127.0.0.1:8888/AdministrareBloc.html#AdminPlace:admin, where I'm splitting the String to only get the admin part.


I thought this is because it downloads the code before verifying the user. So I placed a split point in my code like this: (I don't know if I placed it correctly)


loginButton.addClickHandler(new ClickHandler() {            @Override          public void onClick(ClickEvent event) {              final String username = usernameBox.getText();              final String password = passwordBox.getText();              GWT.runAsync(new RunAsyncCallback() {                    @Override                  public void onSuccess() {                      performUserConnection(username, password);                  }                    @Override                  public void onFailure(Throwable reason) {                      // TODO Auto-generated method stub                  }              });          }      });      private static void performUserConnection(String username, String password) {      DBConnectionAsync rpcService = (DBConnectionAsync) GWT.create(DBConnection.class);      ServiceDefTarget target = (ServiceDefTarget) rpcService;      String moduleRelativeURL = GWT.getModuleBaseURL() + "DBConnectionImpl";      target.setServiceEntryPoint(moduleRelativeURL);        rpcService.authenticateUser(username, password, new AsyncCallback<User>() {            @Override          public void onSuccess(User user) {                if (user.getType().equals("User")) {                  String username = user.getUsername();                  presenter.goTo(new UserPlace(username));              } else if (user.getType().equals("Admin")) {                  String username = user.getUsername();                  presenter.goTo(new AdminPlace(username));              }          }        }  }


This is happening when the user clicks the login button. Is the split point placed correclty, or not ? How can I get the username without needing to refresh the page after a successful login ?

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: Convert Bytes from byte[] to data types

We work with binary using Int8ArrayNative, Float32ArrayNative, and Float64ArrayNative
It is easy to convert utf-8 to String via String(byte[])

Binary file access is very fast and efficient. 
You can transfer native binary data and load mesh with millions of triangles in few milliseconds (from cache)
No need to parse anything. Very fast.

https://studio.cospaces.io/#Gallery
 
On Sunday, May 29, 2016 at 7:08:59 PM UTC+3, Federico Mouse wrote:
I'm making a game that receives data (string names, ints about position, etc.) via websockets, using https://github.com/sksamuel/gwt-websockets, in binary data.

Is there a way to convert that data back to String, Int, etc. in GWT?

--
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: Convert Bytes from byte[] to data types

Maybe you can use this for inspiration... https://gist.github.com/ibaca/d8c14e19bf8f96bbe1b4b7f1291b6b24#file-dtachoviewer-java-L99 we used this to read binary files and decode in the client side. We transform the field in a byte[], after that converting to strings (new String(b, "ISO-8859-1")) or ints are trivial. You can do something as simple as int x = byte[0]; or are more advanced like.
public static long convertIntoUnsigned4ByteInt(byte[] b) {
long l = 0;

long al = ( ( (long)b[ 0 ] ) & 0xff ) << 24 ;
long bl = ( ( (long)b[ 1 ] ) & 0xff ) << 16 ;
long cl = ( ( (long)b[ 2 ] ) & 0xff ) << 8 ;

int di = ( b[ 3 ] & 0xff );
long dl = ( (long)di ) << 0;

l = al + bl + cl + dl;

return l;
}
All this just work. I have a file drag&drop example here https://github.com/ibaca/dndfiles-gwt. Not sure if useful, but is the original point of the other example (gist). Transforming it to a byte[] is not very performant (byte are emulated in gwt), but is easier and our library already exists and use byte[] everywhere. 


On Sunday, May 29, 2016 at 7:15:21 PM UTC+2, Jens wrote:
Never done it but I would say so. GWT supports new String(byte[]) with UTF-8, LATIN-1, ISO_8859_1 charsets. For numbers you probably have to use BigInteger or do the conversion yourself as GWT does not emulate ByteBuffer.wrap(..).get...() for now.

-- J.

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


I said this many times but... I strongly recommend that you create your own releases. This is what we have been doing for years...

Our company also does this for years, although we don't have a fixed schedule. We pull GWT from trunk if we think there are enough commits worth doing so, then apply some custom patches and use it for our projects. Usually we check http://build.gwtproject.org for builds that passed all tests and choose one of the corresponding commits to build our custom GWT from. This check could also be automated because of Jenkins REST API.

-- J.

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

I said this many times but... I strongly recommend that you create your own releases. This is what we have been doing for years...

1. create a release using something like... (tools and trunk are github clones, build-deploy.sh is the script to deploy to your company repo, you should create it yourself)
system in /Users/you/Code/gwt/  
ll
total
16
-rw-r--r--  1 you staff  247 jul 17  2015 README.md
-rwxr--r--  1 you staff  297 ago 14  2015 build-deploy.sh
-rwxr--r--  1 you staff  191 abr 12  2015 build-local.sh
-rwxr--r--  1 you staff  159 mar 12  2015 push-to-m2.sh
drwxr
-xr-x 10 you staff  340 abr  7 10:56 tools
drwxr
-xr-x 30 you staff 1020 mar 20 09:20 trunk
drwxr
-xr-x  4 you staff  136 sep  6  2014 workspace
 
system
in /Users/you/Code/gwt/  
cat build-deploy.sh  
#!/bin/sh
export GWT_VERSION=2.8.0-i`date +%Y%m%d`
export GWT_MAVEN_REPO_URL=http://maven.yourcompany.com/ext-release-local
export GWT_MAVEN_REPO_ID=maven.yourcompany.com
echo building version $GWT_VERSION
...  
cd trunk
ant clean buildonly elemental dist
-dev
maven
/push-gwt.sh
git tag
-f $GWT_VERSION

2. update your project gwt version... done. :)


Yep quite easy. We usually make 1 release a week, some time more some time less, GWT is extremely stable, usually if something is wrong is really wrong, which is a good thing because problems are detected quite early. You can spend more time, but I don't think that you are going to find any surprise if you develop during one or two week with a new version. So we usually change the GWT version just after a release, and we just continue developing using the new version, if no-one detects anything before the next release we just release. Looks like google compile most of it's projects using the gwt head, so you find frequently that if some commit makes something inestable they revert it in a few day (frequently the next day). So if you test your version during more than a week and you review the last commits since your release tag, you can see even more info if something is going to fail.


This has obvious advantages, you get used to compile gwt so if you find some bug which affect your project you can always hack it (which is far easier that find a perfect solution) and fix the problem for your clients, obviously, you get the cool advantage of being always using the last features of gwt, and finally your are going to start feeling like GWT is much live than you thought it be only seeing its releases.


Please, atleast try, make a release in your company maven report. Compile your project, and see what happen. Only good things can happens XD


On Monday, May 30, 2016 at 8:50:02 PM UTC+2, NGdeM wrote:
One can understand that the amount of resources behind Angular are far superior to those behind GWT.

In any case, the project's last official hear-beat dates from December 3, 2015, and this was a beta release.

For anybody watching, it is scary to see a UI framework having releases going out at such a slow pace.
It most likely far from being trivial to bring full support to the Java 8 api.

But in that case, could one say that the scope for the deliverable is not properly planned?
Could the scope of the GWT releases have not been sliced into multiple final incremental stable releases? 

None the less, even if the scope of the 2.8 release is to support the full Java 8 API, then several beta releases like the beta 1 could have already come out. Such as every 4 months there should be a goal to have something stable coming out.
One could enumerate the set of of open work tasks and APIs not yet supported...

At this point in time, would looking at the release notes in the GWT documentation just thinks the project is terminated.

Would a beta-2 be possible any time soon?
Many libraries such as Vaadin GWT widgets no longer support 2.8 beta1.

Many thanks and kind regards.


On Sunday, May 8, 2016 at 5:26:22 PM UTC+2, steve Zara wrote:
GWT 2.8 is now well over a year behind what seemed to be the original schedule.  I'm having to deal with colleagues who say they have lost confidence in the GWT project, which is a problem as I have GWT projects to support and further develop, as part of what I hope will be a globally used and long-lived system.  Confidence in software requires the presence of established releases, NOT betas, which put off investors.

Is there anything that can be done to assist with progress?  Is there a problem with lack of interest in GWT from, say, Google?  Does GWT 2.8 involve too many features when compared to 2.7? Is there a lack of developers working on GWT?  Are more testers needed?  

Regards

Steve Zara

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

One can understand that the amount of resources behind Angular are far superior to those behind GWT.

In any case, the project's last official hear-beat dates from December 3, 2015, and this was a beta release.

For anybody watching, it is scary to see a UI framework having releases going out at such a slow pace.
It most likely far from being trivial to bring full support to the Java 8 api.

But in that case, could one say that the scope for the deliverable is not properly planned?
Could the scope of the GWT releases have not been sliced into multiple final incremental stable releases? 

None the less, even if the scope of the 2.8 release is to support the full Java 8 API, then several beta releases like the beta 1 could have already come out. Such as every 4 months there should be a goal to have something stable coming out.
One could enumerate the set of of open work tasks and APIs not yet supported...

At this point in time, would looking at the release notes in the GWT documentation just thinks the project is terminated.

Would a beta-2 be possible any time soon?
Many libraries such as Vaadin GWT widgets no longer support 2.8 beta1.

Many thanks and kind regards.


On Sunday, May 8, 2016 at 5:26:22 PM UTC+2, steve Zara wrote:
GWT 2.8 is now well over a year behind what seemed to be the original schedule.  I'm having to deal with colleagues who say they have lost confidence in the GWT project, which is a problem as I have GWT projects to support and further develop, as part of what I hope will be a globally used and long-lived system.  Confidence in software requires the presence of established releases, NOT betas, which put off investors.

Is there anything that can be done to assist with progress?  Is there a problem with lack of interest in GWT from, say, Google?  Does GWT 2.8 involve too many features when compared to 2.7? Is there a lack of developers working on GWT?  Are more testers needed?  

Regards

Steve Zara

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

GWT 2.8 beta-2 or release - any date?

Are there any plans for a new beta or final release for GWT version 2.8?
I understand the resources behind GWT do not compare to those behind Angular, but since the the latest heartbeat on the project dates from 2015, Dec 3.

http://www.gwtproject.org/release-notes.html

It would be nice to get another stable release for GWT, or otherwise, a beta-release higher.
The Vaadin polymer GWT release is no longer compatible with GWT 2.8 beta1, it would be desirable to get a beta2 or final release with which to find an appropriate gwt polymer match.


Many thanks for any information on the topic.

--
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: GWT app as a widdget: default script injection fails.

This looks like the logical conclusion to my question.
https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Isolated-Imports-Proposal.md

Since the aboveis probably several years down the road I wonder if anyone has any more ideas or workarounds in how to work with GWT/jsinterop and foreign js libraries __loaded in GWT context__ (iframe) in the immediate future...

Anyone?

  Thanks in advance.

On Thu, May 26, 2016 at 1:01 PM, Vassilis Virvilis <vasvir2@gmail.com> wrote:
Hi,

This issue has been discussed before https://github.com/gwtproject/gwt/issues/9264

Here is the problem in my own words:

When a script is injected GWT has the option to inject it in the TOP_WINDOW ($wnd) or in the iframe window where GWT code is located normally.

Case 1: Insert in $wnd

Everything works but the page is polluted with the scripts you inject. This is not a problem when the GWT application controls the whole page. It is however a problem when GWT program is loaded as part of a page (Widget). Then all kind of problems may arise due to javascript libraries clashing.

Case 2: insert in iframe window (default)

The script is loaded but jsinterop assumes that the scripts are loaded in $wnd which is not true.

Question:

Is it possible to
1) add a compile time flag in jsinterop that will not prepend $wnd in all global objects defined by the script ...OR...
2) add a namespace JsPackage.LOCAL (as opposed to JsPackage.GLOBAL) option that does not imply $wnd ...OR...
3) do something that fixes the problem somehow!

--
Vassilis Virvilis



--
Vassilis Virvilis

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

Sunday, May 29, 2016

develop chrome extensions using GWT

GWT-Chrome seems to be pretty old and uses JSNI. I like to use it to develop chrome extension. I don't know whether or not there are the latest version of it. Do you know there are any issues if I use it to develop chrome extension?

Thanks,

David

--
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: Convert Bytes from byte[] to data types

Never done it but I would say so. GWT supports new String(byte[]) with UTF-8, LATIN-1, ISO_8859_1 charsets. For numbers you probably have to use BigInteger or do the conversion yourself as GWT does not emulate ByteBuffer.wrap(..).get...() for now.

-- J.

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