[gwt-contrib] Re: Deploying to org.gwtproject.* groupId

2017-11-15 Thread Andrei Korzhevskii
I vote for boring way, ie allocate these (module) projects on github and 
follow usual pull requests workflow and deploy it as snapshots during 
development.
Reasoning is that I don't see much sense in spreading community efforts in 
multiple projects and then picking the right one.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/a889ecc5-ec3f-41f9-a7f5-99b4f0bcbfba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GWT SuperDev mode issue after migrating from 2.7.0 to 2.8.1 with application that uses Spring Framework

2017-07-18 Thread Andrei Anishchenko
Thank you, that helped a lot!

On Monday, July 17, 2017 at 5:49:23 PM UTC+3, Thomas Broyer wrote:
>
> Pull request making the proposed changes (and a bit more): 
> https://github.com/AndrewAni/GwtDev/pull/1
>
> On Monday, July 17, 2017 at 11:45:06 AM UTC+2, Thomas Broyer wrote:
>>
>>
>>
>> On Monday, July 17, 2017 at 11:11:46 AM UTC+2, Andrei Anishchenko wrote:
>>>
>>> Hi,
>>>
>>> I have a Maven multi-module project that uses Spring Framework in the 
>>> backend. Everything was working fine until I tried to migrate from GWT 
>>> 2.7.0 to 2.8.1. Supposedly production mode works fine (never tried though 
>>> so far), but in SuperDev mode I am getting initialization errors coming 
>>> from Spring bootstrap. Some built-in Spring beans require them to be 
>>> created only once, while attempts to create several of them are taken (see 
>>> the log file attached for an example). Digging into this, I discovered that 
>>> it has something to do with the fix for 
>>> https://github.com/gwtproject/gwt/issues/9292, namely, in 
>>> com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension#getResources
>>>  
>>> <https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java#L373>
>>>  
>>> method. Before this fix, Jetty's classloader loaded resources strictly from 
>>> the lib folder of the web application, and now it is so greedy that it 
>>> loads them both from this said folder AND local Maven repo. This makes all 
>>> my Maven submodules available twice in the classpath, each if them is 
>>> treated individually.
>>>
>>> To demonstrate the issue, I've created a simple application that 
>>> resembles my original setup. This application is available here: 
>>> https://github.com/AndrewAni/GwtDev 
>>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FAndrewAni%2FGwtDev=D=1=AFQjCNFz5Nqz5CpspLot74BX24-cwQ1Njg>.
>>>  
>>> If these 
>>> <https://github.com/AndrewAni/GwtDev/blob/master/server/src/main/resources/applicationContext.xml#L5>
>>>  
>>> two scheduler-related bean definitions are commented out, the problem 
>>> doesn't present itself.
>>>
>>> It appears that if I go with Java-based Spring configuration, this 
>>> wouldn't bother me anymore, since the suspicious classloader code affects 
>>> only loading resources like XMLs. But I cannot shake the feeling that I am 
>>> doing something wrong, and with the next GWT development iteration even 
>>> Java classes would be loaded differently, breaking my stuff even more.
>>>
>>> Am I missing something? Is my setup wrong somehow? Something about Maven 
>>> layout maybe?
>>>
>>
>> What's "wrong" is to include all that server-side code to the DevMode's 
>> classpath; it has to do with both the org.codehaus.mojo:gwt-maven-plugin 
>> and your Maven layout.
>>
>> I'd suggest:
>>
>>- Split your client module to separate client-side code that's 
>>compiled to JS, and assembling the WAR with that compiled JS and the 
>> server 
>>module JAR; and move the XML Spring configuration to the new war module. 
>>The client module could then exclude all transitive dependencies of the 
>>server module (it only needs the SampleService and SampleServiceLocator); 
>>alternatively, maybe the server module could depend on Spring with 
>>scope=provided, and the new war module would add the Spring dependencies 
>>back with scope=compile or scope=runtime to get them into the WAR. You 
>>could maybe also split the server module to separate the classes that the 
>>client module depends on (the SampleServiceLocator only depends on 
>> Spring's 
>>WebApplicationContext and WebApplicationContextUtils, which could be 
>>dependencies with scope=provided in the "shared" module). The thing is, 
>> we 
>>don't want the client module to depend on anything Spring-related 
>>(particularly the XML configuration resources).
>>- That should be enough (hopefully), but I'd also migrate to the 
>>net.ltgt.gwt.maven:gwt-maven-plugin to make launching DevMode easier, and 
>> I 
>>would actually move to using the tomcat7-maven-plugin (too bad there's 
>> not 
>>a more recent version) and use CodeServer instead of DevMode.
>>
>>
>>

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


GWT SuperDev mode issue after migrating from 2.7.0 to 2.8.1 with application that uses Spring Framework

2017-07-17 Thread Andrei Anishchenko
Hi,

I have a Maven multi-module project that uses Spring Framework in the 
backend. Everything was working fine until I tried to migrate from GWT 
2.7.0 to 2.8.1. Supposedly production mode works fine (never tried though 
so far), but in SuperDev mode I am getting initialization errors coming 
from Spring bootstrap. Some built-in Spring beans require them to be 
created only once, while attempts to create several of them are taken (see 
the log file attached for an example). Digging into this, I discovered that 
it has something to do with the fix for 
https://github.com/gwtproject/gwt/issues/9292, namely, in 
com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension#getResources
 

 
method. Before this fix, Jetty's classloader loaded resources strictly from 
the lib folder of the web application, and now it is so greedy that it 
loads them both from this said folder AND local Maven repo. This makes all 
my Maven submodules available twice in the classpath, each if them is 
treated individually.

To demonstrate the issue, I've created a simple application that resembles 
my original setup. This application is available here: 
https://github.com/AndrewAni/GwtDev. If these 

 
two scheduler-related bean definitions are commented out, the problem 
doesn't present itself.

It appears that if I go with Java-based Spring configuration, this wouldn't 
bother me anymore, since the suspicious classloader code affects only 
loading resources like XMLs. But I cannot shake the feeling that I am doing 
something wrong, and with the next GWT development iteration even Java 
classes would be loaded differently, breaking my stuff even more.

Am I missing something? Is my setup wrong somehow? Something about Maven 
layout maybe?

-- 
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.
00:00:00.006 [WARN] Failed startup of context 
c.g.g.d.s.j.WebAppContextWithReload@65a746f7{/,file:/C:/Stuff/GwtDev/client/target/client-1.0.0/,STARTING}{C:\Stuff\GwtDev\client\target\client-1.0.0}
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: Only one AsyncAnnotationBeanPostProcessor may exist 
within the context. Offending resource: URL 
[jar:file:/C:/Stuff/GwtDev/server/target/server-1.0.0.jar!/applicationContext.xml]
 
at 
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
 
at 
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
 
at 
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:72)
 
at 
org.springframework.scheduling.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:67)
 
at 
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:74)
 
at 
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1411)
 
at 
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)
 
at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:172)
 
at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:142)
 
at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
 
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
 
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
 
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
 
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
 
at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
 
at 

Trying to save user profile picture does not work this way

2017-01-24 Thread Olar Andrei
Hello,

I have an app where each user can have a profile picture. When the user 
first registers a new standard profile picture will be set for him which 
will be editable. So I am creating the profile picture after the 
registration as shown below:

String femalePicture = System.getProperty("user.dir") + 
"/images/icons/female.png";
String malePicture = System.getProperty("user.dir") + 
"/images/icons/male.png";

String userDirectory = userDetails.getUsername().replaceAll("\\.", "");
String destination = System.getProperty("user.dir") + 
"/files/profile_pictures/" + userDirectory + ".png";

File destinationFile = new File(destination);
if (destinationFile.getParentFile() != null) {
destinationFile.getParentFile().mkdirs();
}

if (userDetails.getGender().equals("Female")) {
Files.copy(new File(femalePicture).toPath(), destinationFile.toPath(), 
StandardCopyOption.REPLACE_EXISTING);
} else {
Files.copy(new File(malePicture).toPath(), destinationFile.toPath(), 
StandardCopyOption.REPLACE_EXISTING);
}

Basically it copies an existing image (male or female) from a already 
existing folder on the server to another folder but with a different name 
which corresponds to a modified username.

The problem I am facing here is that the image will be deleted when I 
restart/recompile the GWT application, since the data is only on the server.

How can I get this working? What are my solutions to the problem described 
above?

Thanks in advance
Andrei

-- 
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: Is there a possiblity to display a message on the page you are redirected to?

2016-12-16 Thread Olar Andrei
Hello,

Thanks, I've done this using the cookie suggestion.

On Sat, Dec 17, 2016 at 12:27 AM, Vassilis Virvilis <vasv...@gmail.com>
wrote:

> You can pass a url fragment argument like
> Window.Location.replace(GWT.getHostPageBaseURL() + "#error=Something bad
> happened");
> and then in your login page you have to check for url fragments (after #).
>
> Similarly if you don't want to pollute your urls you can
>
>- set a cookie
>- use sessionStorage
>- use localStorage
>
> to communicate the error state to the new page.
>
> Hope that helps
>
> Vassilis
>
>
>
>
>
> On Sat, Dec 17, 2016 at 12:22 AM, Olar Andrei <olarand...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I have this small example. I am on the user page. In the constructor the
>> UserInfo object is set. If something happens I want to redirect back to the
>> login page, which I do like in the example below. Is there a possibility to
>> display a message back on the login page like "An error eccurred bla bla
>> bla. Please log in again." ?
>>
>> Thanks in advance.
>>
>> public UserPanel() {
>> setUserInfo();
>>
>> if (userInfo == null) {
>> Window.Location.replace(GWT.getHostPageBaseURL());
>> }
>>
>> container = new MaterialContainer();
>> container.setFontSize("1em");
>>
>> Widget mainMenu = createMenu();
>> initWidget(mainMenu);
>> }
>>
>>
>> --
>> 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.
>>
>
>
>
> --
> Vassilis Virvilis
>
> --
> 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/3Bdp0kiOi1s/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

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


Is there a possiblity to display a message on the page you are redirected to?

2016-12-16 Thread Olar Andrei
Hello,

I have this small example. I am on the user page. In the constructor the 
UserInfo object is set. If something happens I want to redirect back to the 
login page, which I do like in the example below. Is there a possibility to 
display a message back on the login page like "An error eccurred bla bla 
bla. Please log in again." ?

Thanks in advance.

public UserPanel() {
setUserInfo();

if (userInfo == null) {
Window.Location.replace(GWT.getHostPageBaseURL());
}

container = new MaterialContainer();
container.setFontSize("1em");

Widget mainMenu = createMenu();
initWidget(mainMenu);
}


-- 
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: How to make sure object is set before initWidget()

2016-12-14 Thread Olar Andrei
Hello,

I have done like you said it. But I have another problem now.

As you can see the setUsername() method sets the username, and by using a 
simple alert I've checked and it's correct.

BUT that method does not get called before the constructor, that means that 
initWidget() gets called first, and I'm using the username there, and it 
will be null since the setUsername method does not get called before 
initWidget().

What can I do here in order to have my username set in the initWidget() 
method.?

public class UserPanel extends Composite implements UserView {

private MaterialContainer container;

private Presenter presenter;

private String username;

...

public UserPanel() {
container = new MaterialContainer();
container.setFontSize("1em");

Widget mainMenu = createMenu();
initWidget(mainMenu);
}

...

@Override
public void setUsername(String username) {
this.username = username;
Window.alert(username);
}

@Override
public void setPresenter(Presenter presenter) {
this.presenter = presenter;
}



-- 
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: How to make sure object is set before initWidget()

2016-12-12 Thread Olar Andrei
I'm sorry. I don't get it here. The createMenu() should not return a
Widget? Or?

On Tue, Dec 13, 2016 at 12:11 AM, harshyadav <harsh.de...@gmail.com> wrote:

> Ok, if your class is extending a composite, then just make sure, the
> createMenu only initialize the ui elements.
> After you have called the RPC, you then set the ui elements.
>
> for e.g.
> private void setMenu(UserInfo userInfo) {
>  label.setName(userInfo.getName());
> }
>
>
>
>
>
> On Monday, December 12, 2016 at 5:05:08 PM UTC-5, Olar Andrei wrote:
>>
>> Hello,
>>
>> It does not work like this, I've already tried. It says "Error:
>> java.lang.AssertionError: This UIObject's element is not set; you may be
>> missing a call to either Composite.initWidget() or UIObject.setElement()"
>> because my class extends Composite (I forgot to mention it). Like it is
>> looking for the initWidget() method before executing the entire rpc call...
>>
> --
> 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/28B788mIbEU/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
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: How to make sure object is set before initWidget()

2016-12-12 Thread Olar Andrei
Hello,

It does not work like this, I've already tried. It says "Error: 
java.lang.AssertionError: This UIObject's element is not set; you may be 
missing a call to either Composite.initWidget() or UIObject.setElement()" 
because my class extends Composite (I forgot to mention it). Like it is 
looking for the initWidget() method before executing the entire rpc call... 

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


How to make sure object is set before initWidget()

2016-12-12 Thread Olar Andrei
Hello,

I'm creating a menu, and I basically need my UserInfo object already set 
(based on the username) before creating the menu and doing the initWidget().
Basically I have the username, and based on this, I query the DB and get 
everything else based on that username.
But I am using an RPC call for the backend part. How can I make sure that 
userInfo is set before proceeding to the createMenu() and initWidget() part 
?

private static UserInfo userInfo;

public UserPanel() {
container = new MaterialContainer();
  container.setFontSize("1em");

   setUserInfo("someUsername");

   Widget mainMenu = createMenu();
 initWidget(mainMenu);
}

public void setUserInfo(String username) {
DBGetUserInfoAsync rpcService = (DBGetUserInfoAsync) 
GWT.create(DBGetUserInfo.class);
ServiceDefTarget target = (ServiceDefTarget) rpcService;
String moduleRelativeURL = GWT.getModuleBaseURL() + "DBGetUserInfoImpl";
target.setServiceEntryPoint(moduleRelativeURL);

rpcService.getUserInfo(username, new AsyncCallback() {

@Override
public void onSuccess(UserInfo result) {
UserPanel.userInfo = result;
}

@Override
public void onFailure(Throwable caught) {
// Window.alert(caught.getMessage());
}
});
}


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


Got UmbrellaException when trying to show loading screen on async login processing using MaterialLoading

2016-12-09 Thread Olar Andrei
Hello,

I have a little problem here, which I try to figure out why it is happening.

I use GWT Material Design in my project, and I just wanted to show a 
loading screen while the login is being processed, but I get an 
UmbrellaException, and the loading icon just spins there forever...

If I just remove MaterialLoader.showLoading(true); and MaterialLoader.
showLoading(false); everything works.

Does anybody know why this is happening ?



private static void performUserConnection(String username, String password) 
{
MaterialLoader.showLoading(true);

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() {

@Override
public void onSuccess(User user) {
MaterialLoader.showLoading(false); // Does not get here

// ...

if (user.getType().equals("User")) {
presenter.goTo(new UserPlace(username));
} else if (user.getType().equals("Admin")) {
presenter.goTo(new AdminPlace(username));
}
}

@Override
public void onFailure(Throwable caught) {
MaterialLoader.showLoading(false); // Does not get here

if (caught instanceof InvalidCredentialsException) {
MaterialToast.fireToast(caught.getMessage(), "rounded");
} else {
MaterialModal materialModal = 
ModalCreator.createModal("Something went wrong", caught);
RootPanel.get().add(materialModal);
materialModal.open();
}

}

});
}

-- 
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: Adding Material Design Inherits elements to already existing vanilla GWT project changes the main look of the application

2016-11-28 Thread Olar Andrei
@Jens

If that is the case (can't check right now), is there a possibility to 
disable that? Beacause I just want to redraw the login and register screen 
using MD. The main app I want to stay the same using vanilla 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+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.


Adding Material Design Inherits elements to already existing vanilla GWT project changes the main look of the application

2016-11-28 Thread Olar Andrei
Hello everybody,

Today I'm trying to integrate GWT Material Design into my project. I 
already have an existing vanilla GWT project to which I wish to add some 
other look and feel by using MD. I have added all the necessary depencies 
in my pom file and I have also added these lines in the gwt.xml file.







Before adding those lines my login page looks something like this:

<https://lh3.googleusercontent.com/-BZVpwx6cl3w/WDvqoGRnruI/BUI/WbXTKGoKA0MYPeiCXcop7sp7-PrSJGcvACLcB/s1600/login.PNG>
After adding those lines and reloading the page it looks something like 
this:

<https://lh3.googleusercontent.com/-oGZBwF_QkDA/WDvquKS5F6I/BUM/rN0a7YGuzhY0WBUQ8oH0sHCAJoUagJHCACLcB/s1600/login_after.PNG>

Does anybody know why this is happening?

Thanks in advance,
Andrei

-- 
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: Strange error with streams

2016-11-02 Thread Andrei Korzhevskii
Hi foal,

We had kind of similar problems when implemented Stream support but I 
cannot reproduce it now
in a simple test 
like https://gist.github.com/nordligulv/9dfa0ca5ccfed3def097aefc59ea1e32

Can I ask you to create simple maven project with these classes to 
reproduce it?

On Tuesday, November 1, 2016 at 1:14:27 PM UTC+2, foal wrote:
>
> Simplified widget is in attachment. Mehod createButtons contains the the 
> problem code.
>
> Let me know if you need something else.
>
> Stas
>
> On Tuesday, November 1, 2016 at 11:13:41 AM UTC+1, Jens wrote:
>>
>> Use -style PRETTY as SDM parameter so that the JS code is more readable. 
>>
>> Looks like a GWT bug either in the compiler because of method references 
>> or inside the Stream emulation. If you can provide a minimal, reproducible 
>> example then open a bug report.
>>
>> -- 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+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: Super Devmode Error

2016-10-26 Thread Andrei Korzhevskii
Hi Marteijn,

It's probably that you have stale dependencies in your classpath.
The issue is resolved in these discussions:
https://groups.google.com/forum/#!topic/google-web-toolkit/-c4RR6oLr2o
https://groups.google.com/forum/#!topic/google-web-toolkit/ATR3ZWcVrEs

On Wednesday, October 26, 2016 at 12:02:38 PM UTC+3, Marteijn Nouwens wrote:
>
> Does anybody got an idea why this is happening. Complies fine and such but 
> when running recompile it gives an error. The code server starts fine.
>
> Any hint are really apprciated.
>
> Marteijn
>
> Error
>
> [INFO]  Compile of permutations succeeded
> [INFO]  Compilation succeeded -- 44,004s
> [INFO]   Linking into 
> C:\Users\Nouwens\AppData\Local\Temp\gwt-codeserver-2011215494628222743.tmp\eu.future.earth.crm
> .EmployeeGui\compile-2\war\employeegui; Writing extras to 
> C:\Users\Nouwens\AppData\Local\Temp\gwt-codeserver-20112154946
> 28222743.tmp\eu.future.earth.crm.EmployeeGui\compile-2\extras\employeegui
> [INFO]  [WARN] Can't write source map 
> 6620753AA4B9C5EDD1145CE4947CAB4D_sourceMap0.json
> [INFO] java.lang.NullPointerException
> [INFO]  at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:101)
> [INFO]  at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:88)
> [INFO]  at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:78)
> [INFO]  at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapGeneratorV3.mergeMapSection(SourceMapGeneratorV3.java:
> 311)
> [INFO]  at 
> com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:316)
> [INFO]  at 
> com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.j
> ava:384)
> [INFO]  at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
> [INFO]  at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
> [INFO]  at com.google.gwt.dev.Link.link(Link.java:178)
> [INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
> [INFO]  at 
> com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
> [INFO]  at 
> com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
> [INFO]  at 
> com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
> [INFO]  at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
> [INFO]  at 
> com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
> [INFO]  at 
> com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
> [INFO]  at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
> [INFO]  at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [INFO]  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [INFO]  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [INFO]  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [INFO]  at java.lang.Thread.run(Thread.java:745)
> [INFO]  Invoking Linker Export CompilationResult symbol maps
> [INFO] [ERROR] Failed to link
> [INFO] java.lang.NullPointerException
> [INFO]  at java.util.TreeMap.put(TreeMap.java:563)
> [INFO]  at java.util.TreeSet.add(TreeSet.java:255)
> [INFO]  at 
> com.google.gwt.thirdparty.guava.common.collect.ForwardingCollection.add(ForwardingCollection.java:84)
> [INFO]  at 
> com.google.gwt.core.ext.linker.TypeIndexedSet.add(TypeIndexedSet.java:101)
> [INFO]  at 
> com.google.gwt.core.ext.linker.ArtifactSet.add(ArtifactSet.java:42)
> [INFO]  at 
> com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:330)
> [INFO]  at 
> com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.j
> ava:384)
> [INFO]  at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
> [INFO]  at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
> [INFO]  at com.google.gwt.dev.Link.link(Link.java:178)
> [INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
> [INFO]  at 
> com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
> [INFO]  at 
> com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
> [INFO]  at 
> com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
> [INFO]  at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
> [INFO]  at 
> com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
> [INFO]  at 
> com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
> [INFO]  at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
> [INFO]  at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [INFO]  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [INFO]  at 
> 

Update conversation by displaying new messages when they are sent

2016-09-20 Thread Olar Andrei
Hello,

In my GWT application I have a messaging system integrated within. When a 
specific conversation gets opened, a query runs and selects all messages 
available for this conversation. From the same view you can reply to that 
conversation. When replying, the other user has to click a small refresh 
button (located on top, which agian gets all mesages from the DB running 
the same query from above) in order for the last message to appear.

My question: How can I make that refresh automatically, so you don't have 
to click on the button in order to refresh the conversation. Like in FB, 
Messenger, etc, where you don't refresh the conversation and the messages 
keep coming without you having to do anything.

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


Adjust DB structure to support filtering conversations and deleting them

2016-09-18 Thread Olar Andrei


I know this is not a specific GWT question, but I have an issue. I have a 
GWT application, which has a conversation system integrated within. To this 
conversation system, I have the following DB structure.


create table if not exists conversation(
id int(11) PRIMARY KEY AUTO_INCREMENT,
user_one varchar(25) NOT NULL,
user_two varchar(25) NOT NULL,
subject varchar(15) NOT NULL,
ip varchar(30) DEFAULT NULL,
date varchar(50) NOT NULL,
filter varchar(20) DEFAULT 'Inbox');
create table if not exists conversation_reply(
id int(11) PRIMARY KEY AUTO_INCREMENT,
reply text,
username varchar(25) NOT NULL,
ip varchar(30) DEFAULT NULL,
date varchar(50) NOT NULL,
conv_id_fk int(11) NOT NULL REFERENCES conversation(id));


I implemented a filtering mechanism where you can move conversation from 
Inbox to Archive or Important, or others. But when I execute the query 
which updates the filter:


update conversation set filter=? where id=?;

It will update this both to the user_one and user_two, since the GUI is the 
same to both users..there is no difference between user_one and user_two in 
terms of how the GUI looks like. So the select, which gets all 
conversations looks like this:

select * from conversation where (user_one=? or user_two=?) and filter=? order 
by id desc;


How should I change the DB structure in order to make the operations above 
(moving and deleting) work properly, because as I said, when I move as 
user_one, it will move to user_two as well, deleting the conversation from 
one would delete it from the other too.


Suggestions?


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+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: Do something when clicking on suggestion

2016-09-16 Thread Olar Andrei
Yes, that works. I thought I need to extend 
SuggestBox.DefaultSuggestionDisplay, 
but seems it's not needed.

Thank you very much.

-- 
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: Do something when clicking on suggestion

2016-09-16 Thread Olar Andrei
Hi Eddy,

No, that is not my problem. The method getDBSuggestions() is implemented 
and returns the desired results. It returns conversations from the DB. 

My problem is that I want something to happen (open the specific 
conversation) when clicking on the desired suggestion. Like for example the 
searchbox for Facebook.

Thanks,
Andrei

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


Do something when clicking on suggestion

2016-09-15 Thread Olar Andrei
Hello everybody,

I have sort of a conversation system integrated in my application. The 
class ConversationWidget represents the main widget for the conversation 
system.
Somewhere there I have a suggestion box, which I want to use to search 
through all the available conversations based on some patterns, like 
subject, user, and so on.

I want, when the suggestion is clicked, to parse the String, and to open 
the desired conversation. The ideea is, that I have some methods in my 
ConversationWidget class, like viewConversation(int id, final SimplePanel 
convPanel) which repaints the convPanel with the new conversation.

What would be a way to implement that ? To call viewConversation() in my 
ConversationWidget based on which Suggestion is clicked?

Thanks in advance,
Andrei

public class ConversationWidget extends Composite implements CustomWidget {

public ConversationWidget(UserInfo userInfo) {
this.userInfo = userInfo;

initWidget(initializeWidget());
}

@Override
public Widget initializeWidget() {
.
.
.

MultiWordSuggestOracle oracle = getDBSuggestions(); // 
Suggestions come from the DB

final CustomTexBox searchBox = new CustomTexBox();
searchBox.getElement().getStyle().setMarginTop(15.0, Unit.PX);
searchBox.getElement().getStyle().setMarginRight(10.0, Unit.PX);

CustomSuggestionDisplay display = new CustomSuggestionDisplay();
SuggestBox suggestBox = new SuggestBox(oracle, searchBox, display);
.
.
.
}
}

public class CustomSuggestionDisplay extends 
SuggestBox.DefaultSuggestionDisplay {

@Override
protected void showSuggestions(SuggestBox suggestBox, Collection suggestions, boolean isDisplayStringHTML,
boolean isAutoSelectEnabled, SuggestionCallback callback) {

callback = new SuggestionCallback() {

@Override
public void onSuggestionSelected(Suggestion suggestion) {
  // TODO
}
};

super.showSuggestions(suggestBox, suggestions, isDisplayStringHTML, 
isAutoSelectEnabled, callback);
}

}


-- 
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: Emulating CompletableFuture with Promise

2016-09-09 Thread Andrei Korzhevskii
In this case I wanted 'new Promise', not 'Promise.resolve'. Thanks for 
spotting that out! I've updated my branch.

On Tuesday, September 6, 2016 at 10:09:28 PM UTC+3, Ian Preston wrote:
>
> For another hint, I think you don't want the "new" before 
> "Promise.resolve" on line 88 of impl/JsPromise :-)
> What the best way for me to report bugs to you? A PR?
>

-- 
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: Emulating CompletableFuture with Promise

2016-09-06 Thread Andrei Korzhevskii
No reason for that. I had to implement the code from scratch and didnt pay 
attention to the signatures. 
Thanks for the hint!

On Tuesday, September 6, 2016 at 1:48:09 AM UTC+3, Ian Preston wrote:
>
> Thanks, Andrei. That looks great! Is there a reason you've changed the 
> signatures on some of the CompletableFuture methods?
>
> E.g. in the JRE,
> public  CompletableFuture thenApply(Function 
> fn)
>
> has become
>
> public  CompletionStage thenApply(Function 
> fn)
>
>
> On Monday, 5 September 2016 09:47:10 UTC+1, Andrei Korzhevskii wrote:
>>
>> I guess you need to super-source this class so the gwt compiler could use 
>> it.
>>
>> You can take a look at my initial CompletableFuture implementation here:
>>
>> https://github.com/nordligulv/gwt/tree/completable-future
>>
>> https://github.com/nordligulv/gwt/commit/ea70c5358bac3c939cb0c1628a58ccc462cd7423
>>
>> Feel free to use it but note that I haven't tested it properly yet.
>>
>>
>>
>> On Monday, September 5, 2016 at 3:28:27 AM UTC+3, Ian Preston wrote:
>>>
>>> I'm trying to emulate CompletableFuture by backing directly onto 
>>> Promise, but when compiling it gives this error: 
>>> "No source code is available for type 
>>> java.util.concurrent.CompletableFuture"
>>> (it finds other JRE classes I've replaced fine)
>>>
>>> My source I'm including is below. Am I doing anything illegal?
>>> 
>>> package java.util.concurrent;
>>>
>>> import com.google.gwt.user.client.*;
>>> import jsinterop.annotations.*;
>>>
>>> import java.util.function.*;
>>>
>>> @JsType(isNative=true, name = "Promise", namespace = JsPackage.GLOBAL)
>>> public class CompletableFuture implements CompletionStage {
>>>
>>> @JsMethod(name = "then")
>>> public native  CompletableFuture thenApply(Function>> T,? extends U> fn);
>>>
>>> @JsMethod(name = "then")
>>> public native CompletableFuture thenAccept(Consumer 
>>> action);
>>>
>>> @JsMethod(name = "then")
>>> public native  CompletableFuture thenCompose(Function>> T, ? extends CompletionStage> fn);
>>>
>>> @JsMethod(name = "reject")
>>> public native boolean completeExceptionally(Throwable ex);
>>>
>>> @JsMethod(name = "resolve")
>>> public native boolean complete(T value);
>>>
>>> @JsMethod(name = "resolve")
>>> public static native  CompletableFuture completedFuture(U 
>>> value);
>>>
>>> @JsOverlay
>>> public T get() throws InterruptedException, ExecutionException {
>>> Window.alert("Calling synchronous get() on CompletableFuture is 
>>> not possible in Javascript!");
>>> throw new IllegalStateException("Unimplemented!");
>>> }
>>> }
>>>
>>

-- 
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: Emulating CompletableFuture with Promise

2016-09-05 Thread Andrei Korzhevskii
I guess you need to super-source this class so the gwt compiler could use 
it.

You can take a look at my initial CompletableFuture implementation here:

https://github.com/nordligulv/gwt/tree/completable-future
https://github.com/nordligulv/gwt/commit/ea70c5358bac3c939cb0c1628a58ccc462cd7423

Feel free to use it but note that I haven't tested it properly yet.



On Monday, September 5, 2016 at 3:28:27 AM UTC+3, Ian Preston wrote:
>
> I'm trying to emulate CompletableFuture by backing directly onto Promise, 
> but when compiling it gives this error: 
> "No source code is available for type 
> java.util.concurrent.CompletableFuture"
> (it finds other JRE classes I've replaced fine)
>
> My source I'm including is below. Am I doing anything illegal?
> 
> package java.util.concurrent;
>
> import com.google.gwt.user.client.*;
> import jsinterop.annotations.*;
>
> import java.util.function.*;
>
> @JsType(isNative=true, name = "Promise", namespace = JsPackage.GLOBAL)
> public class CompletableFuture implements CompletionStage {
>
> @JsMethod(name = "then")
> public native  CompletableFuture thenApply(Function extends U> fn);
>
> @JsMethod(name = "then")
> public native CompletableFuture thenAccept(Consumer 
> action);
>
> @JsMethod(name = "then")
> public native  CompletableFuture thenCompose(Function ? extends CompletionStage> fn);
>
> @JsMethod(name = "reject")
> public native boolean completeExceptionally(Throwable ex);
>
> @JsMethod(name = "resolve")
> public native boolean complete(T value);
>
> @JsMethod(name = "resolve")
> public static native  CompletableFuture completedFuture(U value);
>
> @JsOverlay
> public T get() throws InterruptedException, ExecutionException {
> Window.alert("Calling synchronous get() on CompletableFuture is 
> not possible in Javascript!");
> throw new IllegalStateException("Unimplemented!");
> }
> }
>

-- 
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: NPE with 2.8.0 rc2, SDM, Errai

2016-08-19 Thread Andrei Korzhevskii
I dont think it's a gwt issue.
I guess the issue will be resolved when errai will use gwt 2.8 final 
instead of gwt 2.8 beta

On Friday, August 19, 2016 at 6:24:10 PM UTC+3, Alberto Mancini wrote:
>
> Yes, adding the dependency actually solves the problem, thanks. 
> Actually i cannot remove errai profile in the real project. 
>
> In your opinion, is it an issue in gwt or errai  dependencies ?
>
> Thanks again,
>Alberto. 
>
>
> On Fri, Aug 19, 2016 at 3:49 PM Andrei Korzhevskii <a.korz...@gmail.com 
> > wrote:
>
>> Yes, that's true. Some dependency hell is going on there.
>> Commenting out the errai profile does not help but it helps if you just 
>> add gson 2.6.2 to your project as a dependency
>>
>> 
>> com.google.code.gson
>> gson
>> 2.6.2
>> 
>> 
>>
>>
>> On Friday, August 19, 2016 at 4:13:12 PM UTC+3, Seamus McMorrow wrote:
>>>
>>> I had a quick look at that sample project. 
>>> The errai profile which is activated by default at the bottom of your 
>>> pom.xml has a dependencyManagement section BOM import. 
>>> That is conflicting the versions for gson and some others, xerces.
>>>
>>> If you comment out the whole profile bit 
>>>
>>> On Friday, 19 August 2016 13:42:27 UTC+1, Andrei Korzhevskii wrote:
>>>>
>>>> Ok, I've tracked down the problem.
>>>> The problem is that gwt-dev somehow relies on gson 1.7.2 but should 
>>>> rely on 2.6.2. I dont know what the problem is. I hope Jens or Thomas can 
>>>> help with that.
>>>> The problem was that gson 1.7.2 incorrectly parsed provided source map 
>>>> string and returned empty JsonObject which resulted in NPE.
>>>>
>>>> [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ sourcemap ---
>>>> [INFO] com.testcase:sourcemap:war:1.0-SNAPSHOT
>>>> [INFO] +- com.google.gwt:gwt-user:jar:2.8.0-rc2:provided
>>>> [INFO] |  +- com.google.jsinterop:jsinterop-annotations:jar:1.0.0:provided
>>>> [INFO] |  +- 
>>>> com.google.jsinterop:jsinterop-annotations:jar:sources:1.0.0:provided
>>>> [INFO] |  +- javax.validation:validation-api:jar:1.0.0.GA:provided
>>>> [INFO] |  +- javax.validation:validation-api:jar:sources:1.0.0.GA:provided
>>>> [INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
>>>> [INFO] |  \- org.w3c.css:sac:jar:1.3:provided
>>>> [INFO] \- com.google.gwt:gwt-dev:jar:2.8.0-rc2:provided
>>>> [INFO]+- com.google.code.gson:gson:jar:1.7.2:provided (version managed 
>>>> from 2.6.2)
>>>> [INFO]+- org.ow2.asm:asm:jar:5.0.3:provided
>>>> [INFO]+- org.ow2.asm:asm-util:jar:5.0.3:provided
>>>> [INFO]|  \- org.ow2.asm:asm-tree:jar:5.0.3:provided
>>>> [INFO]| \- (org.ow2.asm:asm:jar:5.0.3:provided - omitted for 
>>>> duplicate)
>>>> [INFO]+- org.ow2.asm:asm-commons:jar:5.0.3:provided
>>>> [INFO]|  \- (org.ow2.asm:asm-tree:jar:5.0.3:provided - omitted for 
>>>> duplicate)
>>>> [INFO]+- colt:colt:jar:1.2.0:provided
>>>> [INFO]+- ant:ant:jar:1.6.5:provided
>>>> [INFO]+- commons-collections:commons-collections:jar:3.2.2:provided
>>>> [INFO]+- commons-io:commons-io:jar:2.4:provided
>>>> [INFO]+- com.ibm.icu:icu4j:jar:50.1.1:provided
>>>> [INFO]+- tapestry:tapestry:jar:4.0.2:provided
>>>> [INFO]+- net.sourceforge.htmlunit:htmlunit:jar:2.19:provided
>>>> [INFO]|  +- xalan:xalan:jar:2.7.1:provided (version managed from 2.7.2)
>>>> [INFO]|  |  \- xalan:serializer:jar:2.7.1:provided
>>>> [INFO]|  | \- xml-apis:xml-apis:jar:1.4.01:provided (version 
>>>> managed from 1.3.04)
>>>> [INFO]|  +- 
>>>> (commons-collections:commons-collections:jar:3.2.2:provided - version 
>>>> managed from 3.2.1; omitted for duplicate)
>>>> [INFO]|  +- org.apache.commons:commons-lang3:jar:3.1:provided (version 
>>>> managed from 3.4)
>>>> [INFO]|  +- org.apache.httpcomponents:httpclient:jar:4.5:provided 
>>>> (version managed from 4.5.1)
>>>> [INFO]|  |  +- org.apache.httpcomponents:httpcore:jar:4.4.1:provided
>>>> [INFO]|  |  \- (commons-codec:commons-codec:jar:1.10:provided - 
>>>> version managed from 1.9; omitted for duplicate)
>>>> [INFO]|  +- org.apache.httpcomponents:httpmime:jar:4.5.1:provided
>>>> 

Re: NPE with 2.8.0 rc2, SDM, Errai

2016-08-19 Thread Andrei Korzhevskii
Yes, that's true. Some dependency hell is going on there.
Commenting out the errai profile does not help but it helps if you just add 
gson 2.6.2 to your project as a dependency


com.google.code.gson
gson
2.6.2




On Friday, August 19, 2016 at 4:13:12 PM UTC+3, Seamus McMorrow wrote:
>
> I had a quick look at that sample project. 
> The errai profile which is activated by default at the bottom of your 
> pom.xml has a dependencyManagement section BOM import. 
> That is conflicting the versions for gson and some others, xerces.
>
> If you comment out the whole profile bit 
>
> On Friday, 19 August 2016 13:42:27 UTC+1, Andrei Korzhevskii wrote:
>>
>> Ok, I've tracked down the problem.
>> The problem is that gwt-dev somehow relies on gson 1.7.2 but should rely 
>> on 2.6.2. I dont know what the problem is. I hope Jens or Thomas can help 
>> with that.
>> The problem was that gson 1.7.2 incorrectly parsed provided source map 
>> string and returned empty JsonObject which resulted in NPE.
>>
>> [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ sourcemap ---
>> [INFO] com.testcase:sourcemap:war:1.0-SNAPSHOT
>> [INFO] +- com.google.gwt:gwt-user:jar:2.8.0-rc2:provided
>> [INFO] |  +- com.google.jsinterop:jsinterop-annotations:jar:1.0.0:provided
>> [INFO] |  +- 
>> com.google.jsinterop:jsinterop-annotations:jar:sources:1.0.0:provided
>> [INFO] |  +- javax.validation:validation-api:jar:1.0.0.GA:provided
>> [INFO] |  +- javax.validation:validation-api:jar:sources:1.0.0.GA:provided
>> [INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
>> [INFO] |  \- org.w3c.css:sac:jar:1.3:provided
>> [INFO] \- com.google.gwt:gwt-dev:jar:2.8.0-rc2:provided
>> [INFO]+- com.google.code.gson:gson:jar:1.7.2:provided (version managed 
>> from 2.6.2)
>> [INFO]+- org.ow2.asm:asm:jar:5.0.3:provided
>> [INFO]+- org.ow2.asm:asm-util:jar:5.0.3:provided
>> [INFO]|  \- org.ow2.asm:asm-tree:jar:5.0.3:provided
>> [INFO]| \- (org.ow2.asm:asm:jar:5.0.3:provided - omitted for 
>> duplicate)
>> [INFO]+- org.ow2.asm:asm-commons:jar:5.0.3:provided
>> [INFO]|  \- (org.ow2.asm:asm-tree:jar:5.0.3:provided - omitted for 
>> duplicate)
>> [INFO]+- colt:colt:jar:1.2.0:provided
>> [INFO]+- ant:ant:jar:1.6.5:provided
>> [INFO]+- commons-collections:commons-collections:jar:3.2.2:provided
>> [INFO]+- commons-io:commons-io:jar:2.4:provided
>> [INFO]+- com.ibm.icu:icu4j:jar:50.1.1:provided
>> [INFO]+- tapestry:tapestry:jar:4.0.2:provided
>> [INFO]+- net.sourceforge.htmlunit:htmlunit:jar:2.19:provided
>> [INFO]|  +- xalan:xalan:jar:2.7.1:provided (version managed from 2.7.2)
>> [INFO]|  |  \- xalan:serializer:jar:2.7.1:provided
>> [INFO]|  | \- xml-apis:xml-apis:jar:1.4.01:provided (version managed 
>> from 1.3.04)
>> [INFO]|  +- (commons-collections:commons-collections:jar:3.2.2:provided 
>> - version managed from 3.2.1; omitted for duplicate)
>> [INFO]|  +- org.apache.commons:commons-lang3:jar:3.1:provided (version 
>> managed from 3.4)
>> [INFO]|  +- org.apache.httpcomponents:httpclient:jar:4.5:provided 
>> (version managed from 4.5.1)
>> [INFO]|  |  +- org.apache.httpcomponents:httpcore:jar:4.4.1:provided
>> [INFO]|  |  \- (commons-codec:commons-codec:jar:1.10:provided - version 
>> managed from 1.9; omitted for duplicate)
>> [INFO]|  +- org.apache.httpcomponents:httpmime:jar:4.5.1:provided
>> [INFO]|  |  \- (org.apache.httpcomponents:httpclient:jar:4.5:provided - 
>> version managed from 4.5.1; omitted for duplicate)
>> [INFO]|  +- commons-codec:commons-codec:jar:1.10:provided
>> [INFO]|  +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.17:provided
>> [INFO]|  +- xerces:xercesImpl:jar:2.11.0.SP4:provided (version managed 
>> from 2.11.0)
>> [INFO]|  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.22:provided
>> [INFO]|  +- net.sourceforge.cssparser:cssparser:jar:0.9.18:provided
>> [INFO]|  |  \- (org.w3c.css:sac:jar:1.3:provided - omitted for duplicate)
>> [INFO]|  +- (commons-io:commons-io:jar:2.4:provided - omitted for 
>> duplicate)
>> [INFO]|  +- commons-logging:commons-logging:jar:1.1.1:provided (version 
>> managed from 1.2)
>> [INFO]|  \- 
>> org.eclipse.jetty.websocket:websocket-client:jar:9.2.13.v20150730:provided
>> [INFO]| +- 
>> (org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:provided - version 
>> managed from 9.2.13.v20150730; omitted for duplicate)
>> [INFO]| +- (org.eclipse.jetty:jetty-io:

Re: Slowness / Hangs on GWT 2.7 with Chrome 50.0 Release

2016-08-19 Thread Andrei Volgin
I have seen no issues with Chrome 50 in my apps. They work as usual.

Is there any reason why you upgraded to Chrome 50? The current stable 
version is 52. Have you tried it?

-- 
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: NPE with 2.8.0 rc2, SDM, Errai

2016-08-19 Thread Andrei Korzhevskii
Ok, I've tracked down the problem.
The problem is that gwt-dev somehow relies on gson 1.7.2 but should rely on 
2.6.2. I dont know what the problem is. I hope Jens or Thomas can help with 
that.
The problem was that gson 1.7.2 incorrectly parsed provided source map 
string and returned empty JsonObject which resulted in NPE.

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ sourcemap ---
[INFO] com.testcase:sourcemap:war:1.0-SNAPSHOT
[INFO] +- com.google.gwt:gwt-user:jar:2.8.0-rc2:provided
[INFO] |  +- com.google.jsinterop:jsinterop-annotations:jar:1.0.0:provided
[INFO] |  +- 
com.google.jsinterop:jsinterop-annotations:jar:sources:1.0.0:provided
[INFO] |  +- javax.validation:validation-api:jar:1.0.0.GA:provided
[INFO] |  +- javax.validation:validation-api:jar:sources:1.0.0.GA:provided
[INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
[INFO] |  \- org.w3c.css:sac:jar:1.3:provided
[INFO] \- com.google.gwt:gwt-dev:jar:2.8.0-rc2:provided
[INFO]+- com.google.code.gson:gson:jar:1.7.2:provided (version managed from 
2.6.2)
[INFO]+- org.ow2.asm:asm:jar:5.0.3:provided
[INFO]+- org.ow2.asm:asm-util:jar:5.0.3:provided
[INFO]|  \- org.ow2.asm:asm-tree:jar:5.0.3:provided
[INFO]| \- (org.ow2.asm:asm:jar:5.0.3:provided - omitted for duplicate)
[INFO]+- org.ow2.asm:asm-commons:jar:5.0.3:provided
[INFO]|  \- (org.ow2.asm:asm-tree:jar:5.0.3:provided - omitted for 
duplicate)
[INFO]+- colt:colt:jar:1.2.0:provided
[INFO]+- ant:ant:jar:1.6.5:provided
[INFO]+- commons-collections:commons-collections:jar:3.2.2:provided
[INFO]+- commons-io:commons-io:jar:2.4:provided
[INFO]+- com.ibm.icu:icu4j:jar:50.1.1:provided
[INFO]+- tapestry:tapestry:jar:4.0.2:provided
[INFO]+- net.sourceforge.htmlunit:htmlunit:jar:2.19:provided
[INFO]|  +- xalan:xalan:jar:2.7.1:provided (version managed from 2.7.2)
[INFO]|  |  \- xalan:serializer:jar:2.7.1:provided
[INFO]|  | \- xml-apis:xml-apis:jar:1.4.01:provided (version managed 
from 1.3.04)
[INFO]|  +- (commons-collections:commons-collections:jar:3.2.2:provided - 
version managed from 3.2.1; omitted for duplicate)
[INFO]|  +- org.apache.commons:commons-lang3:jar:3.1:provided (version 
managed from 3.4)
[INFO]|  +- org.apache.httpcomponents:httpclient:jar:4.5:provided (version 
managed from 4.5.1)
[INFO]|  |  +- org.apache.httpcomponents:httpcore:jar:4.4.1:provided
[INFO]|  |  \- (commons-codec:commons-codec:jar:1.10:provided - version 
managed from 1.9; omitted for duplicate)
[INFO]|  +- org.apache.httpcomponents:httpmime:jar:4.5.1:provided
[INFO]|  |  \- (org.apache.httpcomponents:httpclient:jar:4.5:provided - 
version managed from 4.5.1; omitted for duplicate)
[INFO]|  +- commons-codec:commons-codec:jar:1.10:provided
[INFO]|  +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.17:provided
[INFO]|  +- xerces:xercesImpl:jar:2.11.0.SP4:provided (version managed from 
2.11.0)
[INFO]|  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.22:provided
[INFO]|  +- net.sourceforge.cssparser:cssparser:jar:0.9.18:provided
[INFO]|  |  \- (org.w3c.css:sac:jar:1.3:provided - omitted for duplicate)
[INFO]|  +- (commons-io:commons-io:jar:2.4:provided - omitted for duplicate)
[INFO]|  +- commons-logging:commons-logging:jar:1.1.1:provided (version 
managed from 1.2)
[INFO]|  \- 
org.eclipse.jetty.websocket:websocket-client:jar:9.2.13.v20150730:provided
[INFO]| +- (org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:provided 
- version managed from 9.2.13.v20150730; omitted for duplicate)
[INFO]| +- (org.eclipse.jetty:jetty-io:jar:9.2.14.v20151106:provided - 
version managed from 9.2.13.v20150730; omitted for duplicate)
[INFO]| \- 
org.eclipse.jetty.websocket:websocket-common:jar:9.2.13.v20150730:provided
[INFO]|+- 
org.eclipse.jetty.websocket:websocket-api:jar:9.2.13.v20150730:provided
[INFO]|+- 
(org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:provided - version managed 
from 9.2.13.v20150730; omitted for duplicate)
[INFO]|\- (org.eclipse.jetty:jetty-io:jar:9.2.14.v20151106:provided 
- version managed from 9.2.13.v20150730; omitted for duplicate)
[INFO]+- org.eclipse.jetty:jetty-webapp:jar:9.2.14.v20151106:provided
[INFO]|  +- org.eclipse.jetty:jetty-xml:jar:9.2.14.v20151106:provided
[INFO]|  |  \- (org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:provided 
- version managed from 9.2.13.v20150730; omitted for duplicate)
[INFO]|  \- org.eclipse.jetty:jetty-servlet:jar:9.2.14.v20151106:provided
[INFO]| \- 
org.eclipse.jetty:jetty-security:jar:9.2.14.v20151106:provided
[INFO]|\- 
(org.eclipse.jetty:jetty-server:jar:9.2.14.v20151106:provided - omitted for 
duplicate)
[INFO]+- org.eclipse.jetty:jetty-servlets:jar:9.2.14.v20151106:provided
[INFO]|  +- 
org.eclipse.jetty:jetty-continuation:jar:9.2.14.v20151106:provided
[INFO]|  +- 

Re: NPE with 2.8.0 rc2, SDM, Errai

2016-08-19 Thread Andrei Korzhevskii
It's hard to see what the problem actually is. I see you've created a test 
project, can you share it? That would help to reproduce and track the error.

On Friday, August 19, 2016 at 1:06:56 PM UTC+3, Alberto Mancini wrote:
>
> Hello,
> we have still the same problem with SourceMaps.
> A teammate tracked down the problem and we found that the error appears if we 
> depend on  gwt-dev (rc1 or rc2) and errai.
>
> ---
>  Job com.testcase.sourcemap.App_1_0
> [INFO]   Linking into 
> /var/folders/n8/8w8npfys46x90q0y9lqdxb0hgn/T/gwt-codeserver-4222675233479416644.tmp/com.testcase.sourcemap.App/compile-2/war/app;
>  
> Writing extras to 
> /var/folders/n8/8w8npfys46x90q0y9lqdxb0hgn/T/gwt-codeserver-4222675233479416644.tmp/com.testcase.sourcemap.App/compile-2/extras/app
> [INFO]  [WARN] Can't write source map 
> D84F40D38A264502877474A1394B6135_sourceMap0.json
> [INFO] java.lang.NullPointerException
> [INFO] at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:101)
> 
> 
>
> Am I missing something trivial ? 
> Should i file a bug on gwt-2.8.0-rc2  or errai beta2?
>
> Follows the sample  pom.
>
> Thanks,
>Alberto.
>
> 
>
> 
> http://maven.apache.org/POM/4.0.0;
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd;>
> 4.0.0
>
> com.testcase
> sourcemap
> 1.0-SNAPSHOT
> war
>
> 
> 4.0.0.Beta2
> 2.8.0-rc2
> 
>
> 
> 
> jboss
> JBoss Public Repo
> 
> https://repository.jboss.org/nexus/content/groups/public
> 
> 
>
>
>
> 
> 
> 
> com.google.gwt
> gwt-user
> ${gwt.version}
> provided
> 
> 
> 
> com.google.gwt
> gwt-dev
> ${gwt.version}
> provided
> 
> 
> 
>
>
> 
> ${project.artifactId}
> 
> 
> src/main/java
> 
> 
>
> 
> 
> maven-compiler-plugin
> 3.5.1
> 
> 1.8
> 1.8
> 
> 
> 
> maven-clean-plugin
> 2.4.1
> 
> 
> 
> ${basedir}
> 
> src/gen/
> src/main/webapp/app/
> 
> src/main/webapp/WEB-INF/deploy/
> 
> src/main/webapp/WEB-INF/lib/
> 
> src/main/webapp/WEB-INF/classes/**/*.*
> 
> src/main/webapp/WEB-INF/classes/**/*
> 
> src/main/webapp/WEB-INF/classes
> **/gwt-unitCache/**
> .errai/
> 
> 
> 
> 
> 
> 
> maven-war-plugin
> 2.6
> 
> 
> org.codehaus.mojo
> gwt-maven-plugin
> 2.8.0-rc1
> 
> 
> 
> compile
> 
> 
> 
> 
> 0.0.0.0
> WARN
> true
> false
> src/gen/java
> src/gen/java
> 
> ${project.basedir}/src/main/webapp
> 
> ${project.basedir}/src/main/webapp   
>  /
> -Xmx2048m 
> -XX:CompileThreshold=700
> true
> 
> 
> 
> com.google.gwt
> gwt-user
> ${gwt.version}
> 
> 
> com.google.gwt
> gwt-dev
> ${gwt.version}
> compile
> 
> 
> 
> 
> 
>
> 
> 
> errai
> 
> true
> 
> 
> 
> 
> org.jboss.errai.bom
> errai-bom
> ${errai.version}
> pom
> import
> 
> 
> 
> 
> 
> 
> 
> 

Re: Problem with 2.8.0 rc1 SDM

2016-08-13 Thread Andrei Korzhevskii
Reading the stacktrace, I think the problem is 
in 
https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/core/linker/SymbolMapsLinker.java#L282,
looks like disk cache returns null there.

Did you try to remove folder /var/folders/63/qxvnlkdn7yq2n689wbryx_
vwrfzqfp/T/gwt-codeserver-2706361954965741673.tmp
and run compile again?


On Friday, August 12, 2016 at 12:04:44 AM UTC+3, Alberto Mancini wrote:
>
> Hello,
> in the attempt of porting an internal project from beta1 to rc1 we faced 
> an issue i do not understand how to debug. 
>
> The project uses errai but my feeling is that the problem is not related 
> to it because similar projects with errai work without problems. 
>
> Essentially SDM fails during the first compilation and the problem seems 
> in the generation of the source maps. 
>
> The relevant error log follows.
>
> [INFO] GET /recompile/it.e.u.Application
> [INFO]Job it.e.u.Application_1_0
> [INFO]   starting job: it.e.u.Application_1_0
> [INFO]   binding: user.agent=safari
> [INFO]   Compiling module it.e.u.Application
> ...
>
> [INFO]  Unification traversed 54946 fields and methods and 5256 
> types. 5210 are considered part of the current module and 5210 had all of 
> their fields and methods traversed.
> [INFO]  Compiling 1 permutation
> [INFO] Compiling permutation 0...
> [INFO] Linking per-type JS with 5190 new/changed types.
> [INFO] Source Maps Enabled
> [INFO]  Compile of permutations succeeded
> [INFO]  Compilation succeeded -- 35.850s
> [INFO]   Linking into 
> /var/folders/63/qxvnlkdn7yq2n689wbryx_vwrfzqfp/T/gwt-codeserver-2706361954965741673.tmp/it.e.u.Application/compile-2/war/it.e.u.Application;
>  Writing extras to 
> /var/folders/63/qxvnlkdn7yq2n689wbryx_vwrfzqfp/T/gwt-codeserver-2706361954965741673.tmp/it.e.u.Application/compile-2/extras/it.e.u.Application*[INFO]
>   [WARN] Can't write source map 
> CCA06A04193EDF5B35BDE836DF1FABBE_sourceMap0.json
> [INFO] java.lang.NullPointerException*
> [INFO]at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:101)
> [INFO]at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:88)
> [INFO]at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:78)
> [INFO]at 
> com.google.gwt.thirdparty.debugging.sourcemap.SourceMapGeneratorV3.mergeMapSection(SourceMapGeneratorV3.java:311)
> [INFO]at 
> com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:316)
> [INFO]at 
> com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.java:384)
> [INFO]at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
> [INFO]at 
> com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
> [INFO]at com.google.gwt.dev.Link.link(Link.java:178)
> [INFO]at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
> [INFO]at 
> com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
> [INFO]at 
> com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
> [INFO]at 
> com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
> [INFO]at 
> com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
> [INFO]at 
> com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
> [INFO]at 
> com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
> [INFO]at 
> com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
> [INFO]at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [INFO]at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [INFO]at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [INFO]at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [INFO]at java.lang.Thread.run(Thread.java:745)
> [INFO]  Invoking Linker Export CompilationResult symbol maps
> [INFO] [ERROR] Failed to link
> [INFO] java.lang.NullPointerException
> [INFO]at java.util.TreeMap.put(TreeMap.java:563)
> [INFO]at java.util.TreeSet.add(TreeSet.java:255)
> [INFO]at 
> com.google.gwt.thirdparty.guava.common.collect.ForwardingCollection.add(ForwardingCollection.java:84)
> [INFO]at 
> com.google.gwt.core.ext.linker.TypeIndexedSet.add(TypeIndexedSet.java:101)
> [INFO]at 
> com.google.gwt.core.ext.linker.ArtifactSet.add(ArtifactSet.java:42)
> [INFO]at 
> com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:330)
> [INFO]at 
> 

[gwt-contrib] Re: GWT 2.8.0 RC2 is here!

2016-08-12 Thread Andrei Preda
Thank you for the RC2.
Everything compiled perfectly with it, after some minor maven changes.

On Friday, August 12, 2016 at 3:19:03 AM UTC+2, Daniel Kurka wrote:
>
> Hi all,
>
> I just build the GWT 2.8.0 RC2 and pushed it to maven central. The 
> complete SDK is also available from here .
>
> Please start testing and let us know if you run into any trouble and file 
> bugs .
>
> We are planing to release this as GWT 2.8.0 if we do not here about any 
> serious issues within the next two weeks. The release notes for RC 
> 2
>  will 
> be made available shortly after this notice, in the mean time you can take 
> a look at the github repository 
> 
> .
>
> Daniel,
> on behalf of the GWT team
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/04d02cdd-83ed-4380-957e-48637a263466%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Access specific link from dynamically build FlexTable

2016-08-08 Thread Olar Andrei
Yes, that is not what I expected, but thank you for your suggestion. I will 
take it later into consideration.

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


Access specific link from dynamically build FlexTable

2016-08-07 Thread Olar Andrei
Hello,

I have to implement a messaging system for my application. I want all my 
conversations to be visible and the user should select one of those to open.
I'm creating a FlexTable from a List of Conversations returned to me via 
RPC.

My ideea to select one conversation of all available was to link the 
subject column with a normal servlet getting the id as a parameter.
But the ideea is I do not want to open another page to display the 
conversation. I want to display it on the same page. I wan't to clear the 
existing widget and create a new one with all the messages in the selected 
conversation.

How can I do that ? Link to GWT what was clicked, in order for it to clear 
the current widget and create a new one...
Or is there a better idea ? Like can it be done through RPC ?

Thanks in advance,
Andrei


DBGetAllConversationsAsync rpc = (DBGetAllConversationsAsync) 
GWT.create(DBGetAllConversations.class);
ServiceDefTarget tar = (ServiceDefTarget) rpc;
String moduleURL = GWT.getModuleBaseURL() + "DBGetAllConversationsImpl";
tar.setServiceEntryPoint(moduleURL);

rpc.getAllMessages(userInfo, new AsyncCallback<List>() {

@Override
public void onSuccess(List result) {
DOM.getElementById("loading").getStyle().setDisplay(Display.NONE);

int start = 1;

for (Conversation conversation : result) {
int id = conversation.getId();

flexTable.setHTML(start, 0, String.valueOf(id));
flexTable.setHTML(start, 1, conversation.getDate());

String username = userInfo.getUsername();
String source = conversation.getSource();
String destination = conversation.getDestination();

flexTable.setHTML(start, 2, source.equals(username) ? destination : source);
flexTable.setHTML(start, 3,
"" 
+ conversation.getSubject() + "");
flexTable.setHTML(start, 4, "0");
flexTable.setHTML(start, 5, "Unread");

start++;
}

}

@Override
public void onFailure(Throwable caught) {
...

}
});


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


[gwt-contrib] Re: GWT 2.8.0 RC1 is here!

2016-08-01 Thread Andrei Preda
Hi and thank you for the RC1,

I have a problem that I can't wrap my head around, because I don't know if 
it is a problem with the RC1 or with the gwtjackson lib?

Everything works fine with gwt2.8.0-beta1 but if I try to compile with RC1 
the following is logged:
Computing all possible rebind results for 
'com.google.gwt.user.client.DocumentModeAsserter.DocumentModeProperty'
Rebinding com.google.gwt.user.client.DocumentModeAsserter.
DocumentModeProperty
   Checking rule 
  [WARN] Unknown type 
'com.github.nmorel.gwtjackson.client.JsonSerializationContext.Builder' 
specified in deferred binding rule
   Checking rule 
  [WARN] Unknown type 
'com.github.nmorel.gwtjackson.client.ObjectWriter' specified in deferred 
binding rule
 [ERROR] Errors in 
'com/github/nmorel/gwtjackson/client/JsonSerializer.java'
[ERROR] Line 19: The import javax.annotation.Nonnull cannot be 
resolved
[ERROR] Line 20: The import javax.annotation.Nullable cannot be 
resolved
[ERROR] Line 121: Nullable cannot be resolved to a type
[ERROR] Line 128: Nullable cannot be resolved to a type
[ERROR] Line 140: Nonnull cannot be resolved to a type
 Tracing compile failure path for type 
'com.github.nmorel.gwtjackson.client.JsonSerializer'
[ERROR] Errors in 
'com/github/nmorel/gwtjackson/client/JsonSerializer.java'
   [ERROR] Line 128: Nullable cannot be resolved to a type
   [ERROR] Line 121: Nullable cannot be resolved to a type
   [ERROR] Line 140: Nonnull cannot be resolved to a type
   [ERROR] Line 20: The import javax.annotation.Nullable cannot 
be resolved
   [ERROR] Line 19: The import javax.annotation.Nonnull cannot 
be resolved

Can anyone point me to a solution?

Thank you for your help,
Andrei

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/a330656a-2e1c-42eb-b8b7-6561aba30c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AtomicReference

2016-06-17 Thread Andrei Korzhevskii

That was just a suggestion.
Guava is involved in the way that it already provides gwt emulation for 
java.util.concurrent.* classes, e.g. it has emulation of AtomicBoolean, 
AtomicInteger and AtomicLong. 
It will be easier to merge your PR to Guava because they have more frequent 
release cycles than GWT has and since GWT 2.8 is about to hit rc1, there is 
a chance that your PR might get stalled.
But again, that's just my suggestion.

On Friday, June 17, 2016 at 1:23:59 PM UTC+3, Jaroslav Záruba wrote:
>
> I don't use Guava in this very project.
> I am completely clueless about what you are suggesting. What I wish to add 
> to GWT is AtomicReference class (as simple as possible) and one or two 
> *.gwt.xml files. How would Guava be involved in that?
>
> Dne pátek 17. června 2016 11:43:27 UTC+2 Andrei Korzhevskii napsal(a):
>>
>> If you use Guava in your project, I'd send this PR to Guava since they 
>> have much frequent releases than GWT does and they accept PRs quite fast.
>> They currently have atomic references for primitive values but not 
>> AtomicReference.
>>
>>
>> On Friday, June 17, 2016 at 12:32:49 PM UTC+3, Jens wrote:
>>>
>>> I can't speak for an official maintainer but I would be fine with it to 
>>> increase code compatibility. Also the emulation code is pretty straight 
>>> forward. Its likely that GWT will contain a bit more java.util.concurrent.* 
>>> emulation in the future as long as it makes sense (e.g. CompletableFuture + 
>>> what Guava currently provides)
>>>
>>> But you can not do Github pull requests. You must sign a CLA and then 
>>> push your patch to Gerrit, GWT's code review tool.
>>>
>>> http://www.gwtproject.org/makinggwtbetter.html
>>> https://gwt-review.googlesource.com
>>>
>>> -- 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+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: AtomicReference

2016-06-17 Thread Andrei Korzhevskii
If you use Guava in your project, I'd send this PR to Guava since they have 
much frequent releases than GWT does and they accept PRs quite fast.
They currently have atomic references for primitive values but not 
AtomicReference.


On Friday, June 17, 2016 at 12:32:49 PM UTC+3, Jens wrote:
>
> I can't speak for an official maintainer but I would be fine with it to 
> increase code compatibility. Also the emulation code is pretty straight 
> forward. Its likely that GWT will contain a bit more java.util.concurrent.* 
> emulation in the future as long as it makes sense (e.g. CompletableFuture + 
> what Guava currently provides)
>
> But you can not do Github pull requests. You must sign a CLA and then push 
> your patch to Gerrit, GWT's code review tool.
>
> http://www.gwtproject.org/makinggwtbetter.html
> https://gwt-review.googlesource.com
>
> -- 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+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.


Advice for implementing a messaging system

2016-06-15 Thread Olar Andrei
Hello

I want to implement a messaging system for my application. My application 
has users, who connect based on a username and password. I want to make 
them able to send messages one to another.
I would like to know what ways/steps how this could be implemented.

For now I only got one ideea, which is the following:
Every user can see a list with the rest of the users. I would add a button 
next to the user, and when that button will be clicked, a new panel will 
open where the user is typing the message.
I was thinking to insert every message in a DB table, with columns like 
"source", "destination", "date" ... The one who sends is the source, and 
the one who recieves is the destination, and based on that each user can 
see what he recevied and what he send.

Are there any other ways to implement this ? 

P.S: I once saw something of Errai. How can Errai be used in order to 
implement this ? How is that different ?

Thanks in advance,
Andrei

-- 
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: How to make my app more secure. URL token

2016-06-08 Thread Olar Andrei
Well, thanks everybody.

I will implement this asap. I thought there might be another way, then to 
validateing the hash or the username.

luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris:
>
> Hello,
>
> For now my aplication (MVP) has a login page, and 2 other palces, the 
> AdminPlace and the UserPlace.
> My URL looks like this:
>
> http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin
>
> The login form consists of username and password, where the username is 
> passed as a token to the next Place.
> A user can't connect if he does not know the password, but let's say I'm 
> logged in like in the link above. If I change the Admin to Admin2 or 
> whatever, I still can see the page content. I don't want this. How can I 
> avoid this ?
>
> 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+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: How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Velusamy Velu:

I'm alredy know that link. I implemented my password reset based on your 
workflow.

But there again is the same Problem (for me actually, perhaps due to my 
implementation). If a letter is removed from the hashed token standing in 
the URL, and then just hit ENTER, the exact page reloads ( with the prompt 
for new password and retype new password ). In that case when submitting, 
nothing happens, because the token does not match the Token already stored 
in the DB, but like I said before, the page reloads, displaying the GUI, 
and it shoudn't do that.

luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris:
>
> Hello,
>
> For now my aplication (MVP) has a login page, and 2 other palces, the 
> AdminPlace and the UserPlace.
> My URL looks like this:
>
> http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin
>
> The login form consists of username and password, where the username is 
> passed as a token to the next Place.
> A user can't connect if he does not know the password, but let's say I'm 
> logged in like in the link above. If I change the Admin to Admin2 or 
> whatever, I still can see the page content. I don't want this. How can I 
> avoid this ?
>
> 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+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: How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Well, the login is done as down below

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) 
{
DOM.getElementById("loading").getStyle().setDisplay(Display.BLOCK);
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() {

@Override
public void onSuccess(User user) {
DOM.getElementById("loading").getStyle().setDisplay(Display.NONE);
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));
}
}

@Override
public void onFailure(Throwable caught) {
DOM.getElementById("loading").getStyle().setDisplay(Display.NONE);
DialogBox dialogBox = createDialogBox();
dialogBox.setGlassEnabled(true);
dialogBox.setAnimationEnabled(true);
dialogBox.center();
dialogBox.show();
}
   });
}

So there is a form, the username and password are sent to the server using 
rpc, on the user is checked and the password verified (BCrypt hash), and 
then if they match, in the onSuccess() method the user is redirected to the 
new Place with the username as token.

How should I change this ?

luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris:
>
> Hello,
>
> For now my aplication (MVP) has a login page, and 2 other palces, the 
> AdminPlace and the UserPlace.
> My URL looks like this:
>
> http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin
>
> The login form consists of username and password, where the username is 
> passed as a token to the next Place.
> A user can't connect if he does not know the password, but let's say I'm 
> logged in like in the link above. If I change the Admin to Admin2 or 
> whatever, I still can see the page content. I don't want this. How can I 
> avoid this ?
>
> 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+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.


How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Hello,

For now my aplication (MVP) has a login page, and 2 other palces, the 
AdminPlace and the UserPlace.
My URL looks like this:

http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin

The login form consists of username and password, where the username is 
passed as a token to the next Place.
A user can't connect if he does not know the password, but let's say I'm 
logged in like in the link above. If I change the Admin to Admin2 or 
whatever, I still can see the page content. I don't want this. How can I 
avoid this ?

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


Unable to make loading screen appear

2016-06-06 Thread Olar Andrei
Hello

I have created in my HTML a div holding an image like this:


...

Loading...


...


It has display: block by default, so until my aplication is loaded it stays 
there. In my onModuleLoad(), after loading is finished, I hide it like this

DOM.getElementById("loading").getStyle().setDisplay(Display.NONE);

But later, when I'm navigating to another place (MVP), I have an option, 
which sends emails to everybody in the DB, so before my RPC call I inserted 
this

DOM.getElementById("loading").getStyle().setDisplay(Display.BLOCK);

and then again I inserted the .setDisplay(Display.NONE) in the onSuccess() 
and onFailure() method.

My problem is, it that the loading screen does not appear when the rpc 
starts. And it takes some time to send emails, so it's not like it appears 
for a millisecond and then dissaprears, it does not appear at all.

How can I make it visible there and hide it afterwards ? 

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

2016-06-01 Thread Olar Andrei
This is the ActivityMapper

public class AppActivityMapper implements ActivityMapper {

private ClientFactory clientFactory;

public AppActivityMapper(ClientFactory clientFactory) {
super();
this.clientFactory = clientFactory;
}

@Override
public Activity getActivity(Place place) {
if (place instanceof LoginPlace) {
return new LoginActivity((LoginPlace) place, clientFactory);
} else if (place instanceof RegisterPlace) {
return new RegisterActivity((RegisterPlace) place, clientFactory);
} else if (place instanceof UserPlace) {
return new UserActivity((UserPlace) place, clientFactory);
} else if (place instanceof AdminPlace) {
return new AdminActivity((AdminPlace) place, clientFactory);
}

return null;
}

}

And this is the onModuleLoad() method
public class AdministrareBloc implements EntryPoint {

private Place defaultPlace = new LoginPlace("Login Place!");
private SimplePanel appWidget = new SimplePanel();

@Override
public void onModuleLoad() {
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController = clientFactory.getPlaceController();

// Start Activity for the main widget with our ActivityMapper
ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
ActivityManager activityManager = new ActivityManager(activityMapper, 
eventBus);
activityManager.setDisplay(appWidget);

// Start PlaceHistoryHandler with our PlaceHistoryMapper
AppPlaceHistoryMapper historyMapper = 
GWT.create(AppPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);

RootPanel.get().add(appWidget);
historyHandler.handleCurrentHistory();
}

}

What do you mean by "Where does the UserPlace come from ? " ? 

Thanks

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:/AdministrareBloc.html#AdminPlace:admin 
> <http://127.0.0.1:/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() 
> {
>
> @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+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: Getting username from url only works after refresh

2016-06-01 Thread Olar Andrei
I'll take your option into consideration. But for now I'm running out of 
time and I want to know how to fix the problem specified in my previous 
post. About the code splitting stuff. Because the browser downloads code 
before he needs it.

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:/AdministrareBloc.html#AdminPlace:admin 
> <http://127.0.0.1:/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() 
> {
>
> @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+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: Getting username from url only works after refresh

2016-06-01 Thread Olar Andrei
Hello,

I've tried a little trick today, because I still belive the browser 
downloads code he does not need before he actually needs it.

I placed this:
Window.Location.reload();
inside my *UserViewImpl, *so it would reload after the login.

The problem is that when the application starts with the *LoginViewImpl *the 
page refreshes every second. So I'm not even in the UserViewImpl, so I 
didn't log in, and the page gets the code from the UserViewImpl and starts 
refreshing.
The thing is I've used code splitting in my application like this:

*Login Button*

loginButton.setHTML(LoginFormConstants.LOGIN_BUTTON);
loginButton.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
final String username = usernameBox.getText();
final String password = passwordBox.getText();

// Is this good code splitting ?
GWT.runAsync(new RunAsyncCallback() {

@Override
public void onSuccess() {
performUserConnection(username, password);
}

@Override
public void onFailure(Throwable reason) {
// TODO Auto-generated method stub
}
});
}
});

 and *performUserConnection()*

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() {

@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));
}
}

@Override
public void onFailure(Throwable caught) {
DialogBox dialogBox = createDialogBox();
dialogBox.setGlassEnabled(true);
dialogBox.setAnimationEnabled(true);
dialogBox.center();
dialogBox.show();
}
  });
  }

So the page should wait to see if connection was successful, and then 
download the code, right ? Why isn't this happening ?

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:/AdministrareBloc.html#AdminPlace:admin 
> <http://127.0.0.1:/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
>  
> *Introduceți aici codul...*   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() 
> {
>
> @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 
> poin

Re: Getting username from url only works after refresh

2016-05-31 Thread Olar Andrei
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+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: Getting username from url only works after refresh

2016-05-31 Thread Olar Andrei
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 { @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:/AdministrareBloc.html#AdminPlace:admin 
> <http://127.0.0.1:/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() 
> {
>
> @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+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.


Getting username from url only works after refresh

2016-05-30 Thread Olar Andrei


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:/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() {

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


Need help with an ideea on file processing

2016-05-16 Thread Olar Andrei
Hello,

I have a application, which has 2 main places. The AdminPlace, for the 
admin, and the UserPlace for the Users. I made a helper class, which 
generates html from excel, which I want to use it like this: The admin 
uploads an excel file, from which html code gets generated and displayed in 
the UserPlace for the users. By now, I don't have the AdminPlace 
implemented. I know I need to send my file, once selected, to the server, 
where it gets processed and returns my String or HTML to the client. I know 
how to send my file to the server, but I don't know how to retrieve the 
result to the client.

I try to create the widget here: How do I get the String/HTML from server, 
what requests do I have to do and how should it be implemented ?

upkeepMenu.addItem(UserMenuConstants.MENU_ITEM_GENERAL_VIEW, new Command() {

@Override
public void execute() {
scroller.clear();
Widget generalCostsView = new HTML(/*String returned from server, or 
directly HTML*/);
scroller.add(generalCostsView);
}
});

Thanks in advence

-- 
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: Sorting cell table columns populated from gwt rpc not working

2016-05-13 Thread Olar Andrei
Hello,

Thank you. It work perfectly now.

Have a nice day,
Andrei

vineri, 13 mai 2016, 21:12:40 UTC+3, Olar Andrei a scris:
>
> Hello, I'm pretty new to GWT
>
>
> I have a problem trying to sort specific columns from a cell table, whcih 
> is populated from the DB, using RPC. Basically I'm trying to sort the 
> family name column alphabetically, and it's just not working. Table gets 
> fully populated, but sorting does not work.
>
> Any ideas why ? 
>
>
> Thanks in advance
>
>
> // Create the family name column.
> final TextColumn familyNameColumn = new 
> TextColumn() {
>
> @Override
> public String getValue(ContactInfo object) {
> return object.getFamilyName();
> }
> };
> table.setColumnWidth(familyNameColumn, 20, Unit.PCT);
>
> // Make the family name sortable
> familyNameColumn.setSortable(true);
>
> // Add the columns
> table.addColumn(familyNameColumn, UserMenuConstants.FAMILY_NAME_COLUMN);
> table.addColumn(familyAdministratorColumn, 
> UserMenuConstants.FAMILY_ADMINISTRATOR_COLUMN);
> table.addColumn(apartmentNuberColumn, 
> UserMenuConstants.FAMILY_APARTMENT_NUMBER_COLUMN);
> table.addColumn(emailColumn, UserMenuConstants.EMAIL_ADDRESS_COLUMN);
> table.addColumn(phoneNumberColumn, UserMenuConstants.PHONE_NUMBER_COLUMN);
>
> DBGetContactInfoAsync rpcService = (DBGetContactInfoAsync) 
> GWT.create(DBGetContactInfo.class);
> ServiceDefTarget target = (ServiceDefTarget) rpcService;
> String moduleRelativeURL = GWT.getModuleBaseURL() + 
> "DBGetContactInfoImpl";
> target.setServiceEntryPoint(moduleRelativeURL);
>
> rpcService.getContacts(new AsyncCallback<List>() {
>
> @Override
> public void onSuccess(List result) {
>
> table.setRowCount(result.size());
>
> ListDataProvider dataProvider = new 
> ListDataProvider();
> dataProvider.addDataDisplay(table);
>
> List list = dataProvider.getList();
> for (ContactInfo contactInfo : result) {
> list.add(contactInfo);
> }
>
> ListHandler listHandler = new 
> ListHandler(result);
>
> listHandler.setComparator(familyNameColumn, new 
> Comparator() {
>
> @Override
> public int compare(ContactInfo o1, ContactInfo o2) {
> return o1.getFamilyName().compareTo(o2.getFamilyName());
> }
> });
>
> table.addColumnSortHandler(listHandler);
>
> }
>
> @Override
> public void onFailure(Throwable caught) {
> ...
> }
> });
>
>
>
>

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


Sorting cell table columns populated from gwt rpc not working

2016-05-13 Thread Olar Andrei


Hello, I'm pretty new to GWT


I have a problem trying to sort specific columns from a cell table, whcih 
is populated from the DB, using RPC. Basically I'm trying to sort the 
family name column alphabetically, and it's just not working. Table gets 
fully populated, but sorting does not work.

Any ideas why ? 


Thanks in advance


// Create the family name column.
final TextColumn familyNameColumn = new 
TextColumn() {

@Override
public String getValue(ContactInfo object) {
return object.getFamilyName();
}
};
table.setColumnWidth(familyNameColumn, 20, Unit.PCT);

// Make the family name sortable
familyNameColumn.setSortable(true);

// Add the columns
table.addColumn(familyNameColumn, UserMenuConstants.FAMILY_NAME_COLUMN);
table.addColumn(familyAdministratorColumn, 
UserMenuConstants.FAMILY_ADMINISTRATOR_COLUMN);
table.addColumn(apartmentNuberColumn, 
UserMenuConstants.FAMILY_APARTMENT_NUMBER_COLUMN);
table.addColumn(emailColumn, UserMenuConstants.EMAIL_ADDRESS_COLUMN);
table.addColumn(phoneNumberColumn, UserMenuConstants.PHONE_NUMBER_COLUMN);

DBGetContactInfoAsync rpcService = (DBGetContactInfoAsync) 
GWT.create(DBGetContactInfo.class);
ServiceDefTarget target = (ServiceDefTarget) rpcService;
String moduleRelativeURL = GWT.getModuleBaseURL() + "DBGetContactInfoImpl";
target.setServiceEntryPoint(moduleRelativeURL);

rpcService.getContacts(new AsyncCallback() {

@Override
public void onSuccess(List result) {

table.setRowCount(result.size());

ListDataProvider dataProvider = new 
ListDataProvider();
dataProvider.addDataDisplay(table);

List list = dataProvider.getList();
for (ContactInfo contactInfo : result) {
list.add(contactInfo);
}

ListHandler listHandler = new 
ListHandler(result);

listHandler.setComparator(familyNameColumn, new 
Comparator() {

@Override
public int compare(ContactInfo o1, ContactInfo o2) {
return o1.getFamilyName().compareTo(o2.getFamilyName());
}
});

table.addColumnSortHandler(listHandler);

}

@Override
public void onFailure(Throwable caught) {
...
}
});



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


Unable to catch onFailure() GWT AsyncCallback

2016-04-15 Thread Olar Andrei


I am creating an appliaction which requires user authentication. I have one 
problem when I'm trying to log in. When I type a correct username and 
password, the onSuccess method is called. But when I type a wrong one, or 
empty fields, then the onFailure() method is NOT called.

I really want to know why this is happening. Because I wan't to display 
some sort of dialogbox when the username or password is incorrect.


This is the ClickHandler, which takes the username and password from the 
fields:


loginButton.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
String username = usernameBox.getText();
String password = passwordBox.getText();
performUserConnection(username, password);
}
});



And this is the method that performs the user conenction, which as I said, 
works if I have a correct username/ password. It displays my alert message, 
but it does not display any alert message if it's not correct.


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() {

@Override
public void onSuccess(User user) {
Window.alert("TRALALA. Username: " + user.getUsername());
}

@Override
public void onFailure(Throwable caught) {
Window.alert("LALALALAL");
// DialogBox dialogBox = createDialogBox();
// dialogBox.setGlassEnabled(true);
// dialogBox.setAnimationEnabled(true);
// dialogBox.center();
// dialogBox.show();
}
});}


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


What needs to be done after a successful login

2016-04-11 Thread Olar Andrei
Hello,

I'm new to GWT and a I have a problem, which I don't understand quite well. 
I'm making a GWT application where a user is required to log in. So I do my 
stuff, by checking the username and password if they match and so on.
But, on the onSuccess() method, what needs to be done in order to open the 
actual application ? I mean the current application is just the login 
screen with the DB connection. What needs to be done if they match, how do 
I open a new page, or a new application... ?

I understood that GWT basically is just a one-page application. Then how 
should I do this ? 

Thanks in advance.

DBConnectionAsync rpcService = (DBConnectionAsync) 
GWT.create(DBConnection.class);
ServiceDefTarget target = (ServiceDefTarget) rpcService;
String moduleRelativeURL = GWT.getModuleBaseURL() + "DBConnectionImpl";
target.setServiceEntryPoint(moduleRelativeURL);
rpcService.authenticateUser("admin", "admin", new AsyncCallback() {
   @Override
   public void onSuccess(User result) {
 // What to do here ?
   }
   @Override
   public void onFailure(Throwable caught) {
  // Failure
   }
});


-- 
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: Output ECMAScript 5 strict mode?

2016-04-07 Thread Andrei Korzhevskii
I used that linker to package gwt app as a chrome app/extension

On Thursday, April 7, 2016 at 11:39:08 AM UTC+3, Alain wrote:
>
> Not sure what that will bring though ..
>
> On 7 April 2016 at 10:19, Andrei Korzhevskii <a.korz...@gmail.com 
> > wrote:
>
>> No, no one showed any interest on this change.
>>
>>
>> On Thursday, April 7, 2016 at 3:54:30 AM UTC+3, Michael Zhou wrote:
>>>
>>> Thanks. Do you plan to pick up that change?
>>>
>>> On Wednesday, April 6, 2016 at 5:38:37 PM UTC-4, Andrei Korzhevskii 
>>> wrote:
>>>>
>>>> Back in the days as I remember, I overrid linker for that so it wraps 
>>>> gwt code in aanonymous function call and inserts  "use strict;" into it
>>>> Something like that: https://gwt-review.googlesource.com/#/c/7710
>>>>
>>>> On Thursday, April 7, 2016 at 12:25:33 AM UTC+3, Michael Zhou wrote:
>>>>>
>>>>> Bump. Anyone?
>>>>>
>>>>> On Sunday, March 27, 2016 at 4:01:05 PM UTC-4, Michael Zhou wrote:
>>>>>>
>>>>>> Is there a way to force GWT to output JS that is in ECMAScript 5 
>>>>>> strict mode (ie. with the "use strict;" directive)?
>>>>>>
>>>>> -- 
>> 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-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.
>>
>
>
>
> -- 
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ <http://ahome-it.com/>
>

-- 
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: Output ECMAScript 5 strict mode?

2016-04-07 Thread Andrei Korzhevskii
No, no one showed any interest on this change.

On Thursday, April 7, 2016 at 3:54:30 AM UTC+3, Michael Zhou wrote:
>
> Thanks. Do you plan to pick up that change?
>
> On Wednesday, April 6, 2016 at 5:38:37 PM UTC-4, Andrei Korzhevskii wrote:
>>
>> Back in the days as I remember, I overrid linker for that so it wraps gwt 
>> code in aanonymous function call and inserts  "use strict;" into it
>> Something like that: https://gwt-review.googlesource.com/#/c/7710
>>
>> On Thursday, April 7, 2016 at 12:25:33 AM UTC+3, Michael Zhou wrote:
>>>
>>> Bump. Anyone?
>>>
>>> On Sunday, March 27, 2016 at 4:01:05 PM UTC-4, Michael Zhou wrote:
>>>>
>>>> Is there a way to force GWT to output JS that is in ECMAScript 5 strict 
>>>> mode (ie. with the "use strict;" directive)?
>>>>
>>>

-- 
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: Output ECMAScript 5 strict mode?

2016-04-06 Thread Andrei Korzhevskii
Back in the days as I remember, I overrid linker for that so it wraps gwt 
code in aanonymous function call and inserts  "use strict;" into it
Something like that: https://gwt-review.googlesource.com/#/c/7710

On Thursday, April 7, 2016 at 12:25:33 AM UTC+3, Michael Zhou wrote:
>
> Bump. Anyone?
>
> On Sunday, March 27, 2016 at 4:01:05 PM UTC-4, Michael Zhou wrote:
>>
>> Is there a way to force GWT to output JS that is in ECMAScript 5 strict 
>> mode (ie. with the "use strict;" directive)?
>>
>

-- 
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: The future of GWT and functional programming on the web

2015-11-06 Thread Andrei Volgin
I've been using GWT for years. Obviously, I am a little biased, but I love 
GWT. I am totally fine with using more native JS and in general with the 
direction the steering committee is taking. I am much more concerned with 
the marketing effort behind GWT. Success of any open source technology 
depends on the size and vibrancy of its community. In other words, we 
should be all concerned with attracting more developers to the platform. I 
am going my part - I answered more questions on SO tagged with GWT than 
anyone not named Thomas Broyer :)  And while support for existing 
developers is important, it's equally important to recruit more 
developers/teams who are starting new projects.

http://www.gwtproject.org/ was a step in the right direction. I think, 
however, that we need to add a list of prominent projects using GWT and a 
showcase of apps created with GWT. Showcase of widgets is fine, but many 
developers may not realize that GWT in no way limits creativity or design 
possibilities. I am proud, for example, to showcase my latest project:

https://www.angelslikerebels.com/#Discover:

This is pure GWT/MGWT - no third party widgets. You can see how the UI 
changes on phones compared to desktop, with minimal extra code. Scrolling 
behavior was a major PIA, but that's a topic for another post.

I am sure there are many beautiful apps built with pure GWT or a 
combination of GWT and other UI frameworks. We should put them on a webpage 
page, which every developer can point to the next time his or her 
boss/client/co-worker asks what can be done with GWT. Anything can be done 
with GWT! And it may look any way you like it.

Andrei Volgin
Angels Like Rebels, Inc.
President & CTO



On Thursday, September 3, 2015 at 10:39:11 PM UTC-4, steve Zara wrote:
>
> Although I have major projects in development using GWT, I'm concerned for 
> its future, and I need to make decisions about which technologies to use 
> for new development.  The reason for my concern is that after years of 
> updates to GWT and reports of new technologies, 2015 has been quiet.  The 
> official release of GWT 2.8.0, the release would provide for GWT developers 
> the long-awaited syntax and libraries of Java 8, seems to have been 
> postponed indefinitely, with no reports as to when it's likely to appear. 
>  There's certainly no sign of GWT 3.0, which was discussed at GWT.create 
> 2015.  
>
> GWT seems to have lost visibility at major forums for software 
> development, such as InfoQ, instead, the talk is of native JavaScript, 
> ClojureScript and Scala.js.  If GWT is no longer going to be providing a 
> way to use modern software techniques (such as the new functional syntax of 
> Java 8) on the client side, what is likely to be the best alternative? 
>  Scala.js seems the closest, providing a type-safe high-performance 
> language on the JVM, and full functional programming on the web.  (There 
> was a Scala GWT project for a short time, but that has died).
>
> Is there likely to be an official GWT 2.8, even if GWT 3.0 never happens? 
>   Or should those of us who want to make use of the power of functional 
> programming accept that Java (via GWT) isn't going to ever officially 
> provide that on web clients?
>

-- 
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Mixing Html and Widgets in UiBinder

2015-09-23 Thread Andrei Preda
Thank you very much for the clarification and hint!

On Tuesday, September 22, 2015 at 9:04:29 PM UTC+2, Andrei Preda wrote:
>
> I tried to figure this out for some time now and I hope someone can help 
> me to figure this out, because I have no idea what I am missing.
>
> I'm using Gwt 2.7 and I want to mix html and my own widgets inside the 
> UiBinder as following:
> 
> 
>
>
>
> 
> 
>
> In this case SomeOtherObject throws "[ERROR] Not allowed in an HTML 
> context:"
>
> I am puzzled because the following configurations work and the above 
> should be a combination of both:
> 
>
> 
> 
> 
> 
>
> I have not worked much with html directly inside UiBinder and I don't know 
> if my configuration is even possible, so I hope someone can clarify.
>
> Thank you for the help,
> Andrei
>

-- 
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Mixing Html and Widgets in UiBinder

2015-09-22 Thread Andrei Preda
I tried to figure this out for some time now and I hope someone can help me 
to figure this out, because I have no idea what I am missing.

I'm using Gwt 2.7 and I want to mix html and my own widgets inside the 
UiBinder as following:


   
   
   



In this case SomeOtherObject throws "[ERROR] Not allowed in an HTML 
context:"

I am puzzled because the following configurations work and the above should 
be a combination of both:

   





I have not worked much with html directly inside UiBinder and I don't know 
if my configuration is even possible, so I hope someone can clarify.

Thank you for the help,
Andrei

-- 
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Material Design

2015-03-29 Thread Andrei
RPC is not a good idea for mobile apps. Every change in your code may 
result in an incompatible serialization policy. This is not a problem for 
regular web apps - a user can load a new version by simply refreshing a 
page. It's more of an issue if an app is installed on a mobile device - not 
all users will update their apps at the same time, so you will have to run 
multiple versions in parallel to keep serialization policies in sync. A 
better option is to use a REST API which can often be extended without a 
need for a mandatory update of all clients.

On Saturday, March 28, 2015 at 4:29:33 PM UTC-4, mark kevin ringor wrote:

 GWT Phonegap also is added in the repository. You can check it out and 
 play with as Im studying the RPC mechanism of GWT inside phonegap.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT compile times between 2.6.0 2.7.0

2015-01-25 Thread Andrei
I have a large GWT module - total compile time is 10 minutes (20 permutations). 
When I launch the SDM, the initial compile time is 15-20 seconds. I do it once 
or twice per day. Incremental changes take 2-3 seconds. This is definitely not 
a productivity drag.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible for onModuleLoad to be called before DOMContentLoad?

2014-12-12 Thread Andrei Korzhevskii
Override CrossSiteIframeLinker's getJsWaitForBodyLoaded() method to return 
waitForBodyLoadedNull.js 

On Friday, December 12, 2014 11:20:17 PM UTC+3, pgi...@gmail.com wrote:

 The use case is when a GWT module is only exporting javascript functions.

 On a complex page, I have noticed a several second delay in the triggering 
 of onModuleLoad from when the selection script is actually downloaded.  My 
 understanding
 is that this seems to be a consequence of waiting for DOMContentLoad to 
 trigger.

 However, since this particular module is not going to be interacting with 
 the page at all, I would rather not pay the price of waiting if possible.

 Is there a way that onModuleLoad can be triggered earlier?

 If there are other things I should be considering in order to make this 
 use case performant, I would be interested in hearing about those as well.

 Thanks,
 Pete Gieser



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Logging not working anymore in GWT 2.7.0 RC

2014-11-20 Thread Andrei Korzhevskii
GWT 2.7 changed property value gwt.logging.enabled from TRUE to 
SEVERE (in Logging.gwt.xml) so by default app logs errors only.
To get back to pre-2.7 logging behavior, set this property to TRUE or 
WARNING (if you want to log warnings and errors).

On Thursday, November 20, 2014 12:15:16 PM UTC+3, Jan Thewes wrote:

 Hey guys,

 we've a problem with logging since testing GWT 2.7.
 We're using java.util.Logger() and with 2.7 any message trying to be 
 logged with WARN or lower doesn't end up in the browser console.

 What I found out is that my Logger.info(String message) call is thrown 
 away by the GWT compiler?
 Why does this happen?

 What do I have to do to  get the old behavior?

 Cheers,
 Jan


-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/bc407279-a9b3-4434-a970-bd0e71859338%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Logging properties and classes

2014-09-30 Thread Andrei Korzhevskii
I don't think that removing FirebugLogHandler and NullLoggingPopup should 
be a problem for anyone, hardly anyone used that.
Can you post exact error output here?


On Tuesday, September 30, 2014 1:28:12 PM UTC+4, Luca wrote:

 Well, not really a bit...

 Being a 2.x I would expect not to have API compatibility broken, and also 
 if is not really a problem for my own code (some hours of work), I use some 
 external framework that I don't control.

 I think I cannot upgrade.

 Il giorno martedì 30 settembre 2014 11:18:30 UTC+2, Jens ha scritto:

 GWT 2.7 cleaned up logging a bit so you or any library that does more 
 than just inheriting Logging.gwt.xml would need to check its configuration 
 and maybe update it a bit when upgrading to 2.7.

 In general FirebugLogHandler and NullLoggingPopup classes have been 
 removed and the corresponding GWT properties as well.

 -- J.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Logging properties and classes

2014-09-30 Thread Andrei Korzhevskii
Thanks for response!
Is it the only error you experience in gwt 2.7.0-snapshot?
Would you mind posting an issue 
to https://code.google.com/p/google-web-toolkit/issues/list ?

On Tuesday, September 30, 2014 2:11:18 PM UTC+4, Luca wrote:

 Sure, updated snapshots and mvn install:

 [INFO] --- gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default) @  ---
 [INFO] auto discovered modules 
 [INFO] Loading inherited module 'x'
 [INFO]Loading inherited module 'org.jboss.errai.common.ErraiCommon'
 [INFO]   Loading inherited module 'org.jboss.errai.common.Logging'
 [INFO]  [ERROR] Line 7: Property 'gwt.logging.popupHandler' not 
 found

 As you can see the property is not defined, I think that 2.7 should be 
 retro-compatible.


 Il giorno martedì 30 settembre 2014 11:38:26 UTC+2, Andrei Korzhevskii ha 
 scritto:

 I don't think that removing FirebugLogHandler and NullLoggingPopup should 
 be a problem for anyone, hardly anyone used that.
 Can you post exact error output here?


 On Tuesday, September 30, 2014 1:28:12 PM UTC+4, Luca wrote:

 Well, not really a bit...

 Being a 2.x I would expect not to have API compatibility broken, and 
 also if is not really a problem for my own code (some hours of work), I use 
 some external framework that I don't control.

 I think I cannot upgrade.

 Il giorno martedì 30 settembre 2014 11:18:30 UTC+2, Jens ha scritto:

 GWT 2.7 cleaned up logging a bit so you or any library that does more 
 than just inheriting Logging.gwt.xml would need to check its configuration 
 and maybe update it a bit when upgrading to 2.7.

 In general FirebugLogHandler and NullLoggingPopup classes have been 
 removed and the corresponding GWT properties as well.

 -- J.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Sluggish Gerrit

2014-08-27 Thread Andrei Korzhevskii
Hi all,

Currently I'm experiencing very slow work of Gerrit (since yesterday) to 
the extent that I cannot work with it effectively.
Does anyone else have the same problem with it?
I've tried to connect to it from different locations and vpn and the speed 
of gerrit is low everywhere.

Thanks,
Andrei

-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/bfc2c750-9bb9-4952-b59c-685681dd2076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Sluggish Gerrit

2014-08-27 Thread Andrei Korzhevskii
It's alive! Thank you, Daniel.

On Wednesday, August 27, 2014 6:57:56 PM UTC+4, Daniel Kurka wrote:

 This should be resolved now.




-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/1156d111-251f-4f63-ba87-4a6ef3005cfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: JSNI function not called in Chrome

2014-08-08 Thread Andrei Korzhevskii
Just wrap your entire function with $entry, no function call.

public native void setCallDrillReport(ReportPanel rep)/*-{
 $wnd.callReport = $entry(function (url) {
rep.@packageToMyClass.Classname::triggerDrillReport(Ljava/lang/String;) 
(url);
});

}-*/;

On Friday, August 8, 2014 2:39:05 PM UTC+4, Rainer Sprünken wrote:

 Hi,

 I have developed a gwt application which uses jsni-function to trigger 
 some Birt-Reports. 

 JSNI function is definied as follows:

 public native void setCallDrillReport(ReportPanel rep)/*-{
  $wnd.callReport = function (url) {
 $entry(rep.@packageToMyClass.Classname::triggerDrillReport(Ljava/lang/String;)
  
 (url));
 };

 }-*/;

 The javascript call from Birt Report looks as follows:

 a href=javascript:callReport('Parameter1 = x...'); target=_top 
 title=Reporttitle/a

 The call to the jsni method works well in all tested browsers but Google 
 Chrome. Does anybody know where the problem could be?

 Thanks and regards Rainer


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox incorrect time past certain dates

2014-07-17 Thread Andrei
The only solution is to ask a user to pick his time zone during the 
setup/onboarding process. Users move around, so even their browser time 
zone may not necessarily reflect their intentions when it comes to using 
your app.

You may, however, detect a browser time zone as a default setting:

https://bitbucket.org/pellepim/jstimezonedetect/wiki/Home


On Thursday, July 17, 2014 9:20:24 AM UTC-4, William Davis wrote:
 

 It works, but I have to know what time zone I am in and since my 
 application can be used world wide, this is not an option to have a fixed 
 time zone in this manner.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Best way to style a web app in diffrent ways

2014-06-27 Thread Andrei
Take a look at my solution (answer under my name). It's simple and works 
beautifully:

http://stackoverflow.com/questions/7960685/allow-different-gwt-visual-themes-for-different-users/24455939#24455939


On Wednesday, June 25, 2014 8:12:16 AM UTC-4, Dominic Warzok wrote:

 Hi Guys. 

 I try to writa a web app where it is possible to give diffrent styles to 
 them. 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: gwt-2.6.0-rc1 can't compile guava-gwt

2014-06-14 Thread Andrei Cojocaru
Hi guys,

upgrading guava definitely solves the problem. I was using guava 14.0.1 and 
GWT 2.5.1. I upgraded to GWT 2.6.1 and encountered that same problem. 
Afterwards I upgraded to guava 17.0 and everything is going fine. Cheers!

On Friday, November 8, 2013 10:01:01 PM UTC+2, Michael Hirsch wrote:

 When I compile my app with gwt-2.6.0-rc1, I get complaints about guava-gwt:
  [ERROR] Errors in 
 'jar:file:/home/mhirsch/.gradle/caches/artifacts-24/filestore/com.google.guava/guava-gwt/14.0.1/jar/de1f56fc5149d9e80c0e5107493370db2fa2d5e9/guava-gwt-14.0.1.jar!/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java'
  [ERROR] Line 112: Name clash: The method copyOf(Map? extends K,? 
 extends V) of type ImmutableSortedMapK,V has the same erasure as 
 copyOf(Map? extends K,? extends V) of type ImmutableMapK,V but does not 
 hide it
   [ERROR] Errors in 
 'jar:file:/home/mhirsch/.gradle/caches/artifacts-24/filestore/com.google.guava/guava-gwt/14.0.1/jar/de1f56fc5149d9e80c0e5107493370db2fa2d5e9/guava-gwt-14.0.1.jar!/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java'
  [ERROR] Line 140: Name clash: The method copyOf(Collection? 
 extends E) of type ImmutableSortedSetE has the same erasure as 
 copyOf(Collection? extends E) of type ImmutableSetE but does not hide it
  [ERROR] Line 145: Name clash: The method copyOf(Iterable? 
 extends E) of type ImmutableSortedSetE has the same erasure as 
 copyOf(Iterable? extends E) of type ImmutableSetE but does not hide it
  [ERROR] Line 150: Name clash: The method copyOf(Iterator? 
 extends E) of type ImmutableSortedSetE has the same erasure as 
 copyOf(Iterator? extends E) of type ImmutableSetE but does not hide it

 I'm not sure if I can use guava 15.  Errai pulls in version 14, I think.

 Michael
  


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.4 timezone issue

2014-06-06 Thread Andrei
Date object does not have a time zone information. You see a time zone when 
you print/display the date object, and the machine is using its own time 
zone by default.

I save all dates in the datastore as Long values: date.getTime(). When I 
need to display a date in a browser, I pass the GWT TimeZone object. For 
example,


private static DateTimeFormat format = 
DateTimeFormat.getFormat(PredefinedFormat.DATE_MEDIUM); 

public void setDate(Long date, TimeZone timeZone) { 
setValue(date == null ? null : format.format(new Date(date), 
timeZone)); 
}

You can read more about GWT TimeZone here:

http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/TimeZone.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Textbox Does Not Display Correctly When Using Chrome

2014-04-06 Thread Andrei
Your problems are not related to GWT. It may be something very basic, like a 
font or a font size not being set in your CSS, or a font not being available in 
one of the browsers.

Check which CSS styles are applied to your elements in each browser.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


offsetheight not changing in button when fontsize is changed

2014-04-06 Thread Andrei
The button height will not change with the font size unless you change the 
line-height property as well.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT and SVG, the 125th... :-)

2014-02-26 Thread Andrei
If this script is central to your application, you can simply include it in 
your host page. Then you can access it from your GWT code.

If this script is used only under certain conditions, you can inject it when 
necessary using a ScriptInjector.

Both approaches work well.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Compile time with a large project

2014-02-05 Thread Andrei
Splitting one project into several projects will dramatically increase the 
compilation time and the total size of your code. There will be a lot of 
duplicate work for GWT to do on each project, and each project will have to 
import a lot of the same classes.

I would only recommend splitting out a project if you have a very distinct 
use case (i.e. Admin app that very few users are allowed to access, or 
Setup add that is required only for new users, etc.), and if you rarely 
make changes to it. Then it will mostly compile the main project, and it 
will be slightly faster.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Textbox width according to the characters present in the textbox.

2013-12-17 Thread Andrei
You can only approximate.

(1) Users may not have a specified font. Browsers will try to substitute 
this font, and the width of characters maybe different for a substitute 
font.

(2) Users can zoom in or out, changing the font size from the one you set.


I need to set the size of the text box according to the length of the text 
 inside that box, it may contain localized characters like Chinese. Is any 
 we can calculate the length in pixels for this?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Reminder: GWT 2.6 feature complete is Nov 4

2013-10-18 Thread Andrei Korzhevskii
Hi,

I really like to see following issues reviewed. 
All of them have proposed patches.
As for now, I have to implement workarounds in my projects.

Elemental json works not properly in super dev mode:
https://code.google.com/p/google-web-toolkit/issues/detail?id=8306

MapFromStringTo.values() throws exception:
https://code.google.com/p/google-web-toolkit/issues/detail?id=7655https://code.google.com/p/google-web-toolkit/issues/detail?id=7655can=5colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars

Support for NavigableMap/NavigableSet:
https://code.google.com/p/google-web-toolkit/issues/detail?id=4236https://code.google.com/p/google-web-toolkit/issues/detail?id=4236q=navigablemapcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars





-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Reminder: GWT 2.6 feature complete is Nov 4

2013-10-18 Thread Andrei Korzhevskii
Hi,

I really like to see following issues reviewed. 
All of them have proposed patches.
As for now, I have to implement workarounds in my projects.

Elemental json works not properly in super dev mode:
https://code.google.com/p/google-web-toolkit/issues/detail?id=8306

MapFromStringTo.values() throws exception:
https://code.google.com/p/google-web-toolkit/issues/detail?id=7655https://code.google.com/p/google-web-toolkit/issues/detail?id=7655can=5colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars

Support for NavigableMap/NavigableSet:
https://code.google.com/p/google-web-toolkit/issues/detail?id=4236https://code.google.com/p/google-web-toolkit/issues/detail?id=4236q=navigablemapcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars

Thanks

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: IE10 support in Gwt

2013-09-01 Thread Andrei
RE: I ran into an issue with GWT cellTables and cellTrees using IE 10. When 
hovering over a row we used hovering styling for that row which worked fine.

Why don't you use CSS for styling (like tr:hover) instead of relying on widgets 
firing events? IE10 handles them just like other browsers.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Fast implementation of Design displays with GWT?

2013-06-10 Thread Andrei
On Friday, June 7, 2013 9:39:58 AM UTC-4, Ed wrote:

 The gwt dev developer roughly implements the styles, shows/gives it to the 
 designer and the designer uses some kind of tool/browser-plugin to make 
 changes and report the changes back to the developer... But how ??..


In my opinion, this is the worst possible workflow. There is no such thing 
as roughly implements styles if you know web design. The process *starts* 
with 
the designer creating all styles: overall layout, standard panel sizes, 
standard margins and paddings, font sizes, heights and width of input 
elements, etc. Only after that a developer should start building the views.

For example, I use 24px as the basic grid unit. So I have a medium panel 
which is 240px wide (10 units), and a large panel which is 504px wide 
(21units, which means it fits two medium panels with a 1 unit gap between 
them).  All other widgets are set to fit one of these standard panels. All 
my panels, used for layouts, have a padding of 0 at the top and 24px on the 
other  three sides; and all headers or field labels have a top margin of 
24px. All inputs are reset to have the same height. Now, when I need to 
build a view, I simply choose the panel of the appropriate size, and throw 
headers, labels and various inputs in it in the right order: and suddenly I 
have a beautiful form where everything is perfectly aligned. There is no 
need to apply any styles to the widgets within the panel, or to set any 
sizes: my CSS file does all the work, and it does it consistently 
throughout the entire application. And I almost never have to test changes 
and new features in different browsers: there are a lot of cross-browser 
quirks (like the height of a select element or the width of a scrollbar), 
but a good designer should know how to take care of them in the same single 
CSS file.

I do not use CssResources. I tried, but I found them to be more or less 
useless. CSS is built around inheritance. With the correct design process, 
the same styles are applied across the entire app. Even in those rare cases 
when a widget does have unique styles (e.g. DatePicker), I don't see a 
point in creating a separate file for them: it's much harder to ensure 
consistency in styles when styles are defined in a dozen files across the 
app.

I believe this approach is the most time efficient. A good designer can 
create a complete CSS file for an app within a few days, and the developers 
don't have to think about styles - they only decide which widgets to use 
and in what order. You will be amazed to see how more productive your 
developers become if you give them a professionally built theme and teach 
them how to use it. With a good theme it takes me less time to build a 
working view in GWT, then to draw the same view in Photoshop - and I am 
very good with Photoshop.

Unfortunately, this custom CSS file will clash with the GWT's standard 
theme, and a good designer will go crazy fighting with it. Standard GWT 
themes are not pretty, and more importantly, they are not consistent. For 
example, if you use a standard CellTable or DataGrid, headers are off by 
2px from column's content. This is not a mistake per se - these 2px are 
used for a border within a cell and change color with the row/cell 
selection, but a good designer would have adjusted paddings within the th 
element to compensate for these 2px. There are many other examples.

To summarize, there is only one viable option: hire a very good designer. 
If your designer is exceptionally good, he or she can build you a custom 
theme for the entire app in pure GWT. Sometimes you need two people - an 
artist to create a pretty design and a web designer who can build a good 
quality CSS that efficiently implements this pretty design. Otherwise, use 
a component library like Sencha or GWT-Bootstrap, which greatly reduces the 
amount of work your designer needs to do.

Andrei


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Still problems with com.google.gwt.core.client.GWTBridge

2013-06-05 Thread Andrei Costescu
I see this happening in 2.5.1 as well.
(I used the fix jar in 2.5.0  - I'll keep using it in 2.5.1)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: RichTextArea HTML how to dynamically style anchor elements?

2013-05-17 Thread Andrei
RichTextArea creates its own Document. You need to inject a CSS into it 
with the styles that you want. For example:

public MyRichTextArea() { 
addInitializeHandler(new InitializeHandler() {
@Override
public void onInitialize(InitializeEvent ie) { 
Document document = 
IFrameElement.as(getElement()).getContentDocument(); 
BodyElement body = document.getBody(); 
HeadElement head = 
HeadElement.as(Element.as(body.getPreviousSibling())); 
LinkElement styleLink = document.createLinkElement(); 
styleLink.setType(text/css); 
styleLink.setRel(stylesheet); 
styleLink.setHref(MyRichTextArea.css); 
head.appendChild(styleLink); 
} 
}); 
}

If you want to change styles dynamically, you will have to find every a 
element in this document (within the RichTextArea element) and add a style 
to it.

On Thursday, May 16, 2013 5:39:55 PM UTC-4, dhoffer wrote:

 How can I dynamically change the color for links anywhere in RichTextArea 
  HTML elements?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot change Label background colors on hover using css.

2013-05-17 Thread Andrei
Try

background-color: #EEE !important;

If it works, it means some other style interferes with your 
.NFRFP-ClickableLabel class.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: right-to-left

2013-05-17 Thread Andrei
If you set positions in absolute numbers (LayoutPanel), these positions 
will not change when you switch the locale.

Are you using one of standard GWT themes? They come with a RTL version. If 
you add your own styles, however, you have to create RTL versions of these 
styles yourself.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: CSS

2013-05-16 Thread Andrei
In a well designed app, there are no widget-specific styles. None. Every margin 
/ padding / color / size / border , etc., should be defined by a designer at 
the application level. I can't think of any style that developers should be 
allowed to set as they wish. It makes it much easier to build beautiful, 
professionally designed apps, that can be:
* easily themed
* adjust to various screen sizes gracefully
* support multiple font sizes (CTRL +/- in every browser) and UI languages
* look correctly in all browsers.

In my GWT app users can change the theme of the app with a single click. The 
app does not reload, but it immediately looks very different - including the 
color of rows in every DataGrid! This implementation requires 1 line of code. 
Can you beat that with a ClientBundle? All the magic is done by a designer in 
an external CSS file. I can add custom themes for premium customers by 
injecting a different CSS file at run time, without touching any GWT code at 
all.

This also means that I never have to recompile the app when I make style 
changes. I also develop faster: when I add a new widget, it always looks right 
and it aligns perfectly with the other widgets in the same view. I don't have 
to decide its size or margins - they are handled by CSS. The only exception are 
LayoutPanels, where I have to set positions explicitly.

To achieve all this, I had to merge GWT's standard theme with my own CSS file 
and externalize all DataGrid styles. I eliminated over 1,000 lines of CSS in 
the process, and by doing so I eliminated the conflicts they have been causing 
and made it much easier to maintain the app going forward.

CSS is built around inheritance. If you create separate resources for each 
widget, or inline styles in widgets, or obfuscate styles at a widget level, you 
inevitably write much more CSS then necessary. Redundant code is always bad, 
but in this case it also greatly increases the possibility of inconsistencies 
and rule conflicts. I don't know any professional web designer who advocates 
inlining of styles or using multiple CSS files.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT , Highcharts not working

2013-04-05 Thread Andrei-Stefan Ifrim
On a first view JQuery is also needed. 
take a look at step 
3 http://www.moxiegroup.com/moxieapps/gwt-highcharts/quickstart.jsp

script type=text/javascript 
   src=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js; 
/script
script type=text/javascript src=js/highcharts.js/script

I also got this exception, but in my case it was caused by the fact that 
this js files were not placed in the head of the HTML file.

Best regards!

marți, 24 ianuarie 2012, 21:24:16 UTC+2, junaidp a scris:

 I am trying to run a simple High chart in my GWT Application but getting 
 this error

  '$wnd.Highcharts' is null or not an object

 my OnModule

  public void onModuleLoad() {
   RootPanel.get().add(createChart());  
 }  

 public Chart createChart() {  

 Chart chart = new Chart()
.setType(Series.Type.SPLINE)
.setChartTitleText(Lawn Tunnels)
.setMarginRight(10);
 Series series = chart.createSeries()
.setName(Moles per Yard)
.setPoints(new Number[] { 163, 203, 276, 408, 547, 729, 628 });
 chart.addSeries(series);
 return chart;  
 }  

 }

 my xml

  !-- Inherit the core Web Toolkit stuff.--
 inherits name='com.google.gwt.user.User'/
inherits name=org.moxieapps.gwt.highcharts.Highcharts/

 my HTML

/script
 script type=text/javascript src=js/highcharts.js/script
 script type=text/javascript src=js/themes/dark-blue.js/script
  script type=text/javascript src=js/modules/exporting.js/script

 /script

  included this jar file in my classpath

  org.moxieapps.gwt.highcharts-1.1.3.jar

 Any suggestion

 Thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to make EditTextCell fit the whole width of cellWidth?

2013-02-07 Thread Andrei
Use CSS:

.myCellTable input[type=text], .myCellTable select { 
width: 100%; 
box-sizing: border-box; 
-moz-box-sizing: border-box; 
-webkit-box-sizing: border-box; 
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to override the Template interface in EditTextCell?

2013-02-07 Thread Andrei
Use CSS.


On Wednesday, February 6, 2013 9:22:36 AM UTC-5, membersound wrote:

 Hi,

 I like the EditTextCell, but I want to override the template interface to 
 give the text in the input field eg a different aligment.

 How can I override the interface Template when extending EditTextCell?

 If not possible, what could I do apart from copying the whole EditTextCell 
 and modify to my needs?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT application runtime memory size is too large (client side)

2013-01-02 Thread Andrei
Do you use code-splitting? Do you use Activities and Places design pattern? 
Do you use i18n, and if you do, dynamic or static? Is there a lot of text 
in some views? Do you use CellTable or DataGrid widgets, and if you do, how 
much data is displayed in each of them? Do you have complex views with 
multiple nested panels (i.e. VerticalPanel inside HorizontalPanel, etc.)?
 
You gave us very little information about your app. There are many ways to 
optimize memory use.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/H2UsLK5IOiUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DataGrid, how to show multiline content in its cells?

2012-12-31 Thread Andrei
It should be text-overflow, not test-overflow.

On Sunday, December 30, 2012 10:31:41 PM UTC-5, tong123123 wrote:

 Ok, I found remove

 white-space:nowrap;

 then it can show multiline.

 but I found something unknown, if I use

 white-space:nowrap;
 overflow:hidden;
 test-overflow:ellipsis;

 I expect the overflow text will show as ellipsis, but not, the overflow 
 text is just truncated!!



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/94LBCAh0gvAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread Andrei
I think you have wrong definitions of gradients, so browsers just ignore 
them. You don't need literal for non-IE browsers. Google a CSS gradient 
maker and use its output - I never had problems with gradients. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zPpKiWQ-j4YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to show horizontal scrollbar in scrollpanel automatically?

2012-12-19 Thread Andrei
Remove white-space: nowrap; and text-overflow: ellipsis rules that are 
applied to your scroll panel.
 
I recommend asking such questions on SO. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/J3QMGoARNhoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to show horizontal scrollbar in scrollpanel automatically?

2012-12-18 Thread Andrei
This is not a standard behavior. You must have a CSS style applied to your 
scroll panel or its content which resets overflow property. It should be 
overflow:auto. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NX1QhsV7i84J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How can I add context menu to RichTextArea?

2012-11-09 Thread Andrei
Try this:

http://stackoverflow.com/questions/1613658/gwt-context-menu-in-richtextarea

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YfLxkGcmTYUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



UIBinder - CellTableT - how to specify T?

2012-10-21 Thread Andrei
Why do you to specify type in Ui:Binder? You simply tell Ui:Binder this is 
where my cell table will be. You can set a style, specify size, even set some 
additional parameters, but there is no need to specify a type in Ui:Binder.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bSyMRLSYIAUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



UIBinder - CellTableT - how to specify T?

2012-10-21 Thread Andrei
I should have mentioned that in your view you do:

@UiField CellTableT myTable;

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9-XhFQgPMB8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Grid with td rowspan=2

2012-10-16 Thread Andrei
Each row in a CellTable or DataGrid represents an object. If you create a 
cell with rowspan=2, it would break all the logic. At this point you will 
have to build your own custom table from scratch, including your own 
DataProvider, SelectionModel, SortHandler, etc.

Why do you need it? I am trying to imagine a use case, but it's a very rare 
design approach - for a reason.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/M8jc5gN9hgQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



TextInputCell: Tab not working properly in IE9

2012-10-15 Thread Andrei
Try setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dxb9XhmIm3QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to add scroll vertically in celltable?

2012-10-14 Thread Andrei
Use DataGrid instead of CellTable.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/EkOsA-Bj7z4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DeckPanel - aligning objects from top

2012-10-13 Thread Andrei
Replace VerticalPanel with FlowPanel. Then use CSS to set margins on your 
buttons, if necessary.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/sh99MHtc_FEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



  1   2   3   >