Re: GWT-apps and OAuth 2.0

2021-03-03 Thread Luca Morettoni
is there a maven package with that patch or you have included directly the 
source code?
Thanks!

> On 3 Mar 2021, at 13:42, Michael Conrad  wrote:
> 
> Yes.
> 
> I had to apply a fix to the code for inter-window communications.
> 


--
Luca Morettoni  | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/A55646C2-F8EC-41CC-8E37-038F0EE8268A%40morettoni.net.


Re: GWT-apps and OAuth 2.0

2021-03-03 Thread Luca Morettoni
seems forked from the one I posted… 

> On 2 Mar 2021, at 19:18, Michael Conrad  wrote:
> 
> I'm using a version of gwt-oauth2 for Google OAUTH logins in this project: 
> https://github.com/CherokeeLanguage/AudioQualityVote 
> <https://github.com/CherokeeLanguage/AudioQualityVote>.
> 
> The version of gwt-oauth2 I'm using is at: 
> https://github.com/CherokeeLanguage/gwt-oauth2 
> <https://github.com/CherokeeLanguage/gwt-oauth2>

--
Luca Morettoni  | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/FF1B76C6-C286-47BA-AB9B-9B9848909238%40morettoni.net.


GWT-apps and OAuth 2.0

2021-03-02 Thread Luca Morettoni
Hello, I have a quite old application that actually uses an internal 
implementation to manage the user access to the system: a login screen that 
send to the server username/password and gets a token used around in the 
different functionalities of the application.
Now a customer instead of using this “server-side” authentication  wants to use 
his own OAuth 2.0 server inside his network.

Looking around I found this project: 
https://github.com/freddyboucher/gwt-oauth2 
<https://github.com/freddyboucher/gwt-oauth2> but if you have any other 
recommendation and/or projects I will appreciate it a lot!

Thanks in advance to all!

--
Luca Morettoni  | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/DAF84368-2EE6-4C27-AC35-FA308B3F50C4%40morettoni.net.


Re: Updated GXT for GWT 2.9.0 and Java 11

2021-02-25 Thread Luca Morettoni
hello, we still using GXT 4.0.2, and we waited years a fix version because 
4.0.3 was a total failure… now we decided to move to “something else”, but we 
still evaluating different (commercial and not) solutions to replace the client 
widgets infrastructure.
Also we had a very BAD experience with their support, we paid the fee for 
years, and in the last times we got a very LIMITED support!

In any case, we are using GXT 4.0.2 and GWT 2.9.0 for a long time without any 
issue, but we never tested it under Java 11...

> On 25 Feb 2021, at 07:56, 'RobW' via GWT Users 
>  wrote:
> 
> Not sure how many of you also use GXT, but just spotted an announcement from 
> Sencha that GXT 4.1 is out, with support for GWT 2.9.0 and Java 11 (although 
> the latter is marked as a "should support").
> 
> In the middle of some othe rwork, so have yet to try it in our setup. Will 
> report back once we have though. FWIW - we've been building and running under 
> GWT 2.9.0 fine with the previous 4.0 version, so I'm not really expecting any 
> issues from that side of things.
> 
> 


--
Luca Morettoni  | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/D892D4B3-EE78-44AB-8CD8-B7F7EE71B205%40morettoni.net.


Re: dn-components new GWT UI library

2019-12-27 Thread luca . masini
Hi Nikola, really nice work.

But the pricing model stop me from go ahed, infact nowaday my company works 
with a lot of open source frameworks and buy support.

We want to try, may be write an entire project with the new tech and if 
everything works fine and goes in production then we buy support from the 
company.

Do you think you can also have such a licensing model ?

Il giorno mercoledì 11 dicembre 2019 14:29:41 UTC+1, nikola ha scritto:
>
> landing page: dncomponents.com 
> demo:   http://dncomponents.com/demo
> github: https://github.com/dncomponents/dncomponents
>
> Client side java UI framework for building rich web applications written 
> purely in Java language using GWT  compiler 
> and elemental2  browser API without 
> any external js libraries.
>
> dn-components layered architecture makes process of developing modern 
> complex user interfaces with ease.
> Html binder  and 
> intellij 
> plugin  are 
> the great tools that support this.
>
> dn-components can have different view implementations. 
>
> Default view implementation is based on bootstrap 
>  framework (only css and markup). The second 
> is google Material design (work in progress)
>
> - All the view implementations are in one java file 
>
> https://github.com/dncomponents/dncomponents/blob/master/bootstrap-ui/src/main/java/com/dncomponents/bootstrap/client/BootstrapUi.java
> - And all markup for all components are in one html file 
>
> https://github.com/dncomponents/dncomponents/blob/master/bootstrap-ui/src/main/java/com/dncomponents/bootstrap/client/BootstrapUi.html
>
> dn-components component has 3 layers of separation.
>
> Each component has constructor where you can inject your custom view 
> implementation that can accept different markups.
>
> That means that you can easily customize component's views on application 
> level by editing BootstrapUi.java 
> 
>  or BootstrapUi.html 
> 
>  or 
> single component by injecting its view.
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/00650d84-ab4a-4aba-9fc2-f1ec3d36c0b4%40googlegroups.com.


Re: Security Vulnerability Detected in GWT Library

2019-04-10 Thread luca . masini
gwt-dev is only used during maven build or at least for the code server 
running on my workstation, this is not necessary.

May be gwt-servlet for old legacy apps thet still use GWT-RPC, but most now 
use REST service and REST clients.

Anyway thanks for your suggestions.

Have a nice day

Il giorno mercoledì 10 aprile 2019 10:26:00 UTC+2, Hrishikesh Joshi ha 
scritto:
>
> GWT 2.8.2:
> All
> All
>
> ---
>
> # Description
> Security Vulnerability Detected in gwt-dev.jar & gwt-servlet.jar are 
> reported by Dependency checker tool
> https://jeremylong.github.io/DependencyCheck/
>
> Below are the details -
> 1. Gwt-dev.jar - 
>1.1 Vulnerable version of jetty library(current version-- 
> 9.2.14, available ) 
>1.2 Vulnerable version of commons-collections(current 
> version - 3.2.1)
>1.3 Vulnerable version of 
> org.apache.httpcomponents:httpclient(current version - 4.3.1)
>
> 2. Gwt-servlet.jar 
>1.1 Vulnerable version of Google Protobuf(current version - 
> 2.5.0, available version - 3.4.0)
>
> # Steps to reproduce
> Refer instruction from following web site.
>
> https://jeremylong.github.io/DependencyCheck/dependency-check-ant/index.html
>
> Is community going to update 3rd party library used by GWT to remove these 
> Vulnerability ?
>

-- 
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: Compilation issue on GWT 2.8.2 (modular maven project)

2018-11-13 Thread Luca Morettoni


> On 13 Nov 2018, at 10:58, Thomas Broyer  wrote:
> 
> remove scope=provided and classifier=sources from test-shared
> remove the jaxb dependency from test-server
> possibly add the jaxb dependency with classifier=sources in test-client
> 

Thanks Thomas, it works (with this changes):

Added jaxb as dependency in the shared project as:


  javax.xml.bind
  jaxb-api
  2.3.0


Added jaxb as dependency in the client project as:


  javax.xml.bind
  jaxb-api
  2.3.0
  sources


I keep the dependency on the server side, but I will try to remove it with the 
real project to see if then passes all the tests!

Thanks for the help!!!

--
Luca Morettoni  | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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: Compilation issue on GWT 2.8.2 (modular maven project)

2018-11-12 Thread Luca Morettoni


> On 12 Nov 2018, at 23:14, Freddy Boucher  wrote:
> 
> Juste remove
> 
> provided
> 
> to fix SDM.

no, I tried this solution but it does not fix the problem...

--
Luca Morettoni  | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

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


Compilation issue on GWT 2.8.2 (modular maven project)

2018-11-12 Thread Luca Morettoni
Hello, I’m using the Thomas Broyer fantastic plugin[1] for maven to split my project into multiple subproject (client, shared and server).Until now I used GWT version 2.8.1, but today I started a new project and I’d like to use the latest version (2.8.2), and some of the POJOs I use in the shared module will be used also in the server module as a response for some REST call (with Jersey).Usually I annotate my POJOs with the usual @XmlRootElement to use it also in the response payload of a REST call; but switching to 2.8.2 version of GWT I got the known error:[INFO]       [ERROR] Errors in 'file:/Users/luca/tmp/gwt/test/test-shared/src/main/java/net/morettoni/GreetingResponse.java'[INFO]          [ERROR] Line 22: XmlTransient cannot be resolved to a type[INFO]          [ERROR] Line 4: The import javax.xml.bind cannot be resolved[INFO]          [ERROR] Line 8: XmlRootElement cannot be resolved to a type[INFO]          [ERROR] Line 3: The import javax.xml.bind cannot be resolved[INFO]          [ERROR] Line 31: XmlTransient cannot be resolved to a typeand as I see in the messages in this mailing list the solution is to add this extra dependency:  javax.xml.bind  jaxb-api  ...  sources  providedbut I continue to get the same error running the SDM code server (mvn gwt:codeserver -pl *-client -am), even if I added the above to the pom.xml of the shared module.Any idea on how to fix this issue? I’m using JAVA version 1.8 to compile and run the attached example.Thanks in advance for the help![1]: https://github.com/tbroyer/gwt-maven-archetypes
--Luca Morettoni morettoni.net> | http://www.morettoni.nethttp://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni





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




-- 
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: Different code-server port with gwt-maven-plugin

2017-08-10 Thread Luca Morettoni

> On 9 Aug 2017, at 16:15, Ignacio Baca Moreno-Torres <igna...@bacamt.com> 
> wrote:
> 
> You can use arbitrary arguments per-mode, so to add the codeserverPort to the 
> codeserver goal add:
> -codeServerPort1234
> If you are using dev mode use:
> -codeServerPort1234.

I totally missed that section in the manual, thanks!

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

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


Different code-server port with gwt-maven-plugin

2017-08-09 Thread Luca Morettoni
Hello, for a project we’re using the fantastic gwt-maven-plugin, but now we 
need to migrate a legacy feature of the app to a new version, and we like to 
run both version of the app (old and new) to compare the results.
We have a difficult, we can’t force the code-server to use a port different 
than the default one (9876) with that maven plugin.

Any idea or hint? Looking the documentation there isn’t any option to do that:

https://tbroyer.github.io/gwt-maven-plugin/codeserver-mojo.html 
<https://tbroyer.github.io/gwt-maven-plugin/codeserver-mojo.html>

Thanks in advance!

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

-- 
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: best practices for modular GWT app

2016-10-13 Thread Luca Morettoni

> On 12 Oct 2016, at 19:38, Kirill Prazdnikov <pkir...@gmail.com> wrote:
> 
> I do not completely understand which problems do you have, but we dont have 
> any issues working with SDM with modules I described above.

maybe was something wrong in my project layout. Now I made another test, and in 
the submodule I revert the packaging to “jar” and added back this:




src/main/java

**/*.java
**/*.gwt.xml
**/*.ui.xml





and in the main GWT pom.xml file I need to have this to work it correctly:


${project.groupId}
WebMetabase-module-user
${project.version}
sources


otherwise without the classifier-sources I didn’t get a recompile when I 
refresh the browser.
As I posted yesterday the system is also working using the other GWT-Maven 
plugin, but I think is a “clear” way to add extra modules to the project, I’m 
right?

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

-- 
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: best practices for modular GWT app

2016-10-12 Thread Luca Morettoni

> On 12 Oct 2016, at 10:29, Luca Morettoni <l...@morettoni.net> wrote:
> 
> Hi all, currently my application is using a single module for the GWT code, 
> but I’d like to split it in some submodules to better organize the code.
> Everything is under maven and I organised the main project layout using 
> Thomas Broyer gwt-maven-archetypes [1], so now I have a main maven project 
> and its 3 submodules (client, shared and server): my goal is to have the 
> client submodule that will use the new GWT-submodules, but which is the best 
> approach?
> 
> [1]https://github.com/tbroyer/gwt-maven-archetypes 
> <https://github.com/tbroyer/gwt-maven-archetypes>
I think I found a reasonable solution to my problem adding a maven submodule, 
and in the main pom.xml I just added this:


App-client
App-module-user
App-shared
App-server


in the "App-client” pom.xml (this is the main GWT app) I just added:


${project.groupId}
 App-module-user
${project.version}
gwt-lib


and last this is the pom.xml file for the App-module-user:

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


net.morettoni.test
App
master


App-module-user
gwt-lib


${mavenVersion}




${project.groupId}
App-shared
${project.version}


${project.groupId}
 App-shared
${project.version}
sources


com.google.gwt
gwt-user




junit
junit






net.ltgt.gwt.maven
gwt-maven-plugin


net.morettoni.test.App.User






Hope this may help others!
A special Thanks to Thomas for the FANTASTIC plugin!!!

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

-- 
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: best practices for modular GWT app

2016-10-12 Thread Luca Morettoni

> On 12 Oct 2016, at 19:05, Kirill Prazdnikov <pkir...@gmail.com> wrote:
> 
> As far as I know you need only one GWT maven module that builds the app. 
> The rest modules are just regular (platform independent) modules 
> (jar) and the gwt-app module depends on it.
> 
> So for the client app u have 2: main GWT module (A) with GWT specific code 
> and GWT dependencies and a plain jar module (B) with shared (with server) 
> logic. 
> And the A depends on B.


Thanks for the hint, but I think the configuration I used don’t allow the SDM 
to recompile the code if I will so some changes in the submodules; that was 
related to the gwt-maven-plugin I used in my project.

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

-- 
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: best practices for modular GWT app

2016-10-12 Thread Luca Morettoni

> On 12 Oct 2016, at 10:29, Luca Morettoni <l...@morettoni.net> wrote:
> 
> Hi all, currently my application is using a single module for the GWT code, 
> but I’d like to split it in some submodules to better organize the code.
> Everything is under maven and I organised the main project layout using 
> Thomas Broyer gwt-maven-archetypes [1], so now I have a main maven project 
> and its 3 submodules (client, shared and server): my goal is to have the 
> client submodule that will use the new GWT-submodules, but which is the best 
> approach?
> 
> - I will add other maven submodules and I will put there the code?
> - I will continue to use only one maven submodule for the client and there I 
> will split the GWT code in different submodules?
> 
> Thanks for any hints!
> 
> [1]https://github.com/tbroyer/gwt-maven-archetypes 
> <https://github.com/tbroyer/gwt-maven-archetypes>
I think I need to use generate-module [2], but I can’t find any sample or some 
extra details on how to use it, any help?


[2] https://tbroyer.github.io/gwt-maven-plugin/generate-module-mojo.html

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

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


best practices for modular GWT app

2016-10-12 Thread Luca Morettoni
Hi all, currently my application is using a single module for the GWT code, but 
I’d like to split it in some submodules to better organize the code.
Everything is under maven and I organised the main project layout using Thomas 
Broyer gwt-maven-archetypes [1], so now I have a main maven project and its 3 
submodules (client, shared and server): my goal is to have the client submodule 
that will use the new GWT-submodules, but which is the best approach?

- I will add other maven submodules and I will put there the code?
- I will continue to use only one maven submodule for the client and there I 
will split the GWT code in different submodules?

Thanks for any hints!

[1]https://github.com/tbroyer/gwt-maven-archetypes
--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

-- 
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: Using different .gwt.xml in super-dev-mode

2016-05-02 Thread Luca Morettoni

> On 02 May 2016, at 12:33, Thomas Broyer <t.bro...@gmail.com> wrote:
> 
> Starting with 2.8.0-beta1, you can set properties from the command-line with 
> "-setProperty compiler.stackMode=emulated".
> You could also use a conditional set-property so it's only set when in SDM 
> (works in 2.7 and 2.6):
> 
> 
>   
> 

thanks, that solution is perfect!
Another question: where I can find a list of this “properties”?

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

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


Using different .gwt.xml in super-dev-mode

2016-05-02 Thread Luca Morettoni
Hi list! In a big project I need to use a different .gwt.xml file 
because I’d like to disable some “memory consuming options” I have in that 
file, like:



My project is currently splitted in three different subproject (client, server 
and shared), and the client subproject uses two main configuration profiles: 
dev (the active by default) and production that is enabled only when we build 
the final war file.

My first idea is to have two different /src/main/resources for dev and 
production, but I will prefer to know if there are any other possible solution 
for my config!

Thanks to all!

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/   | http://twitter.com/morettoni

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


User interface, which one?!?

2016-01-18 Thread Luca Morettoni
Hi list! Finally I had the green light to change the UI of our GWT-based 
application and I’m in front of a huge wall!
Actually the application uses 100% of GWT-widgets for the user interface, my 
idea is to totally remove the dependency to that widgets to get ready for the 
future versions of GWT (Jackal?), but which approach is the best one?

- polymer/material design approach need to be discarded (designers don’t like 
that, full stop), so I can’t use it!
- gwt-bootstrap i think is just a bootstrap CSS applied over the actuals GWT 
widget, so could become deprecated soon[1]?
- could be the choice of bootstrap (or any others) “plain-CSS” approach, 
engaged with gQuery[2] to control the html-widgets from the code-side a right 
way to create now an UI with an eyes on the “future” of GWT?

Thanks in advance for any contribution to this thread!


[1]https://github.com/gwtbootstrap3/gwtbootstrap3/issues/281
[2]https://github.com/gwtquery/gwtquery

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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: User interface, which one?!?

2016-01-18 Thread Luca Morettoni

> On 18 Jan 2016, at 16:25, Alain Ekambi <jazzmatad...@gmail.com> wrote:
> 
> Personally I dont know why people are  trying to optimise their code for 
> something that s not there. Something no one knows when it will come and how 
> it will be.


that change on my project will involve the effort of 6/7 programmers and some 
months of work, imagine if at the end of this operation (that will cost money 
to the company) we need to start from zero because the system we used become 
unmaintained and/or deprecated… a good choice now could save money, angry 
peoples and long nights spent for nothing! :)

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni

-- 
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: two widgets communication

2015-10-02 Thread Luca Morettoni
On Fri, Oct 2, 2015 at 11:44 AM, naveen gayar <navind...@gmail.com> wrote:
> Hi
>
> I have widget on the left side and the widget on the right side. When i
> click the button in the left side, it should change the content in the right
> side widget.

this article could be a good start:

http://www.gwtproject.org/articles/mvp-architecture.html

-- 
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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: (modern) chart system for GWT

2015-09-28 Thread Luca Morettoni
On Mon, Sep 28, 2015 at 3:07 PM, ronifabio <ronifa...@gmail.com> wrote:
> I use GWT-charts.
> https://code.google.com/p/gwt-charts/
> http://gwt-charts.appspot.com/
> https://github.com/google/gwt-charts

but it uses Google charts... and if I remember well we need to be
connected to have the chart rendered...

-- 
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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 Plugin Problem

2015-08-21 Thread Luca Morettoni
On Fri, Aug 21, 2015 at 7:54 AM, Vivekanand Bhatt
vivekanandbha...@gmail.com wrote:
 Hi,

 After installing gwt plugin in chrome it is still showing install missing
 plugin. Why??

because it is obsolete, please follow this article:

http://www.gwtproject.org/articles/superdevmode.html

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

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


(modern) chart system for GWT

2015-08-18 Thread Luca Morettoni
Hello, in my GWT app to render some dynamics chart on client side I
used Client Side GChart project [1], everything work fine, but we're
going to refresh the application user interface and we like to have
a more fresh and modern chart system.
The structure of the project requires:

• the rendering of the charts can't use external servers, so we can
immediately exclude Google Visualisation API;

• we can't use any external plugin in the browser to render the charts
(like Flash);

• we need to interact with the charts (handle user clicks on the curves)

I started to evaluate some packages, but I have found some limits and
difficulties and I'd like to know your experience or if you have other
package to evaluate:

• GWT Highcharts [2] looks well structured, easy to use and has a good
documentation, but I have found a lot of troubles using it in our
project and I can't render any charts, I need to investigate the
source of the issue;

• gflot [3] I like this package, the problem is the documentation;

• D3js [4] this is the last resort, but using it require a lot of code
to render a simple chart


Thanks for any hints!

[1]https://code.google.com/p/clientsidegchart/
[2]http://www.moxiegroup.com/moxieapps/gwt-highcharts/
[3]https://github.com/nmorel/gflot
[4]https://github.com/gwtd3/gwt-d3

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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 Material Design

2015-03-30 Thread Luca Morettoni
On Fri, Feb 6, 2015 at 6:51 AM, mark kevin ringor kevzlou7...@gmail.com wrote:
 Hi to all,

 We are a team of GWT Developers to implement the GWT Material Design with
 the help MaterializeCSS (http://materializecss.com/). We
 are doing our best to integrate the Features to be able to integrate inside
 GWT Applications.

Looks great! There is any plan to have it in Maven?

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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 on iSeries

2014-11-21 Thread Luca Tozzi
Yes.. my doubts are based on the IBM jvm 
have you find any difference among the Oracle JVM and IBM JVM...
when compile GWT?

And is Jetty a good Server for try application before to deploy on iSeries?
or otherwise.. do you use WebSphere for iSeries directly when you develop? 

Il giorno martedì 18 novembre 2014 19:27:13 UTC+1, Terry Birch ha scritto:

 Hi Luca,
 We have been running GWT apps on the iSeries/Power 6 for several years in 
 Websphere. I have found it similar to running in Tomcat or other web 
 server, Did you have specific questions related to running on the i?
 Terry

 On Tuesday, November 18, 2014 11:09:49 AM UTC-5, Luca Tozzi wrote:

 Anyone have experience on use GWT on WebSphere for iSeries?

 I need skills, about it, for analyze and develop an important business 
 project.

 TNKS,
 Luca



-- 
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.7.0 is here

2014-11-20 Thread Luca Morettoni
Well done Daniel (and all the GWT developer community)!! Proud to have
met you in Firenze!

On Thu, Nov 20, 2014 at 12:11 PM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 Awesome!!

 On 20 November 2014 07:59, Daniel Kurka danku...@google.com wrote:

 Today we are excited to announce the GWT 2.7.0 release.  Thanks to
 everyone who contributed to this release, especially our non-Google open
 source contributors.

 One major feature of this release is a new super fast compilation path in
 Super Dev mode that replaces the old dev mode.
 For a run-down of all changes since GWT 2.6.1, read the release notes.

 The release is available for download here or on maven central.

 If you find any issues with this release, please file a bug in our issue
 tracker.

 Daniel,
 on behalf of the GWT team at Google

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


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



-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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.7.0 is here

2014-11-20 Thread Luca
Waiting for Maven Central..

Il giorno giovedì 20 novembre 2014 11:59:06 UTC+1, Daniel Kurka ha scritto:

 Today we are excited to announce the GWT 2.7.0 release.  Thanks to 
 everyone who contributed to this release, especially our non-Google open 
 source contributors.

 One major feature of this release is a new super fast compilation path in 
 Super Dev mode that replaces the old dev mode.
 For a run-down of all changes since GWT 2.6.1, read the release notes 
 http://www.gwtproject.org/release-notes.html#Release_Notes_2_7_0.

 The release is available for download here 
 http://www.gwtproject.org/download.html or on maven central.

 If you find any issues with this release, please file a bug in our issue 
 tracker.

 Daniel,
 on behalf of the GWT team at Google



-- 
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.7.0 is here

2014-11-20 Thread Luca
Now it's there, when I tried Maven build failed.

Thank you, now I want to test all my projects :)

Il giorno giovedì 20 novembre 2014 13:40:39 UTC+1, Jens ha scritto:

 Waiting for Maven Central..


 https://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.7.0/

 Maven search website just doesn't reveal it yet.

 -- 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 on iSeries

2014-11-18 Thread Luca Tozzi
Anyone have experience on use GWT on WebSphere for iSeries?

I need skills, about it, for analyze and develop an important business 
project.

TNKS,
Luca

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


How to pass a function to a method defined with JsInterop

2014-10-26 Thread Luca
Hi all, I'm using GWT 2.7.0-beta and I'm experimenting an integration with 
some existing JavaScript.

I wrote a wrapper:

@JsType
public interface ExistingJavaScriptObject {
ExistingJavaScriptObject function(String param, Object callback);

}

It's the same pattern used in many JS Frameworks and I need to pass a 
callback as the second param.

For that I wrote a SAM interface

@JsType(prototype = Function)
public interface FunctionCallP, R {
R function(P param);
}


But I don't know how to create a function object from this if not with a 
trampoline method in JNSI:

private static native P,R JavaScriptObject i2f(FunctionCallP, R 
functionCall) /*-{
return function(param) {
return functionCall.@FunctionCall::function(Ljava/lang/Object;)(param);
};
}-*/;


I think I'm missing the point, here in GWT 2.7 I can't use lambdas so I 
think there must be a smarter way to pass a function to a wrapper 
JavaScript object.

Any hints ? No better options ??

Thank you.

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


Logging properties and classes

2014-09-30 Thread Luca
I tried to recompile a current project upgrading my dependencies from 2.6.1 
to 2.7.0-SNAPSHOT, but I had a lot of problem due to missing properties and 
classes regarding the GWT logging subsystem.

It's a problem of the SNAPSHOT or we need to rework the logging ?

What about external libraries (like Errai) that extensively use logging ?

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


Re: Logging properties and classes

2014-09-30 Thread Luca
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 Luca
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.


Re: Logging properties and classes

2014-09-30 Thread Luca
I don't know if it's the only one, the build stop at this first error, and 
I don't want to try a toy application, but a real one.

I'll fill an issue.

Thanks.

Il giorno martedì 30 settembre 2014 12:15:21 UTC+2, Andrei Korzhevskii ha 
scritto:

 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.


Re: Logging properties and classes

2014-09-30 Thread Luca
Not for me, after that I got error in 
de/barop/gwt/client/HistoryImplPushState.java, inherited from Errai.





Il giorno martedì 30 settembre 2014 15:41:51 UTC+2, Ümit Seren ha scritto:

 Funny I came accross the same issue today (Errai-Bus and 
 GWT-2.7.0-SNAPSHOT). 

 I filed two issues in the JIRA issue tracker for the Errai project (
 https://issues.jboss.org/browse/ERRAI-798 and 
 https://issues.jboss.org/browse/ERRAI-799)

 You need two workarounds: 

 1.) Add the logging properties to your gwt.xml file:

 define-property name=gwt.logging.popupHandler values=ENABLED, 
 DISABLED /
 define-property name=gwt.logging.firebugHandler values=ENABLED, 
 DISABLED /
 2.) Creat a com.google.gwt.logging.client package and 
 the FirebugLogHandler class that was removed in 2.7.0



 On Tuesday, September 30, 2014 10:58:40 AM UTC+2, Luca wrote:

 I tried to recompile a current project upgrading my dependencies from 
 2.6.1 to 2.7.0-SNAPSHOT, but I had a lot of problem due to missing 
 properties and classes regarding the GWT logging subsystem.

 It's a problem of the SNAPSHOT or we need to rework the logging ?

 What about external libraries (like Errai) that extensively use logging ?

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


Re: gwt-maven-plugin 2.7.0-SNAPSHOT

2014-09-23 Thread Luca
I can't find Maven dependencies.

Here

https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/

No jars or poms.

What am I missing ?

Il giorno martedì 16 settembre 2014 11:27:09 UTC+2, Thomas Broyer ha 
scritto:

 Fixed in master, and new snapshot deployed.

 On Monday, September 15, 2014 11:52:14 PM UTC+2, Thomas Broyer wrote:

 Doh, don't know why, I'm passing nosuperDevMode if superDevMode is false, 
 as if it's enabled by default in GWT. Will fix as soon as I find a computer.
 Le 15 sept. 2014 20:45, Manuel Carrasco Moñino man...@apache.org 
 javascript: a écrit :

 Hi Thomas,

 I've tried the snapshot and seems that DevMode with -superDevMode option 
 is not being passed.
 I tried either, set superDevModetrue/superDevMode in my pom.xml and 
 run mvn gwt:run -Dgwt.superDevMode=true  but in both cases DevMode.main 
 is not receiving the -superDevMode argument.

 Am I doing something wrong?

 - Manolo


 On Sun, Sep 14, 2014 at 5:07 AM, Thomas Broyer t.br...@gmail.com 
 javascript: wrote:

 Hi all,

 I spent some hours updating the gwt-maven-plugin to GWT 2.7.0-SNAPSHOT, 
 and just deployed a snapshot to the https://nexus.codehaus.
 org/content/repositories/snapshots/ repository.

 You should thus be able to test GWT 2.7.0-SNAPSHOT more easily by 
 switching to gwt-maven-plugin 2.7.0-SNAPSHOT.

 Feedback welcome, both on the plugin and on GWT.

 -- 
 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 
 javascript:.
 To post to this group, send email to google-we...@googlegroups.com 
 javascript:.
 Visit this group at http://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 a topic in the 
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-web-toolkit/gFPCB3-nJIc/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to google-we...@googlegroups.com 
 javascript:.
 Visit this group at http://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 
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 RC1 DevMode log4j fail?

2014-06-12 Thread Luca Morettoni
On Sat, May 31, 2014 at 1:34 AM, Thomas Broyer t.bro...@gmail.com wrote:
 The link you just quoted above:
 https://github.com/tbroyer/gwt-maven-archetypes ;-)

I'm too old to this job!!!
Thanks! Fantastic example!

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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 RC1 DevMode log4j fail?

2014-05-30 Thread Luca Morettoni
On Tue, Feb 18, 2014 at 3:22 PM, Thomas Broyer t.bro...@gmail.com wrote:
 Yes.
 (the instead of bit depends on your project; I keep thinking that if you
 mix client-side and server-side code in the same Maven module, then you're
 doing it wrong; Maven wants you to modularize your project, and it really
 works great; see https://github.com/tbroyer/gwt-maven-archetypes for
 examples)

Hello Thomas (and list), I'm thinking to split my current GWT in
some submodules also to avoid the problem in thread (actually we
have GWT 2.5.1).
I see the example in [1], but it focus on multi-maven modules on the
client-side, do you know if there are any other example/best
practices for client/server code splitting?


[1]http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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 : exception when running incoming RPC call on EclipseLink

2013-08-27 Thread luca ardizzoni


I'm writing a project with Eclipse using EclipseLink ,hsqldb and GWT . When 
I try a do a RPC I always get stuck on this exception :

SEVERE: javax.servlet.ServletContext log: Exception while dispatching 
incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: 
Service method 'public abstract void 
it.myProject.client.service.EmployeeService.createEmployee()' threw an 
unexpected exception: javax.persistence.PersistenceException: No 
persistence providers available for myDB after trying the following 
discovered implementations: org.datanucleus.api.jpa.PersistenceProviderImpl

This is my main file *myProject.java* where I execute the RPC:

public class MyProject implements EntryPoint {  

 private final EmployeeServiceAsync aService = (EmployeeServiceAsync)   
  GWT.create(EmployeeService.class);

   @Override
   public void onModuleLoad() {

 aService.createEmployee(new AsyncCallbackVoid() {
@Override
public void onFailure(Throwable caught) {
Window.alert(Creation Employees failed!);
}
@Override
public void onSuccess(Void result) {
Window.alert(Creation success!);
}
});

I've specified the name of my Database and the provider in *persistence.xml*
 :

 persistence-unit name=myDB transaction-type=RESOURCE_LOCAL  

providerorg.eclipse.persistence.jpa.PersistenceProvider/provider 

In my *build path* I've put: eclipselink.jar ; gwt-servlet.jar ; hsqldb.jar 
; javax.persistence_2.0.4.jar ; persistence-api-sources-2.0.jar ; 
smartgwt.jar

Please give any advices you think and feel free to ask if you need other 
code or anything.
I'm blocked on this since a week and noone in the web seems to have the 
same problem .

 

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


Barely clickable sorting labels in DataGrid

2013-06-25 Thread Luca Bellucci
I was experiencing a problem with the DataGrid component, and I noticed it 
happens in the Showcase as well, so I think it's general.
I'm referring to this page: 
http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDataGrid

If you try sorting by column, you can see this problem (see the image 
attached):
- The area I marked in Red, where most of the label is located, is NOT 
clickable.
- The area I marked in Green, slightly above the label, is normally 
clickable and lets you sort the data.

If you try the CellTable in the Showcase, instead, both the areas are 
clickable and work fine.

Note: if you click the green area, and proceed to sort the data by that 
column value, THEN both the green and red areas of that column become 
clickable and work fine. In that column only, anyway.

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


attachment: datagridbug.png

Re: Compiling for IE8

2013-01-30 Thread Luca Morettoni
I have that as the first line of my code, but the server don't receive
any line to log.
I think there is some strange think on that IE installation that
produce that error on the client.

On Wed, Jan 30, 2013 at 2:56 PM, Thomas Broyer t.bro...@gmail.com wrote:


 On Wednesday, January 30, 2013 8:59:29 AM UTC+1, Luca Morettoni wrote:

 On Thu, Jan 17, 2013 at 9:08 AM, Thomas Broyer t.br...@gmail.com wrote:
  I've got a fairly complex RIA application involving GWT 2.5 and GXT
  3.0.1,
  and I noticed that changing compiler flags (like optimization level)
  doesn't
  improve (and even degrades) performance in IE8.
  So, could anyone help me out: what are the best compiler settings for
  performance in IE8 in production mode.

 About IE8 browser, I have a GWT application that work fine under IE8,
 and crash in another PC with the same version of IE and O.S.
 The problem comes when the browser start to load the initial
 application page, and the error is:

 Message: Exception thrown and not caught
 Line: 4239
 Char: 150
 Code: 0

 any idea/hint? I can't debug directly into the customer browser... :(


 Try adding a GWT.UncaughtExceptionHandler that possibly sends the error up
 to the server (have a look at
 https://developers.google.com/web-toolkit/doc/latest/DevGuideLogging#Remote_Logging
 or
 http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/HttpThrowableReporter.html#installUncaughtExceptionHandler(java.lang.String))
 See also http://msdn.microsoft.com/en-us/library/ie/w4e7h3yz(v=vs.94).aspx

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





-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
Google+ profile: http://bit.ly/morettoni_plus
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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: Compiling for IE8

2013-01-29 Thread Luca Morettoni
On Thu, Jan 17, 2013 at 9:08 AM, Thomas Broyer t.bro...@gmail.com wrote:
 I've got a fairly complex RIA application involving GWT 2.5 and GXT 3.0.1,
 and I noticed that changing compiler flags (like optimization level) doesn't
 improve (and even degrades) performance in IE8.
 So, could anyone help me out: what are the best compiler settings for
 performance in IE8 in production mode.

About IE8 browser, I have a GWT application that work fine under IE8,
and crash in another PC with the same version of IE and O.S.
The problem comes when the browser start to load the initial
application page, and the error is:

Message: Exception thrown and not caught
Line: 4239
Char: 150
Code: 0

any idea/hint? I can't debug directly into the customer browser... :(

--
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
Google+ profile: http://bit.ly/morettoni_plus
Member of GDG Perugia: http://perugia.gtugs.org

-- 
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: Chrome 24 and GWT

2013-01-25 Thread Alex-Dan Luca
Google fixed it and pushed an update to all Chrome users.

See here for more info:

http://code.google.com/p/chromium/issues/detail?id=158910

On Jan 25, 2013 8:51 PM, Simon K feeney.m...@gmail.com wrote:

 I can't reproduce it on Chrome 24.0.1312.56 m either.

 Is there a particular commit in this patch that might fixed the animation
 problem inadvertently? How likely is it for the issue to come back in the
 near future?


 On Friday, 25 January 2013 00:45:46 UTC, John V Denley wrote:

 Looks to me like the latest release (Version 24.0.1312.56 m) fixes this
 issue...

 On Sunday, 20 January 2013 22:04:32 UTC, darkflame wrote:

 Just to confirm/clarify this problem as I found it today.


 PopupPanel test = new PopupPanel();

 test.add(new Label(test));

 test.**setAnimationEnabled(true);

 test.center();

 Is all it takes to reproduce it for me.
 Animation seems to have to be true, it seems to work fine without, so
 that could be a workaround for some people needing 2.4.


 On Jan 15, 2:22 am, Thomas Broyer t.bro...@gmail.com wrote:
  Sorry, didn't see that part of your mail:
 
  On Monday, January 14, 2013 5:43:36 PM UTC+1, zarfh...@gmail.comwrote:
 
   Perhaps you have the resources to fully regression test all of your
   applications every week on all 8 or 9 different supported browsers,
 plus
   dev/beta versions, but in the real world of enterprise software,
 that's
   simply not feasible.
 
  I don't have those resources, but I'm aware that it's what I should
 do.
  It's actually even worse: I'm paid to build webapps, not maintaining
 them.
  We're not proactive on browser changes because that's not part of the
 deal
  with our customers, but we're generally in the situation of shipping a
  fixed version (provided there's an easy fix or workaround) in a matter
 of
  hours. Once the warranty period is over however, I bet nobody does
 testing
  either and fixes can take ages.
  BTW, I also know there *are* people in the real world of enterprise
  software who *do* end-to-end testing, either using Selenium/WebDriver
 on a
  cluster of servers, or using SaaS such as Sauce Labs, driven by a CI
 server
  (Jenkins/Hudson, TeamCity, Bamboo, etc.) to be run on each commit
 and/or
  nightly.
 
  The root of the issue is that most people (IT deps mostly) ask for
 webapps
  rather than native apps (generally to replace native apps) for bad
 reasons
  and/or without understanding the consequences.
 
   Stable software should remain stable. If a customer upgrades his
 version
   of Windows, I shouldn't expect the new version to suddenly start
 working
   strangely because of a radical change in how animations are
 rendered. A
   similar concept should apply for web browsers.
 
  ROTFL!
  Are you talking about that Windows OS that breaks its WebDAV support
 in
  almost every new version or service pack, and even sometimes hotfixes?
 http://www.**greenbytes.de/tech/webdav/**webdav-redirector-list.html(Ihttp://www.greenbytes.de/tech/webdav/webdav-redirector-list.html(Ihad
  to
  do an emergency patch in a server after the SP1 was deployed on Win7
 this
  fall; BTW the webapp is 4 years old 'cause nobody allocated the budget
 to
  maintain and update it, not even with security fixes: “if it ain't
 broke,
  don't fix it”, BS; this is the state of software in the real world of
  enterprise software: zombie servers on a drip of emergency fixes to
 keep
  them alive)
  The one OS for which every IT department delays hotfix/SP deployment
 by
  fear of breaking their payroll or LoB apps? (which is probably the
 main
  reason there's still so many IE7 and IE8 out there –last year I would
 even
  have added IE6 to the list–).
 
  But again, we're talking here about a bug in GWT, in the use of a
 beta
  API. And that bug was fixed long before the change in Chrome reached
 end
  users.
  Also note that in a closed environment (intranet) running Windows, you
 can
  disable Chrome and/or ChromeFrame auto-updates using a group policy.

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 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.
 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.




-- 
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: Chrome 24 and GWT

2013-01-16 Thread Alex-Dan Luca


I see that everyone goes with the easy fix in GWT XML file.

What I think is best to be done is to take these two files: 
https://code.google.com/p/google-web-toolkit/source/detail?spec=svn10989r=10989
 .

Make sure you keep the package names as the classes that these extend are only 
visible in the same package (default access).

Copy paste in your code with a different name, and add this to your gwt.xml: 

AFTER upgrading to GWT 2.5 this can be removed.

[CODE]
  
   

replace-with 
class=com.google.gwt.animation.client.AnimationSchedulerImplWebkitFix
  when-type-is class=com.google.gwt.animation.client.AnimationScheduler/
  any
when-property-is name=user.agent value=safari/
  /any
/replace-with


!-- Implementation based on mozRequestAnimationFrame --
replace-with 
class=com.google.gwt.animation.client.AnimationSchedulerImplMozillaFix
  when-type-is class=com.google.gwt.animation.client.AnimationScheduler/
  when-property-is name=user.agent value=gecko1_8/
   /replace-with[/CODE]

Basically the above code will patch your GWT 2.4 animation code to be on par 
with the GWT 2.5 code.

Correct me if I'm wrong.

Regards,
Alex.


On Monday, January 14, 2013 12:12:20 AM UTC+2, Craig Mitchell wrote:

 Thanks Andy!  Your workaround works great!

 +1 for not happy with Google!  GWT 2.4 is supposed to be the stable build! 
  We've been deferring going to GWT 2.5 because we wanted the stability.

 Summary for workaround is to add the following to your .gwt.xml file:

 !-- TEMP FIX UNTIL GOING TO GWT 2.5 --
 !-- Fallback implementation, based on a timer --
 replace-with 
 class=com.google.gwt.animation.client.AnimationSchedulerImplTimer
   when-type-is 
 class=com.google.gwt.animation.client.AnimationScheduler/
   any
 when-property-is name=user.agent value=ie6/
 when-property-is name=user.agent value=ie8/
 when-property-is name=user.agent value=ie9/
 when-property-is name=user.agent value=safari/
 when-property-is name=user.agent value=opera/
   /any
 /replace-with

 !-- Implementation based on mozRequestAnimationFrame --
 replace-with 
 class=com.google.gwt.animation.client.AnimationSchedulerImplMozilla
   when-type-is 
 class=com.google.gwt.animation.client.AnimationScheduler/
   when-property-is name=user.agent value=gecko1_8/
 /replace-with
 !-- * END * --



 On Saturday, January 12, 2013 5:20:20 AM UTC+11, Andy wrote:

 I posted the workaround that we're using to the chromium issue thread: 
 http://code.google.com/p/chromium/issues/detail?id=158910

 We have 100s of customers with servers deployed behind firewalls so this 
 is going to be ugly.



-- 
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/-/bbBAcb2jfh4J.
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: [gwt-contrib] “GWT no longer supports ChromeFrame. The implementation caused more bugs than it solved.”

2013-01-16 Thread Alex-Dan Luca
Sorry to say this, but it's still there.

https://developers.google.com/web-toolkit/release-notes#Release_Notes_Current

Can you remove it?

*GWT no longer supports ChromeFrame. The implementation caused more bugs 
than it solved.*


On Monday, October 29, 2012 10:02:44 PM UTC+2, unnurg wrote:

 OK - I'm just removing the bullet point entirely now - should be live soon 

 On Fri, Oct 26, 2012 at 5:53 PM, Thomas Broyer 
 t.br...@gmail.comjavascript: 
 wrote: 
  
  
  On Thursday, July 19, 2012 12:16:26 AM UTC+2, rdayal wrote: 
  
  Hey guys, 
  
  This is my fault. I mis-interpreted the code change. As the change to 
  fix this issue was basically a revert of the original commit that 
 was 
  supposed to add ChromeFrame support, I incorrectly assumed that 
 reverting 
  the code would prevent special behavior for ChromeFrame (which I 
 figured we 
  needed in order to make it work). Had I read issue #6665 more 
 carefully, I 
  would have realized that this fix was to improve support for 
 ChromeFrame, 
  not remove it entirely. 
  
  I'll be sure to fix this statement in the release notes. 
  
  
  3 months later, this is unfortunately still there :-( 
  
  Could anyone fix it please? 
  



 -- 
 DO NOT FORWARD 


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: performance problem on andorid using phonegap

2012-10-29 Thread Luca
Andrea to help you more information are needed.

Can you show how do you attach event, create widgets and populate the DOM ??

Thank you.

Il giorno lunedì 29 ottobre 2012 11:07:13 UTC+1, andrea casati ha scritto:

 hi all guys!

 i develop a very small application to test gwt the first time..so using 
 MVC i create a button and a teextarea, pressing the button the number in 
 the textfiel growing up

 this is the entry point:

 public void onModuleLoad() {

  //MODEL

 ModelP model = new ModelP();

  //VIEW

 ViewP view = new ViewP(model);

  //CONTROLLER

 ControllerP controller = new ControllerP(model, view);

 }


 in the model there is a varaible and a function to increment the variable;

 in the view there is simply a button and a textarea

 in the controller there is a clickListener that listens the button and 
 increment the variable.. very simple a stupid program, non css , non html 
 changes.. nothing..

 i only add this line   inherits name='com.google.gwt.user.User'/ in the 
 xml to maintain the compatibility with android ICS..


 when i run this program in my android ics phone (512ram, 1ghz cpu) using 
 phonegap the program is terribly slow (on the pc is perfectly fast), i 
 mean…if i press the button, the textfield 

 growing up after 1 second!  :(


 can you help me? :)

 thanks a lot!



-- 
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/-/G_i6_3otZjsJ.
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 format properties file for Messages and @Select

2012-03-12 Thread Filippo De Luca
Thank you Kris

On Sunday, March 11, 2012 1:10:40 AM UTC, kretel wrote:

 Hi,

 Did you define default messages annotation for your interface method? 

 This  
 http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html#SelectForms
   
 should explain how to do it. 
 Than, once you compile your project you should have default properties 
 file created for you. 

 Thanks,
 Kris


 On Friday, March 9, 2012 3:16:54 PM UTC, Filippo De Luca wrote:

 Hi,
 I have wrote an interface containing this method:

 String errorRemovingWidget(@Select Type type);

 Type is an enum.

 The properties file contains:
 errorRemovingWidget=Could not remove widget from dashboard
 errorRemovingWidget[A]=Could not remove an A from dashboard
 errorRemovingWidget[B]=Could not remove an B from dashboard

 But it doesn't work. How the properties file messages should be formatted 
 to work with the Select?






-- 
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/-/F9dtLcu3ogAJ.
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 format properties file for Messages and @Select

2012-03-09 Thread Filippo De Luca
Hi,
I have wrote an interface containing this method:

String errorRemovingWidget(@Select Type type);

Type is an enum.

The properties file contains:
errorRemovingWidget=Could not remove widget from dashboard
errorRemovingWidget[A]=Could not remove an A from dashboard
errorRemovingWidget[B]=Could not remove an B from dashboard

But it doesn't work. How the properties file messages should be formatted 
to work with the Select?




-- 
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/-/TayViQZS7GEJ.
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: GWT Spring

2012-03-09 Thread Filippo De Luca
Usually I implement the Service interface in a Spring bean, and I write the 
RemoteServlet implementation delegating all method to the Spring bean. 
Because the servlet is outside Spring transactional demarcation. You an 
also use threadlocal to pass request and response to the Spring bean (as 
GWT do).

On Friday, March 9, 2012 3:33:19 AM UTC, Xybrek wrote:

 On 3/8/2012 11:33 PM, Akram Moncer wrote:
  hello everybody;
 
  can some one help me and give me how can i create webapp with spring
  framwork on back-end and GWT on front-end ?
 
  --
  Akram MONCER
  Personne
 
  --
  You received this message because you are subscribed to the Google
  Groups Google Web Toolkit group.
  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.

 In most cases, Spring code is in the GWT RPC (server-side code). Best 
 approach would be through maven, also you might want to use Spring STS 
 Plugin if you are using Eclipse.

 If you are able to have your GWT project a Spring nature then on your 
 GWT RPC code, you can apply the standard Spring codes, i.e
 in your ServiceImpl code you can override:

 @Override
 public void init() ...
 {
   super.init();
   WebApplicationContext ctx = 
 WebApplicationContextUtils.getWebApplicationContext(getServletContext());
   // Beans
   dao = (MyDao)ctx.getBean(myDao);
 }

 @Override
 public void doSomething() {
   String something = dao.getSomething(...);
 }

  From here, you can use the beans to do something your app need to 
 accomplish.

 Of course you should fix your applicationContext.xml and web.xml which 
 you can easily search the web on how to do this.

 This is just the basic way to integrate GWT and Spring, as the topic is 
 very broad, you can integrate other complex things like Spring 
 authentication etc.

 Hope this helps.



-- 
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/-/_fMVfXDgoaoJ.
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: Gwt Scheduler / TimeLine / Gantt charts

2012-01-05 Thread Luca Tozzi
have you tried it?
what do you think about?

-- 
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/-/VUDZazQ8afEJ.
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: Service return type best paratice

2011-12-09 Thread Filippo De Luca
Thank you very much Paul for the explanation.

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



Service return type best paratice

2011-12-08 Thread Filippo De Luca
Hi to all,
I have a doubt about the best return type of a RPC service: shortly is 
better to return an interface or the implementation object? (Set or 
HashSet?)

I think is better use the implementing class due to the fast serialization 
or permutation, am I wrong?

-- 
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/-/SbFWi-Eelc8J.
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: Is the session needed?

2011-11-16 Thread Filippo De Luca
Thank you to both,
I looked deeply into the code. My application use the session to store 
login data and other stuffs. I am going to remove the session dependency 
step by step.

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



Is the session needed?

2011-11-11 Thread Filippo De Luca
Hi all,
I'm working on a GWT 2.3 app. I notice app uses the session to store login 
info and other stuff. There is a callback intercept the expired session and 
handle it. My question is: is in a GWT based app the session still needed? 
can I have a stateless server? thank you.

-- 
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/-/8XeJIvbPts4J.
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: GWT Developer Plugin for Firefox 8

2011-11-10 Thread Luca Morettoni
On Thu, Nov 10, 2011 at 4:52 PM, Samyem Tuladhar sam...@gmail.com wrote:
 Thanks. Worked for me as well. Wonder if the GWT official team would be able
 to pick this up and offer through the official channel.

and it's incredible that the chrome plugin is tremendous slower than the ff one!

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni
Member of Python User Group Perugia: http://www.pypg.org/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



HTTP ERROR 404

2011-11-06 Thread luca finocchio
Hi,
I'm trying to make an application gwt for my thesis but but I have
this error. HTTP ERROR 404 problem accessing /arnaldo/FIndirizzo.


this is my web.xml
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 version=2.5
 xmlns=http://java.sun.com/xml/ns/javaee;

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classcom.pullet.server.GreetingServiceImpl/servlet-
class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/arnaldo/greet/url-pattern
  /servlet-mapping

  servlet
servlet-nameFIndirizzoServlet/servlet-name
servlet-classcom.pullet.server.FIndirizzoImpl/servlet-class
  /servlet

  servlet-mapping
servlet-nameFIndirizzoServlet/servlet-name
url-pattern/arnaldo/FIndirizzo/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileArnaldo.html/welcome-file
  /welcome-file-list

/web-app


this is my Arnaldo.gwt.xml
?xml version=1.0 encoding=UTF-8?
module rename-to='arnaldo'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.clean.Clean'/
  !-- inherits name='com.google.gwt.user.theme.standard.Standard'/
--
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.pullet.client.Arnaldo'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  source path='server/Entity'/
/module

this is FIndirizzo.java

package com.pullet.client;

import org.orm.PersistentException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.pullet.server.Entity.EIndirizzo;

@RemoteServiceRelativePath(FIndirizzo)
public interface FIndirizzo extends RemoteService{

public EIndirizzo carica() throws Exception;

}

I hope you can help me out, thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problems with my first application

2011-08-04 Thread Luca Meloni
I have two servlets in my project:
 - The login servlet tooks the username and the password, checks if
user data is correct and eventually returns the name of the related
database;
 - The debug servlet for now can only output a string.
In MainEntryPoint I call the login servlet before the debug servlet,
but I get an output that indicates that the debug servlet is called
before the login servlet; this is the code snippet:

logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}

@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});

deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

public void onFailure(Throwable caught) {
}

public void onSuccess(Void result) {
}
});

And this is the related output:

2) DataBase: null
1) DataBase: dataBaseName

On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
  Is it necessary to include also Hibernate
 Validator? No exactly hibernate validator, some jsr303 implementation. I
 think is necesary.

 I tried to run again the project but the servlets were not
 executed in the correct order

 I'm blind. Can you explain a little more your problem?

 Juan

 2011/8/4 Apocalypto lmelon...@gmail.com







  Thanks for the reply, I included validation-api-1.0.0.GA.jar and
  validation-api-1.0.0.GA-sources.jar to project libraries and the
  errors were solved. Is it necessary to include also Hibernate
  Validator? I tried to run again the project but the servlets were not
  executed in the correct order

  On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   Its a classpath issue:

           [ERROR] Line 97: ConstraintViolation cannot be resolved to a
   type

   Add the javax.validation
   jar
 http://mvnrepository.com/artifact/javax.validation/validation-api/1.0...
   (jsr303)
   and some implementation
 http://stackoverflow.com/questions/1384968/is-there-an-implementation...
   .

   Juan

   2011/8/3 Apocalypto lmelon...@gmail.com

Hello GWT world, I'm a student who is trying to learn how to develop
with GWT framework. I already know well Java language but I'm stuck
with my first application: it's a simple log in interface which stores
user data into cookies, but I can't understand why it doesn't work
properly.

MainEntryPoint

   private GWTLogInServiceAsync logInService =
GWT.create(GWTLogInService.class);
   private GWTDeBugServiceAsync deBugService =
GWT.create(GWTDeBugService.class);
   private String dataBaseString;
...
           logInButton.addClickHandler(new ClickHandler() {

               public void onClick(ClickEvent event) {
                   dataBaseString = null;

                   logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

                       @Override
                       public void onFailure(Throwable caught) {
                           Window.alert(Log in failed!);
                       }

                       @Override
                       public void onSuccess(String result) {
                           dataBaseString = result;
                       }
                   });

                   deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

                       public void onFailure(Throwable caught) {
                       }

                       public void onSuccess(Void result) {
                       }
                   });

                   if (dataBaseString != null) {
                       logIn(userNameTextBox.getText(),
dataBaseString);
                   }
               }
           });
...
   private void logIn(String userName, String dataBase) {
       Cookies.setCookie(userName, userName);
       Cookies.setCookie(dataBase, dataBase);

       Location.reload();
   }

GWTLogInServiceImpl

public String logIn(String userName, String passWord) {
       String dataBase = null;

       try {
           Class.forName(org.postgresql.Driver);

           Connection connection =
DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
DataBase, postGreSQLUserName, postGreSQLPassWord);

           String query = SELECT \DataBase\ FROM \User\ WHERE
\Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';

  

Re: Problems with my first application

2011-08-04 Thread Luca Meloni
I have two servlets in my project:
 - The login servlet tooks the username and the password, checks if
user data is correct and eventually returns the name of the related
database;
 - The debug servlet for now can only output a string.
In MainEntryPoint I call the login servlet before the debug servlet,
but I get an output that indicates that the debug servlet is called
before the login servlet; this is the code snippet:

logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
Window.alert(Log in failed!);
}

@Override
public void onSuccess(String result) {
dataBaseString = result;
}
});

deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

public void onFailure(Throwable caught) {
}

public void onSuccess(Void result) {
}
});

And this is the related output:

2) DataBase: null
1) DataBase: dataBaseName

Look at my first post to see the other code snippets

On Aug 4, 3:47 pm, Apocalypto lmelon...@gmail.com wrote:
 Thanks for the reply, I included validation-api-1.0.0.GA.jar and
 validation-api-1.0.0.GA-sources.jar to project libraries and the
 errors were solved. Is it necessary to include also Hibernate
 Validator? I tried to run again the project but the servlets were not
 executed in the correct order

 On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:







  Its a classpath issue:

          [ERROR] Line 97: ConstraintViolation cannot be resolved to a
  type

  Add the javax.validation
  jarhttp://mvnrepository.com/artifact/javax.validation/validation-api/1.0...
  (jsr303)
  and some 
  implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation...
  .

  Juan

  2011/8/3 Apocalypto lmelon...@gmail.com

   Hello GWT world, I'm a student who is trying to learn how to develop
   with GWT framework. I already know well Java language but I'm stuck
   with my first application: it's a simple log in interface which stores
   user data into cookies, but I can't understand why it doesn't work
   properly.

   MainEntryPoint

      private GWTLogInServiceAsync logInService =
   GWT.create(GWTLogInService.class);
      private GWTDeBugServiceAsync deBugService =
   GWT.create(GWTDeBugService.class);
      private String dataBaseString;
   ...
              logInButton.addClickHandler(new ClickHandler() {

                  public void onClick(ClickEvent event) {
                      dataBaseString = null;

                      logInService.logIn(userNameTextBox.getText(),
   passWordTextBox.getText(), new AsyncCallbackString() {

                          @Override
                          public void onFailure(Throwable caught) {
                              Window.alert(Log in failed!);
                          }

                          @Override
                          public void onSuccess(String result) {
                              dataBaseString = result;
                          }
                      });

                      deBugService.outPut(2) DataBase:  +
   dataBaseString, new AsyncCallbackVoid() {

                          public void onFailure(Throwable caught) {
                          }

                          public void onSuccess(Void result) {
                          }
                      });

                      if (dataBaseString != null) {
                          logIn(userNameTextBox.getText(),
   dataBaseString);
                      }
                  }
              });
   ...
      private void logIn(String userName, String dataBase) {
          Cookies.setCookie(userName, userName);
          Cookies.setCookie(dataBase, dataBase);

          Location.reload();
      }

   GWTLogInServiceImpl

   public String logIn(String userName, String passWord) {
          String dataBase = null;

          try {
              Class.forName(org.postgresql.Driver);

              Connection connection =
   DriverManager.getConnection(jdbc:postgresql://localhost:5432/User
   DataBase, postGreSQLUserName, postGreSQLPassWord);

              String query = SELECT \DataBase\ FROM \User\ WHERE
   \Name\ = ' + userName + ' AND \PassWord\ = ' + passWord + ';

              ResultSet resultSet =
   connection.createStatement().executeQuery(query);

              if (resultSet.next()) {
                  dataBase = resultSet.getString(DataBase);
              }
          } catch (Exception exception) {
              exception.printStackTrace();
          }

          System.out.println(1) DataBase:  + dataBase);

          return 

Re: Problems with my first application

2011-08-04 Thread Luca Meloni
OK I read and now I think it's better to use a filter: have you got
some sites to suggest me with filter examples? I would appreciate it,
thank you

On Aug 4, 4:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Its best do the login in a filter. If you do the login in a filter always
 execute before servlets.

 If you want use a servlet to do login and have other servlet with similar
 url pattern read
 thishttp://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/h
 With filters you can explicity the order of execution, with servlet no (is
 not define in the specification, so is the serlvet container decide,
 unpredictable).

 Juan

 2011/8/4 Luca Meloni lmelon...@gmail.com







  I have two servlets in my project:
   - The login servlet tooks the username and the password, checks if
  user data is correct and eventually returns the name of the related
  database;
   - The debug servlet for now can only output a string.
  In MainEntryPoint I call the login servlet before the debug servlet,
  but I get an output that indicates that the debug servlet is called
  before the login servlet; this is the code snippet:

                     logInService.logIn(userNameTextBox.getText(),
  passWordTextBox.getText(), new AsyncCallbackString() {

                         @Override
                         public void onFailure(Throwable caught) {
                             Window.alert(Log in failed!);
                         }

                         @Override
                         public void onSuccess(String result) {
                             dataBaseString = result;
                         }
                     });

                     deBugService.outPut(2) DataBase:  +
  dataBaseString, new AsyncCallbackVoid() {

                         public void onFailure(Throwable caught) {
                         }

                         public void onSuccess(Void result) {
                         }
                     });

  And this is the related output:

  2) DataBase: null
  1) DataBase: dataBaseName

  On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
    Is it necessary to include also Hibernate
   Validator? No exactly hibernate validator, some jsr303 implementation. I
   think is necesary.

   I tried to run again the project but the servlets were not
   executed in the correct order

   I'm blind. Can you explain a little more your problem?

   Juan

   2011/8/4 Apocalypto lmelon...@gmail.com

Thanks for the reply, I included validation-api-1.0.0.GA.jar and
validation-api-1.0.0.GA-sources.jar to project libraries and the
errors were solved. Is it necessary to include also Hibernate
Validator? I tried to run again the project but the servlets were not
executed in the correct order

On Aug 4, 1:48 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Its a classpath issue:

         [ERROR] Line 97: ConstraintViolation cannot be resolved to a
 type

 Add the javax.validation
 jar
   http://mvnrepository.com/artifact/javax.validation/validation-api/1.0..
  .
 (jsr303)
 and some implementation
   http://stackoverflow.com/questions/1384968/is-there-an-implementation..
  .
 .

 Juan

 2011/8/3 Apocalypto lmelon...@gmail.com

  Hello GWT world, I'm a student who is trying to learn how to
  develop
  with GWT framework. I already know well Java language but I'm stuck
  with my first application: it's a simple log in interface which
  stores
  user data into cookies, but I can't understand why it doesn't work
  properly.

  MainEntryPoint

     private GWTLogInServiceAsync logInService =
  GWT.create(GWTLogInService.class);
     private GWTDeBugServiceAsync deBugService =
  GWT.create(GWTDeBugService.class);
     private String dataBaseString;
  ...
             logInButton.addClickHandler(new ClickHandler() {

                 public void onClick(ClickEvent event) {
                     dataBaseString = null;

                     logInService.logIn(userNameTextBox.getText(),
  passWordTextBox.getText(), new AsyncCallbackString() {

                         @Override
                         public void onFailure(Throwable caught) {
                             Window.alert(Log in failed!);
                         }

                         @Override
                         public void onSuccess(String result) {
                             dataBaseString = result;
                         }
                     });

                     deBugService.outPut(2) DataBase:  +
  dataBaseString, new AsyncCallbackVoid() {

                         public void onFailure(Throwable caught) {
                         }

                         public void onSuccess(Void result

Re: Problems with my first application

2011-08-04 Thread Luca Meloni
OK thanks for your example but I tried to do another thing, I removed
the debug servlet so the project had only the login servlet; I tried
to run the project but, when I clicked on the login button, the page
didn't do any action. I don't understand what's happening

On Aug 4, 5:16 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 I use Spring Security. But if you are doing a sample, make a filter that
 process a post.

 Simple Example.

 @Override
   public void doFilter(ServletRequest request, ServletResponse response,
 FilterChain chain)
       throws IOException, ServletException {
     logger.info(Entrando en filtro para procesar el login afip);

     // cast
     HttpServletRequest req = (HttpServletRequest) request;
     HttpServletResponse resp = (HttpServletResponse) response;

     // login
     login(req);

     // redirect to some url
     redirectSomeUrl(req, resp);
   }

  private void login(HttpServletRequest req) {
     // If is a POST login.
     if (POST.equals(req.getMethod())) {
       validateData(req);
     }
   }

 In validate data check info and create/invalidate session.

 Hope helps.

 2011/8/4 Luca Meloni lmelon...@gmail.com







  OK I read and now I think it's better to use a filter: have you got
  some sites to suggest me with filter examples? I would appreciate it,
  thank you

  On Aug 4, 4:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   Its best do the login in a filter. If you do the login in a filter always
   execute before servlets.

   If you want use a servlet to do login and have other servlet with similar
   url pattern read
   this
 http://www.roguewave.com/portals/0/products/hydraexpress/docs/4.6.0/h
   With filters you can explicity the order of execution, with servlet no
  (is
   not define in the specification, so is the serlvet container decide,
   unpredictable).

   Juan

   2011/8/4 Luca Meloni lmelon...@gmail.com

I have two servlets in my project:
 - The login servlet tooks the username and the password, checks if
user data is correct and eventually returns the name of the related
database;
 - The debug servlet for now can only output a string.
In MainEntryPoint I call the login servlet before the debug servlet,
but I get an output that indicates that the debug servlet is called
before the login servlet; this is the code snippet:

                   logInService.logIn(userNameTextBox.getText(),
passWordTextBox.getText(), new AsyncCallbackString() {

                       @Override
                       public void onFailure(Throwable caught) {
                           Window.alert(Log in failed!);
                       }

                       @Override
                       public void onSuccess(String result) {
                           dataBaseString = result;
                       }
                   });

                   deBugService.outPut(2) DataBase:  +
dataBaseString, new AsyncCallbackVoid() {

                       public void onFailure(Throwable caught) {
                       }

                       public void onSuccess(Void result) {
                       }
                   });

And this is the related output:

2) DataBase: null
1) DataBase: dataBaseName

On Aug 4, 4:00 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
  Is it necessary to include also Hibernate
 Validator? No exactly hibernate validator, some jsr303
  implementation. I
 think is necesary.

 I tried to run again the project but the servlets were not
 executed in the correct order

 I'm blind. Can you explain a little more your problem?

 Juan

 2011/8/4 Apocalypto lmelon...@gmail.com

  Thanks for the reply, I included validation-api-1.0.0.GA.jar and
  validation-api-1.0.0.GA-sources.jar to project libraries and the
  errors were solved. Is it necessary to include also Hibernate
  Validator? I tried to run again the project but the servlets were
  not
  executed in the correct order

  On Aug 4, 1:48 pm, Juan Pablo Gardella 
  gardellajuanpa...@gmail.com
  wrote:
   Its a classpath issue:

           [ERROR] Line 97: ConstraintViolation cannot be resolved
  to a
   type

   Add the javax.validation
   jar

 http://mvnrepository.com/artifact/javax.validation/validation-api/1.0..
.
   (jsr303)
   and some implementation

 http://stackoverflow.com/questions/1384968/is-there-an-implementation..
.
   .

   Juan

   2011/8/3 Apocalypto lmelon...@gmail.com

Hello GWT world, I'm a student who is trying to learn how to
develop
with GWT framework. I already know well Java language but I'm
  stuck
with my first application: it's a simple log in interface which
stores
user data into cookies, but I can't understand why it doesn't
  work
properly

Re: R: Specifying cell width in cellTable

2011-06-30 Thread Luca
It seems GWT 2.3 CellTable creates this DOM structure

...
thead
...
/thead
colgroup
col width=...
...
/colgroup
tbody
...
/tbody
...

and sets width in each col element...
Try to do the same in your view code. (GwtQuery may be useful.)

Cheers,
Luca




2011/6/30 Issam boualem.is...@gmail.com

 Thank you for your answer
 But the problem is that I'm working by GWT 2.1 and I can't use the
 method cellTable.setColumnWidth(column, width, unit)

 So any help ?

 On 30 juin, 15:42, icamts ica...@gmail.com wrote:
  Hi,
  for columns width have a look at
 
  http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCel...
 
  For each input width you may need to provide your own version of the
  Inputcell: customize render method.
 
  Cheers,
  Luca

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 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.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



TabLayoutPanel inside TabLayoutPanel (IE problem?)

2011-05-16 Thread Luca Morettoni
Hello list, I have a GWT 2.2  application that the main UI is based on
a big TabLayoutPanel that use all the page size (100%), on a
particular tab of that I have a FlexTable with 3 rows:

- one FlexTable (width=100%, no heigth);
- one TabLayoutPanel (width=100%, no heigth);;
- one FlexTable (width=100%, no heigth);;

the two inner FlexTables has a small heigth and I set the rows height to:

getFlexCellFormatter().setHeight(0, 0, 5%);
getFlexCellFormatter().setHeight(1, 0, 90%);
getFlexCellFormatter().setHeight(2, 0, 5%);

with this code on FireFox and Chrome the layout is perfect, but in
IInternet Explorer (8  9) I loose the bottom part of the inner
TabLayoutPanel and the last FlexTable...
Any hint to resolve this?
Thanks!
-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni
Member of Python User Group Perugia: http://www.pypg.org/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



Visibility event of a Composite

2011-04-18 Thread Luca Morettoni
Hello list, I have a composite widget (that wrap some controls) but I
need to know when the widget become visible and invisible;
for example if I put two different instance of my widget on two
different tab of TabLayoutPanel just one at time could be visible and
I need to know (by the widget code) when the visibility changes, there
is a way to do that?
Sorry if I'm little out of topic...
Thanks!

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



ButtonCell on some CellTable rows

2011-04-04 Thread Luca Morettoni
Hello list, I have a CellDataTable that display some object of my
application; some of that object could be added manually by the user
and other are fetched from the server; the user can delete only the
ones added by hand, for this I have a column on my table that render a
Button, when the user click I need to check if the data row is manual
or not before removing it; there is a way to don't render a cell
depending on a specific value?
This is the current code:

// table declaration:
CellTableMyDataProxy table;

// Only manual added rows can be deleted
ColumnCompoundDataProxy, String deleteColumn = new
ColumnMyDataProxy, String(
new ButtonCell()) {
public String getValue(CompoundDataProxy c) {
return Delete;
}
};
deleteColumn
.setFieldUpdater(new FieldUpdaterMyDataProxy, String() {
public void update(int index, MyDataProxy c,
String value) {
if (c.isManualAdded())
removeDataFromList(c);
}
});
table.addColumn(deleteColumn, );

thanks!
-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: ButtonCell on some CellTable rows

2011-04-04 Thread Luca Morettoni
2011/4/4 Luca Morettoni l...@morettoni.net:
 Hello list, I have a CellDataTable that display some object of my
 application; some of that object could be added manually by the user
 and other are fetched from the server; the user can delete only the
 ones added by hand, for this I have a column on my table that render a
 Button, when the user click I need to check if the data row is manual
 or not before removing it; there is a way to don't render a cell
 depending on a specific value?
 This is the current code:

            // table declaration:
            CellTableMyDataProxy table;

            // Only manual added rows can be deleted
            ColumnMyDataProxy, String deleteColumn = new
 ColumnMyDataProxy, String(
                    new ButtonCell()) {
                public String getValue(CompoundDataProxy c) {
                    return Delete;
                }
            };


resolved, I just overrided the render method:

ColumnMyDataProxy, String deleteColumn = new
ColumnMyDataProxy, String(
new ButtonCell()) {
public String getValue(MyDataProxy c) {
return Delete;
}

@Override
public void render(Context context,
MyDataProxy c, SafeHtmlBuilder sb) {
if (c.isManualAdded())
super.render(context, c, sb);
}
};

and the button is rendered only for manual added informations!

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



Part III of RequestFactory article

2011-03-28 Thread Luca
Hi, on our Google Tech User group blog:

http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-3.html

Hope can be useful for someone.
Ciao. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: RequestFactory and related object persistence

2011-03-23 Thread Luca Morettoni
2011/3/22 Thomas Broyer t.bro...@gmail.com:
 Have a look
 at http://code.google.com/p/google-web-toolkit/issues/detail?id=5776 and
 related bugs.

thanks, at the moment I fire two persistence request (one for A
update) and a second for B changes...

I'll hope to see that fixed in next releases...

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Article about RequestFactory (in italian)

2011-03-23 Thread Luca
Hi, if someone is interested, part II is now online:

http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-2.html


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



RequestFactory and related object persistence

2011-03-22 Thread Luca Morettoni
Hello list, I have this type of information on the ORM (Hibernate)

@Entity
class A {
  // id, version, getter and setter omitted
  String name;
  @ManyToMany(cascade = CascadeType.ALL)
  private ListB selections = new ArrayListB();
}

@Entity
class B {
  // id, version, getter and setter omitted
  Boolean accepted;
}

now on the client side I can edit A entity with:

AProxy editableA = request.edit(returnedA);
editableA.setName();

RequestVoid updateReq = request.persist().using(editableA);
updateReq.fire(...);

and on the db I got the new name xxx.
But if I'll add this to change some values into B instance:

editableA.getSelections().get(1).setAccepted(true);

the changes are not stored into db!
I try to change the persist call with:

request.persist().using(editableA).with(selections).fire(...)

but nothing changes :(
any hints?
-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



Article about RequestFactory in Italian

2011-03-18 Thread Luca
Hi all, in our Google Tech User Group blog we published an article about 
RequestFactory.
This article is written in italian.

Hope this can help someone.

Bye.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



Article about RequestFactory (in italian)

2011-03-18 Thread Luca
Hi all, in our Google Tech User Group blog we published an article about 
RequestFactory.
This article is written in italian.

http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-1.html

Hope this can help someone.

Bye.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Article about RequestFactory (in italian)

2011-03-18 Thread Luca
Yes, code samples and two words about the Finite State Machine implemented 
into the RequestFactory servlet.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: FormPanel submit shows old page

2011-03-16 Thread Luca Meoni
Hi,

I have resolved the my trouble. I submit FormPanel on a hidden iframe
according with
documentation, so I have resolved make new FormPanel(_self) and
now it works.

Thanks bye

On 15 Mar, 16:15, Luca Meoni luck.m...@gmail.com wrote:
 Hi,

 I'm developing a web application based on GWT for client side and
 SpringFramework for server side.
 I submit a FormPanel on a SimpleFormController, the onSubmit method is
 called and it returns a new html but the browser shows me the old
 page. On start and on end jsp I have a GWT EntryPoint and I checks
 that the onModuleLoad method is called.
 I tryed to add these html tags to my jsp:

 meta http-equiv='Cache-Control' content='no-cache'
 meta http-equiv='expires' content='0'

 but I always saw the old page. I tryed to submit FormPanel on taget
 _blank and it works (the browser shows me the new page).

 Someone, can help me?

 If you need, I will send you sample of code.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



FormPanel submit shows old page

2011-03-15 Thread Luca Meoni
Hi,

I'm developing a web application based on GWT for client side and
SpringFramework for server side.
I submit a FormPanel on a SimpleFormController, the onSubmit method is
called and it returns a new html but the browser shows me the old
page. On start and on end jsp I have a GWT EntryPoint and I checks
that the onModuleLoad method is called.
I tryed to add these html tags to my jsp:

meta http-equiv='Cache-Control' content='no-cache'
meta http-equiv='expires' content='0'

but I always saw the old page. I tryed to submit FormPanel on taget
_blank and it works (the browser shows me the new page).

Someone, can help me?

If you need, I will send you sample of code.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



removing focus border from CellTable cells

2011-03-11 Thread Luca Morettoni
I'm using a CellTable inside a project, all works file, but when I
click on a cell of the table I can see around clicked cell a
light-blue border, I checked CellTable css[1] but I can't find
anythings useful; I try to add this to my css:

.cellTableSelectedRowCell {
}

but the borser still there... any hint?

[1]http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/CellTable.css
-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: removing focus border from CellTable cells

2011-03-11 Thread Luca Morettoni
2011/3/11 Luca Morettoni l...@morettoni.net:
 I'm using a CellTable inside a project, all works file, but when I
 click on a cell of the table I can see around clicked cell a
 light-blue border, I checked CellTable css[1] but I can't find
 anythings useful; I try to add this to my css:

in attach you can see the border, just around the checkbox cell...

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.

attachment: border.png

Re: ServiceLocator and entities with collection

2011-02-19 Thread Luca
Thank you very much Thomas, to summarize what you sent me I can say that 
only many-to-one relationship are managed, one-to-many it's up to the 
developer ???

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: ServiceLocator and entities with collection

2011-02-19 Thread Luca
I got them, every collection has getter/setter, but they are not called on 
the server side.

Where is my mistake ??

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



Note: RequestFactory caches ServiceLocator and service instances, so make sure both are thread-safe.

2011-02-19 Thread Luca
Today, reading again the documentation to find a sparkle of light in 
implementing RequestFactory with EJBs, I read this note.

Now, it's not a problem if ServiceLocator are cached, there I do a simple 
JNDI lookup so every time the method is called we got a new Service 
instance.

The problem is the second part service instances are cached too, and this 
is not an option with EJBs because at any time the container can decide to 
discard that instance and the reference is to an invalid EJB.

Not only heavy loaded server can lead to the decision to deactivate the 
bean, but also any System Exception put the bean in an invalid state, and 
this is something that can happen often in production system.

How did you manager to deal with this ?? 

For now I decided to simply ignore the problem, but I'm not so confident 
with this.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



Problem with RequestFactory and two tier

2011-02-18 Thread Luca Masini
Hi guys, I spent some time trying to undestand why this piece of code (that 
I copied from the DynaTableRF) was not working for me:

final RequestContext context = driver.flush();

context.fire(new ReceiverVoid() {
@Override
public void onSuccess(Void response) {
// do something
}
});

No errors but the values modified on the proxy were not saved into the 
entity.

I saw that this method of the locator was called:

@Override
public MyEntity find(Class? extends MyEntity clazz, String id) {

and that the correct entity is returned, but anything is modified.

The fact is that the returned entity is updated with the new values from 
the SimpleRequestProcessor but at that time the session is closed and the 
entity is detached. This work on the DynaTableRF that use a filter that span 
the session for the duration of the overall request (OpenSessionInView) but 
doesn't work for me, I call EJB 3.0 methods and everything returned to the 
servlet tier is detached from the original session.

I solved this problem with a custom update method in my RequestContext, but 
I guess if I'm missing something in the understanding of the RequestFactory 
world.

Anyone with some advice ??
Thank you.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problem with RequestFactory and two tier

2011-02-18 Thread Luca
Hence from my understanding of 1.2 RequestFactory can't work with multitier 
architectures ??

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problem with RequestFactory and two tier

2011-02-18 Thread Luca
My data access layer is on another tier, I can't use a ThreadLocal because 
it can be executed on another thread or may be another node in the cluster.

Nothing strange at all, is plain old Java EE, the same problem was here from 
version 1.2, a 10yo technology.

So in practice how can we use this pattern with this that is a very standard 
architecture ??

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problem with RequestFactory and two tier

2011-02-18 Thread Luca
Interesting that you work with an architecture similar to mine.

What you are doing is exactly what I do, in my Locator's find I call and 
EJB's method (the EJB was previously found with a JNDI lookup) that 
correctly find the JPA Entity.

The problem for me is that the returned entity is detached and from the find 
all the RequestFactory framework works on that instance. All is done, but it 
will never written back to the database.

Where this happen in your setup ??

Thank you.

PS: I solved with a ServiceLocator, but I feel is not the right 
architecture.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problem with RequestFactory and two tier

2011-02-18 Thread Luca
In a JEE env this can be not true, my Session EJB can even run in another 
container, in another process, in another machine, so the cache (that is a 
good idea with only the servlet layer) is not implementable in this three 
tier architecture (of course I hope to be wrong !!!)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problem with RequestFactory and two tier

2011-02-18 Thread Luca
All works fine with the ServiceLocator, which greatly finds my Sessions and 
execute business logic.

What I mean is that the way Locator work, finding the entity with find and 
the updating relevant properties, is not implementable in Java EE, of course 
I hope I'm wrong.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Problem with RequestFactory and two tier

2011-02-18 Thread Luca
This works great me me too, but this mean that the Locator (and the way it 
works automatically with AutoBean) works in not implementable with 
multi-tier architecture.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



ServiceLocator and entities with collection

2011-02-18 Thread Luca
Hi all, I've found some difficulties in persisting entities with a 
ServiceLocator implementation.

In practice the entity passed to my persist method doesn't contains data of 
the contained collection.

I saw that everything arrives on the server (using a Network Monitor) but 
then when the entity is recreated the collection is not saved into it.

To proceed in my work I created a method that takes the collection as a 
separated argument, but of course this is not the correct way to do this.

Thank you for your advices.
L.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



multiple client request with RequestFactory

2011-02-16 Thread Luca Morettoni
Hello list, I have this scenario in a test project:

An Entity objects like this

class TestEntity {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long id;
  @Version
  @Column(name = version)
  private Integer version;
  @ManyToMany(cascade = CascadeType.ALL)
  private ListOtherEntity group1 = new ArrayListOtherEntity();
  @ManyToMany(cascade = CascadeType.ALL)
  private ListOtherEntity group2 = new ArrayListOtherEntity();
  @ManyToMany(cascade = CascadeType.ALL)
  private ListOtherEntity group3 = new ArrayListOtherEntity();

  // getter, setters and other methos
}

on the client I create all the requests (Proxies, RequestFactory ecc..)

and if I use this all work fine:

  final EventBus eventBus = new SimpleEventBus();
  requestFactory = GWT.create(TestEntityRequestFactory.class);
  requestFactory.initialize(eventBus);
  TestRequest request = requestFactory.testRequest();

  request.findTestEntity(1L)
.with(group1).with(group2).with(group3)
  .fire(new ReceiverTestEntityProxy() {
@Override
public void onSuccess(TestEntityProxy e) {
  // we can use e
}
  });

but if I want to do separare request for every group I need to
complete the first request and make the second request inside the
onSuccess method... there is another way to do this? I mean somethinks
like this:

  request.findTestEntity(1L)
.with(group1)
  .fire(new ReceiverTestEntityProxy() {
@Override
public void onSuccess(TestEntityProxy e) {
  // we can use e.group1
}
  });


  request.findTestEntity(1L)
.with(group2)
  .fire(new ReceiverTestEntityProxy() {
@Override
public void onSuccess(TestEntityProxy e) {
  // we can use e.group2
}
  });

ecc..
Thanks for the hints!

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: multiple client request with RequestFactory

2011-02-16 Thread Luca Morettoni
2011/2/16 Thomas Broyer t.bro...@gmail.com:
 A RequestContext can contain more than one invocation, but can only be
 fire()d once.
 context.findTestEntity(1L).with(group1).to(some receiver);
 context.findTestEntity(1L).with(group2).to(some other receiver);
 context.fire(); // with or without receiver
 This is however useless, as all invocations (calls to findTestEntity) will
 be batched as a single HTTP request.
 So, in your case, you have to create a new RequestContext for each
 invocation:
 factory.testRequest().findTestEntity(1L).with(group1).fire(...);
 factory.testRequest().findTestEntity(1L).with(group2).fire(...);

thanks Thomas, all work fine!!!
Where can I found more details (like yours) about RequestFactory?

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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: Generated Maven pom.xml does not add GWT project natures

2011-01-17 Thread Luca Morettoni
2011/1/2 Cheng Lee cheng@gmail.com:
 Hi GWT gurus,

 I'm generating an Eclipse project using webAppCreator. The project is
 created but the pom.xml does not contain the appropriate GWT project
 nature, meaning the application can't be launched as Web Application
 because the Project does not use GWT or GAE. The usual sequence to
 launch the app by right clicking the project root - Run As - Web
 Application is not available since it's not a GWT project.

you could check here:
http://code.google.com/eclipse/docs/faq.html#gwt_with_maven

and about the debugging phase you can read the generated README.TXT
file under your project subdir...


-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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.



GWT Plugin Change Folder

2010-01-22 Thread Luca Servalli
I have a web project in IBM RAD 7.5 that have folder WebContent
instead war.
Someone have a solution for plugin of google or I have to change the
name of folder?
thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Developing Google Gadget with Eclipse GWT plugin

2009-08-26 Thread Luca Masini

Hi guys, I wrote some notes on how to use the Eclipse Plugin to
develop Google Gadgets with GWT that are hosted on GAE

http://www.lucamasini.net/Home/gwt/google-app-engine/developing-google-gadget-with-eclipse-gwt-plugin

Hope this can help.
Ciao.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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
-~--~~~~--~~--~--~---



Developing Google Gadget with Eclipse GWT plugin

2009-08-26 Thread Luca Masini

I posted this on the Google Gadget Group (I think that is the rigth
one), but in case someone of you is interested  I wrote some notes on
how to use the Eclipse Plugin to develop Google Gadgets that are
hosted on GAE

 
http://www.lucamasini.net/Home/gwt/google-app-engine/developing-googl...

Hope this can help.
Ciao.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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
-~--~~~~--~~--~--~---



EXPECTED_GWT_ONLOAD_VERSION on GWT 1.7

2009-08-24 Thread Luca Masini

Hi guys, a simple question.

In the BrowserWidget class of GWT 1.7  we have this declaration:

  private static final String EXPECTED_GWT_ONLOAD_VERSION = 1.6;

When I use Google Gadget, its linker generate the control code that
then fail because it checks 1.7 against 1.6.

It's 1.6 for a good reason ?? Why the hell then the About class
returns 1.7 ??

Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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
-~--~~~~--~~--~--~---



RPC call blocked by ISA Server when using IE

2009-06-19 Thread Luca Rosellini

Hello everybody,
I need some help to understand what's going on with my GWT
application.
When using IE (same behaviour on IE7  8), sometimes our rpc calls
fail and the onFailure handler gets called.
The exception returned is a StatusCodeException which carries a status
code of 500.
Even though the error code returned is 500, no exception is raised on
the server.
Monitoring the http calls the browser does, I can see that all the
failing rpc calls get a 407 (proxy authentication required) error as
response from the proxy.
Actually I've not yet found a way to reproduce the error, but it
happens quite frequently.

Putting a proxy exception in IE configuration solves the problem but,
unfortunatley, ths is not an option for the production environment.

No problem with Firefox or Chrome.

anyone could help me to track down and solve the issue?

Thanks,
Luca

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
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
-~--~~~~--~~--~--~---