Re: Gwt maven archetypes

2017-05-04 Thread nikola
You are right.. This can be ignored. 

Actually, real problem that I had is that after login I couldn't see main 
screen with text box and button that says hello to server.

I debugged and found that problem is with User interface.

When calling* user.getUserName() *browser throws this exception:

Uncaught Error: com.google.web.bindery.event.shared.UmbrellaException: 
Exception caught: (TypeError) : user_0_g$.getUserName is not a function

To fix this I had to add *@JsProperty* to interface methods which is 
properly translated to javascript *user.userName* instead of calling a 
function.

this is the fix:

import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true)
public interface User {
@JsProperty
String getUserName();

@JsProperty
boolean isAdmin();
}



On Thursday, May 4, 2017 at 6:43:10 PM UTC+2, Thomas Broyer wrote:
>
>
>
> On Thursday, May 4, 2017 at 6:34:21 PM UTC+2, nikola wrote:
>>
>> Hi all,
>>
>> I tried to generate project from *dagger-guice-rf-activities *as 
>> described here  but 
>> when I tried to run it I am getting this error. 
>>
>> Any idea what is happening ?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> INFO: Starting service Tomcat
>>
>> May 04, 2017 4:38:21 PM org.apache.catalina.core.StandardEngine 
>> startInternal
>>
>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
>>
>> May 04, 2017 4:38:23 PM com.google.web.bindery.requestfactory.server.
>> ReflectiveServiceLayer 
>>
>> INFO: Unable to initialize a JSR 303 Bean Validator
>>
>> javax.validation.ValidationException: Unable to find a default provider
>>
>
> It's not an error, it's an information.
>
> The archetype does not make use of JSR 303 Bean Validation, but 
> RequestFactory looks for a validator anyway and emits this message.
> You can configure logging (java.util.logging) to get rid of the message, 
> or if you intend to use Hibernate Validator (is there any other JSR 303 
> implementation out there?) then the message will go away as soon as you add 
> the dependency. 
>

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


Re: GWT 2.8.1 release

2017-05-04 Thread Bogdan Petridean
Great!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+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: new GWT Platform Errai by JBoss ! what do you think ?

2017-05-04 Thread Олег Рачаев
IMHO.

One black box inside the other. I don't think it's a good idea. Even pure 
GWT is very difficult to know what to say about the framework is built on 
the basis of the 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.


Re: Gwt maven archetypes

2017-05-04 Thread Thomas Broyer


On Thursday, May 4, 2017 at 6:34:21 PM UTC+2, nikola wrote:
>
> Hi all,
>
> I tried to generate project from *dagger-guice-rf-activities *as 
> described here  but 
> when I tried to run it I am getting this error. 
>
> Any idea what is happening ?
>
>
>
>
>
>
>
>
>
>
> INFO: Starting service Tomcat
>
> May 04, 2017 4:38:21 PM org.apache.catalina.core.StandardEngine 
> startInternal
>
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
>
> May 04, 2017 4:38:23 PM com.google.web.bindery.requestfactory.server.
> ReflectiveServiceLayer 
>
> INFO: Unable to initialize a JSR 303 Bean Validator
>
> javax.validation.ValidationException: Unable to find a default provider
>

It's not an error, it's an information.

The archetype does not make use of JSR 303 Bean Validation, but 
RequestFactory looks for a validator anyway and emits this message.
You can configure logging (java.util.logging) to get rid of the message, or 
if you intend to use Hibernate Validator (is there any other JSR 303 
implementation out there?) then the message will go away as soon as you add 
the dependency. 

-- 
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 maven archetypes

2017-05-04 Thread nikola
Hi all,

I tried to generate project from *dagger-guice-rf-activities *as described 
here  but when I tried to 
run it I am getting this error. 

Any idea what is happening ?










INFO: Starting service Tomcat

May 04, 2017 4:38:21 PM org.apache.catalina.core.StandardEngine 
startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.47

May 04, 2017 4:38:23 PM com.google.web.bindery.requestfactory.server.
ReflectiveServiceLayer 

INFO: Unable to initialize a JSR 303 Bean Validator

javax.validation.ValidationException: Unable to find a default provider

at javax.validation.Validation$GenericBootstrapImpl.configure(
Validation.java:264)

at javax.validation.Validation.buildDefaultValidatorFactory(
Validation.java:111)

at com.google.web.bindery.requestfactory.server.
ReflectiveServiceLayer.(ReflectiveServiceLayer.java:60)

at com.google.web.bindery.requestfactory.server.ServiceLayer.create(
ServiceLayer.java:75)

at com.google.web.bindery.requestfactory.server.
RequestFactoryServlet.(RequestFactoryServlet.java:105)

at tt.GuiceRequestFactoryServlet.(GuiceRequestFactoryServlet.
java:14)

at tt.GuiceRequestFactoryServlet$$FastClassByGuice$$93f563bb.
newInstance()

at com.google.inject.internal.
DefaultConstructionProxyFactory$FastClassProxy.newInstance(
DefaultConstructionProxyFactory.java:89)

at com.google.inject.internal.ConstructorInjector.provision(
ConstructorInjector.java:111)

at com.google.inject.internal.ConstructorInjector.construct(
ConstructorInjector.java:90)

at com.google.inject.internal.ConstructorBindingImpl$Factory.get(
ConstructorBindingImpl.java:268)

at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.
call(ProviderToInternalFactoryAdapter.java:46)

at com.google.inject.internal.InjectorImpl.callInContext(
InjectorImpl.java:1092)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(
ProviderToInternalFactoryAdapter.java:40)

at com.google.inject.internal.SingletonScope$1.get(SingletonScope.
java:194)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(
InternalFactoryToProviderAdapter.java:41)

at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.
java:1019)

at com.google.inject.internal.InjectorImpl.callInContext(
InjectorImpl.java:1085)

at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:
1015)

at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.
java:1050)

at com.google.inject.servlet.ServletDefinition.init(
ServletDefinition.java:111)

at com.google.inject.servlet.ManagedServletPipeline.init(
ManagedServletPipeline.java:82)

at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(
ManagedFilterPipeline.java:103)

at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:226)

at org.apache.catalina.core.ApplicationFilterConfig.initFilter(
ApplicationFilterConfig.java:281)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:262)

at org.apache.catalina.core.ApplicationFilterConfig.(
ApplicationFilterConfig.java:107)

at org.apache.catalina.core.StandardContext.filterStart(
StandardContext.java:4775)

at org.apache.catalina.core.StandardContext.startInternal(
StandardContext.java:5452)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
150)

at org.apache.catalina.core.ContainerBase$StartChild.call(
ContainerBase.java:1559)

at org.apache.catalina.core.ContainerBase$StartChild.call(
ContainerBase.java:1549)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)




-- 
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: Loading only relevant shared code in an html page.

2017-05-04 Thread Thomas Broyer
You have 2 possibilities (that I haven't explored personally, so I couldn't 
comment on the pros on cons)

   - use a single entry-point (single module), and use code splitting 
   (GWT.runAsync) to only load what's needed (and probably a bit more that'd 
   happen to be shared with other pieces of code; in so-called "leftover" 
   chunks); shared code between "pages" will then really be shared (at the 
   HTTP/caching level)
   - use one entry-point (one module) per "page"; code shared between 
   several modules will be included (duplicated) in each generate script 
   though, with absolutely no sharing. And yes you can have as many as you 
   like. I'm not aware of any limitation in the GWT Eclipse Plugin, and even 
   if there was, I'd highly recommend using a build tool (Gradle, Maven, Ant, 
   or even Make if you like) that will *not* have any limitation (or at least 
   whose limitations could be worked-around). Actually, the thing you'll have 
   to balance will be between running the GWT compiler once with all the 
   modules in argument vs. once per module, I'd say *a priori* a balance 
   between memory and time.

Unfortunately, GWT 2.x cannot have the best of both worlds (one "entry 
point script" per page, with code-sharing between modules) like, say, 
Webpack can do.
(see 
PRPL https://developers.google.com/web/fundamentals/performance/prpl-pattern/ 
, Webpack entry-points 
https://webpack.js.org/concepts/entry-points/#multi-page-application and 
CommonsChunkPlugin https://webpack.js.org/plugins/commons-chunk-plugin/ )

On Thursday, May 4, 2017 at 1:23:31 PM UTC+2, NxS wrote:
>
> Hello,
>
> I'm a GWT newbie.
>
> 1. Is it possible to load only a subset of a module's shared code in an 
> html page, declaratively or otherwise? 
>
> Use-case: I may have a lot of shared code in my overall application, not 
> all of which may be relevant to every single html page (of my overall 
> application). So, I'd like to be able to load only select portions of the 
> shared code in a given html page, ignoring portions of it not used by the 
> page.
>
> 2. If the above is not possible, then... Is it possible to have multiple 
> modules in a single Eclipse project, using either the Eclipse IDE or the 
> webAppCreator command-line tool? 
>
> The idea is this: 
>
> IF I have a total of 1 methods in my overall application's shared 
> code, 
> AND 
> IF I have 100 pages each requiring 100 methods only (on average),
> THEN, I wouldn't want to create 100 different Eclipse projects for these 
> 100 modules (consisting of 100 functions each) when a single Eclipse 
> project could well do the job.
>
> Thanks and regards,
> NxS
>
> PS: When I say "load" above, I mean loading of the code by the browser, 
> generating a proportional amount of network traffic.
>

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


Loading only relevant shared code in an html page.

2017-05-04 Thread NxS
Hello,

I'm a GWT newbie.

1. Is it possible to load only a subset of a module's shared code in an 
html page, declaratively or otherwise? 

Use-case: I may have a lot of shared code in my overall application, not 
all of which may be relevant to every single html page (of my overall 
application). So, I'd like to be able to load only select portions of the 
shared code in a given html page, ignoring portions of it not used by the 
page.

2. If the above is not possible, then... Is it possible to have multiple 
modules in a single Eclipse project, using either the Eclipse IDE or the 
webAppCreator command-line tool? 

The idea is this: 

IF I have a total of 1 methods in my overall application's shared code, 
AND 
IF I have 100 pages each requiring 100 methods only (on average),
THEN, I wouldn't want to create 100 different Eclipse projects for these 
100 modules (consisting of 100 functions each) when a single Eclipse 
project could well do the job.

Thanks and regards,
NxS

PS: When I say "load" above, I mean loading of the code by the browser, 
generating a proportional amount of network traffic.

-- 
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 parse xml to server and on client get data from server in table

2017-05-04 Thread LifeSecrets
GWT parse xml to server and on client get data from server in table - help 
me pls

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