Re: Building a GWT project in Eclipse 2019-03+ with Java 11.

2022-02-21 Thread Luis Fernando Planella Gonzalez
> Our current workflow is using SuperDevMode + Jetty and I'd like to 
provide similar experience to our team.
I had a similar concern, as before we both SuperDevMode and the app in the 
same Java process.
After the switch, we need to start the codeserver and then the app, via 
Tomcat. But, things went well, because:

   1. You don't have to start your app in the build tool and connect 
   remotely. The codeserver will write its files to the same place as the 
   regular compilation would, and you can start your app in a debug session in 
   Eclipse. We're using the built-in Tomcat server (with Eclipse WTP). Just 
   make sure that after starting the codeserver, you have your workspace 
   refreshed, so Eclipse can publish it accordingly (that's why we wrote the 
   script, as mentioned in the previous post)
   2. Starting the codeserver is actually slower than the app (at least for 
   us, and the app is huge). When you debug the app, you'll eventually do an 
   incompatible change that needs to restart the app. When using the 
   codeserver as a separated process, it stays there, in the same place, even 
   when you restart the app. IMO, this ended up being more productive than the 
   previous setup
   3. If GWT 3 is ever released, having a separated codeserver will be the 
   only option
   

Em domingo, 20 de fevereiro de 2022 às 20:55:55 UTC-3, tequil...@gmail.com 
escreveu:

> Thanks for the answer
>
> > Can't you somehow disable the module path or put all dependencies in the 
> classpath rather than the module path?
>
> Do you mean disabling java.xml module of JRE and depend on all xml stuff 
> explicitly? It means I'd have to rely on dependencies instead of stock 
> libraries (general app architecture choice) just to comply with a flawed 
> development tool needed only to run debug sessions. I'd prefer to avoid it 
> unless it's the only way.
>
> >  Alternatively, how about not using the Eclipse GWT Plugin?
>
> Our current workflow is using SuperDevMode + Jetty and I'd like to provide 
> similar experience to our team. 
> I saw such solutions (using gradle gretty plugin), so far decided against 
> it. As far as I understand running the code server and my webapp via Gradle 
> without Eclipse GWT plugin brings more hassle into everyday development 
> routine. This way the webapp must be launched not as Eclipse debugging 
> session but as Gradle task, and connected via remote debugging session. I'd 
> like to avoid it.
>
> воскресенье, 20 февраля 2022 г. в 12:33:18 UTC+1, t.br...@gmail.com: 
>
>> On Saturday, February 19, 2022 at 1:57:16 AM UTC+1 tequil...@gmail.com 
>> wrote:
>>
>>> Hi Jasper
>>>
>>> I'll be just glad if my current progress saves someone's time.
>>> I progress on step by step basis, so far I succeeded in Eclipse build 
>>> and debugging.
>>>
>>> Most of my problems were caused by combination of JDK11+ (namely 
>>> modules) + Gradle + Eclipse + Eclipse GWT Plugin. 
>>>
>>> Reason: GWT SDK gwt-dev.jar contains lot of classes that must not be 
>>> visible to Eclipse compiler, but in fact they are, causing dreaded "The 
>>> package org.w3c.dom is accessible from more than one module: , 
>>> java.xml" error.
>>> When `gradle build` is issued in command line the gwt-dev.jar from the 
>>> maven repository is linked, it contains exactly essential google classes 
>>> and nothing more. Thus the build succeeds.
>>>
>>> But when you import such project in Eclipse under JDK11+ (I use JDK17) 
>>> and select a GWT SDK there're lots of build errors caused by "The package 
>>> is accessible from more than one module"
>>>
>>
>> Can't you somehow disable the module path or put all dependencies in the 
>> classpath rather than the module path?
>>
>> https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-properties-build-path.htm%3D%2522%256a%2570%256d%2573%2522%2520%2522%256a%2570%256d%2522%2520
>>  
>>
>> Alternatively, how about not using the Eclipse GWT Plugin?
>>
>

-- 
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/b90a7c37-81ad-4768-ad97-e6a830e9a670n%40googlegroups.com.


Re: Building a GWT project in Eclipse 2019-03+ with Java 11.

2022-02-20 Thread Luis Fernando Planella Gonzalez
We started using GWT in our project in 2009 (GWT 1.5.0!)
When we moved from Maven to Gradle in 2020 (one of the best decisions ever, 
because the project is complex, has a lot of code generation and Gradle's 
skipping of already executed tasks is a must - it was unbearable with 
Maven), we've also dropped the GWT Eclipse plugin altogether.
Also, we don't use a GWT plugin for Gradle either: instead, we just run 
either GWT codeserver or compiler via their main classes, setting up the 
classpath correctly.
To start with, as we already had multiple modules in the build system (api 
/ impl / web, etc), we've split the GWT classes to a new module (no longer 
the web project). 

Attached in this post is the anonymized and stripped down build.gradle file 
for the gwt module.

Finally, for us to be productive again in Eclipse, we've written a script 
that does the following:

   1. Delete the destination's nocache.js file
   2. Starts the code server via gradle, redirecting the output to a file
   3. Sleeps until the nocache.js file exists again
   4. Write the PID of the gradle process to a file
   
We run this from an Eclipse external tool, and have the tool's refresh 
option to refresh the web's project output dir. This way the publishing 
works flawlessly in Eclipse with a Tomcat server.

We've also created other 2 similar scripts / Eclipse tools: one to stop the 
codeserver (kill the process with the PID indicated in the file) and 
another one to show the codeserver log (tail -f1000 -n in the output file).

We'll never look back to neither the Eclipse plugin (which did many other 
things we don't use) nor to a Gradle plugin (which were mostly written once 
and abandoned, and Gradle evolves fast, introducing breaking changes, and 
that broke the project more than once).

Em domingo, 20 de fevereiro de 2022 às 08:33:18 UTC-3, t.br...@gmail.com 
escreveu:

> On Saturday, February 19, 2022 at 1:57:16 AM UTC+1 tequil...@gmail.com 
> wrote:
>
>> Hi Jasper
>>
>> I'll be just glad if my current progress saves someone's time.
>> I progress on step by step basis, so far I succeeded in Eclipse build and 
>> debugging.
>>
>> Most of my problems were caused by combination of JDK11+ (namely modules) 
>> + Gradle + Eclipse + Eclipse GWT Plugin. 
>>
>> Reason: GWT SDK gwt-dev.jar contains lot of classes that must not be 
>> visible to Eclipse compiler, but in fact they are, causing dreaded "The 
>> package org.w3c.dom is accessible from more than one module: , 
>> java.xml" error.
>> When `gradle build` is issued in command line the gwt-dev.jar from the 
>> maven repository is linked, it contains exactly essential google classes 
>> and nothing more. Thus the build succeeds.
>>
>> But when you import such project in Eclipse under JDK11+ (I use JDK17) 
>> and select a GWT SDK there're lots of build errors caused by "The package 
>> is accessible from more than one module"
>>
>
> Can't you somehow disable the module path or put all dependencies in the 
> classpath rather than the module path?
>
> https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-properties-build-path.htm%3D%2522%256a%2570%256d%2573%2522%2520%2522%256a%2570%256d%2522%2520
>  
>
> Alternatively, how about not using the Eclipse GWT Plugin?
>

-- 
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/5974a25e-6e59-435c-b7af-05d1b4e038f2n%40googlegroups.com.
description = 'GWT client'

ext {
buildWebapp = "${project(':projectname-web').buildDir}/generated/webapp"
gwtDev = Boolean.getBoolean('gwt.development')
}

sourceSets {
main {
java {
srcDir rpcSrc
srcDir exceptionsSrc
}
}
}

configurations {
gwt
}
dependencies {
api project(':projectname-api')
implementation "com.google.gwt:gwt-user:$gwtVersion"
implementation("com.github.branflake2267:gwt-maps-api:$googleMapsApiVersion") {
transitive = false
}
implementation "com.google.elemental2:elemental2-webstorage:$elementalVersion"
implementation "com.google.elemental2:elemental2-dom:$elementalVersion"
implementation "com.google.elemental2:elemental2-promise:$elementalVersion"

gwt(project(':projectname-api')) { transitive = false }
gwt files(project.sourceSets.main.java.srcDirs)
gwt files(project.sourceSets.main.resources.srcDirs)
gwt files(project(':projectname-common').sourceSets.main.java.srcDirs)
gwt files(project(':projectname-api').sourceSets.main.java.srcDirs)
gwt files(project(':projectname-api-core').sourceSets.main.java.srcDirs)
gwt "com.google.gwt:gwt-user:$gwtVersion"
gwt "com.google.code.gwtx:gwtx:$gwtxVersion"
gwt 

Re: New Article "10 Best Java Frameworks to Use in 2021"

2021-03-11 Thread Luis Fernando Planella Gonzalez
We ended up using no plugins for GWT with Gradle. Even if there are some, 
none of them fit well.
Luckily, GWT compiler has a nice CLI, so...
Also, we make the gwt a subproject, as we don't use GWT RPC anyway. This 
helps keeping gwt-dev out of any runtime classpath!!!

Below is a trimmed version (not sure it even compiles, and it is the 
build.gradle for a subproject) of the build.gradle file for reference, for 
both compilation (even with a system flag to compile only the dev module) 
and for running the super dev mode:

ext {
buildWebapp = "${project(':web').buildDir}/generated/webapp"
gwtDev = Boolean.getBoolean('gwt.development')
}

configurations {
gwt
}
dependencies {
gwt(project(':api')) { transitive = false }
gwt files(project.sourceSets.main.java.srcDirs)
gwt files(project.sourceSets.main.resources.srcDirs)
gwt files(project(':api').sourceSets.main.java.srcDirs)
gwt "com.google.gwt:gwt-user:$gwtVersion"
gwt "com.google.code.gwtx:gwtx:$gwtxVersion"
gwt "com.github.branflake2267:gwt-maps-api:$googleMapsApiVersion"
gwt "com.google.elemental2:elemental2-webstorage:$elementalVersion"
gwt "com.google.elemental2:elemental2-dom:$elementalVersion"
gwt "com.google.elemental2:elemental2-promise:$elementalVersion"
gwt "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
gwt "com.google.gwt:gwt-dev:$gwtVersion"
}

task compileGwt(type: JavaExec) {
dependsOn compileJava
ext {
outDir = "$buildWebapp/gwt"
}
group = 'Build'
description = 'Compile the GWT source'
inputs.files configurations.gwt
inputs.property 'development', gwtDev
outputs.dir outDir
classpath = configurations.gwt
main = 'com.google.gwt.dev.Compiler'
args = []
args += ['-sourceLevel', "1.$javaVersion"]
args += ['-war', buildWebapp]
args += ['-logLevel', 'INFO']
args += ['-workDir', "$buildDir/tmp/gwt"]
args += ['-XfragmentCount', '6']
args += ['-failOnError']
if (gwtDev) {
args += ['-style', 'PRETTY']
args += ['-draftCompile']
args += ['-optimize', '0']
args += ['-XmethodNameDisplayMode', 'ABBREVIATED']
args += ['org.example.MyModuleDev']
} else {
args += ['-style', 'OBFUSCATED']
args += ['-optimize', '9']
args += ['-XnoclassMetadata']
args += ['org.example.MyModule']
}
}
task cleanGwtTemp {
doLast {
ant.delete(dir: "$buildWebapp/gwt")
ant.delete(dir: "$buildDir/tmp/gwt")
}
}
clean {
dependsOn cleanGwtTemp
}

task gwtSuperDev(type: JavaExec) {
dependsOn compileJava
description = 'Run the GWT code server for Super Dev Mode'
classpath = configurations.gwt
main = 'com.google.gwt.dev.codeserver.CodeServer'
args = []
args += ['-sourceLevel', "1.$javaVersion"]
args += ['-launcherDir', buildWebapp]
args += ['-logLevel', 'INFO']
args += ['-workDir', "$buildDir/tmp/gwt"]
args += ['-precompile']
args += ['-failOnError']
args += ['-bindAddress', '0.0.0.0']
args += ['org.example.MyModuleDev']

doFirst {
file("$buildDir/tmp/gwt").mkdirs()
}
}



Em quarta-feira, 10 de março de 2021 às 12:44:57 UTC-3, aka...@gmail.com 
escreveu:

> Even if it is opinionated, please give us Gradle GWT archetype. :-)
>
> On Wednesday, March 10, 2021 at 5:25:47 PM UTC+2 t.br...@gmail.com wrote:
>
>>
>>
>> On Wednesday, March 10, 2021 at 4:13:03 PM UTC+1 pavel@gmail.com 
>> wrote:
>>
>>> We had the same problem with maven but at the end, maven's multi-module 
>>> project and profiles helped to solve *hack around* it.
>>>
>>
>> There, fixed it for you 
>>
>> Also see https://www.cloudbees.com/blog/maven-profiles-and-maven-way and 
>> https://blog.soebes.de/blog/2013/11/09/why-is-it-bad-to-activate-slash-deactive-modules-by-profiles-in-maven/
>>  
>> among others, by prominent Maven PMC members.
>> (and yet, gwt-maven-archetypes use a "dev" profile 路, but it's know to 
>> be kind of hackish in places due to Maven and jetty-maven-plugin's 
>> limitations)
>>
>

-- 
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/b369da9d-78fc-4d5f-9227-68a47b18dd61n%40googlegroups.com.


Re: Is GWT 3.0 /GWT 2.9 dead?

2020-02-20 Thread Luis Fernando Planella Gonzalez
It is great to know we can use the snapshot with support for Java 11 
already!
Unfortunately, except for the GWT team and those that follow the project 
closely, it looks like GWT is stuck at the 2.8.2 release 2.5 years ago, 
because the GWT official website contains no information on this. Maybe it 
would be good to put some text in the home page pointing to this.
I'm surely much more optimistic now that I know there is an usable updated 
version.
Great work, guys!

Em quinta-feira, 20 de fevereiro de 2020 08:01:43 UTC-3, Ahmad Bawaneh 
escreveu:
>
> And lets not forget that it is not so long since j2cl was made public.
>
> On Thursday, February 20, 2020 at 1:00:33 PM UTC+2, Ahmad Bawaneh wrote:
>>
>> You dont need to maintain a separate branch or code base, you can use the 
>> latest snapshot which is as stable as a release, i am pretty sure when 2.9 
>> is release you will only need to switch version and everything still works, 
>> if you can use the snapshot for some reason you can use the unofficial 
>> release as discussed here 
>> https://groups.google.com/forum/#!topic/google-web-toolkit/qmwiMVofhR8/discussion
>>  or 
>> you can fork and release internally.
>>
>> and the community work, we need to know that the active members in the 
>> community is small, that is said we could have made a GWT3.0 a lot earlier, 
>> we could have focused in shipping a working maven plugin for j2cl and call 
>> the day, but most of the efforts is focused in making sure that old apps 
>> will be able to migrate to gwt3.0 without much effort and this part in 
>> specific is very important and very hard and consumes a lot of time, GWT 
>> apps in general are big apps and making GWT3.0 that only works for new apps 
>> only or requires app rewrite does not make any sense.
>>
>> to get more insight on what have been done check this list
>>
>> https://ci.vertispan.com/ 
>>
>> On Wednesday, February 19, 2020 at 3:21:03 PM UTC+2, Luis Fernando 
>> Planella Gonzalez wrote:
>>>
>>> It has always been said that GWT is active when similar questions are 
>>> asked in the forum.
>>> However, given that the last version, 2.8.2, was released on Oct 19, 
>>> 2017 and was a bugfix for the 2.8.0 version, released on Oct 20, 2016, I 
>>> can't see it as "active".
>>> At least it smells bad!
>>> Even the 1.0 release of Elemental can't be used, because it requires 
>>> newer components than the pre-packaged version.
>>> It is a sad thing, because I work on a large project using GWT since its 
>>> 1.5.0 version, and our project is actively developed and still evolving.
>>> I hope GWT 2.9 is out "soon", because we're planning to switch to Java 
>>> 11 in the coming months, and it would be a burden to maintain a separated 
>>> Java version only for the frontend part (been there, done that with Java 8).
>>> The fact is that since Google left the project, things are way too slow.
>>> Understandable, as it is based on best effor from the brave developers, 
>>> but still disheartening.
>>> Still, I don't loose hope that GWT will be still maintained.
>>>
>>> Em terça-feira, 18 de fevereiro de 2020 12:08:40 UTC-3, Jeff Zemsky 
>>> escreveu:
>>>>
>>>> Frank - Thanks for the reply, but it would be good to understand the 
>>>> plans to complete the GWT 2.9 release - particularly with reference to 
>>>> Java 
>>>> 11 support.  Any insight there?
>>>>
>>>> On Monday, January 27, 2020 at 4:23:09 AM UTC-5, Frank Hossfeld wrote:
>>>>>
>>>>> Atm the community is very active. We are working on GWT modules: 
>>>>> replacing generators and JSNI, testig the migraed moules against J2CL, 
>>>>> etc.
>>>>> Besides that, many new frameworks are evolving.
>>>>>
>>>>> Take a look at this rooms:
>>>>> https://gitter.im/gwtproject/gwt
>>>>> https://gitter.im/vertispan/j2cl
>>>>> https://gitter.im/DominoKit/domino
>>>>> to get more infos.
>>>>>
>>>>

-- 
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/9bf77f8d-2c11-4d1f-98f2-aa1ca188eb43%40googlegroups.com.


Re: Is GWT 3.0 /GWT 2.9 dead?

2020-02-19 Thread Luis Fernando Planella Gonzalez
It has always been said that GWT is active when similar questions are asked 
in the forum.
However, given that the last version, 2.8.2, was released on Oct 19, 2017 
and was a bugfix for the 2.8.0 version, released on Oct 20, 2016, I can't 
see it as "active".
At least it smells bad!
Even the 1.0 release of Elemental can't be used, because it requires newer 
components than the pre-packaged version.
It is a sad thing, because I work on a large project using GWT since its 
1.5.0 version, and our project is actively developed and still evolving.
I hope GWT 2.9 is out "soon", because we're planning to switch to Java 11 
in the coming months, and it would be a burden to maintain a separated Java 
version only for the frontend part (been there, done that with Java 8).
The fact is that since Google left the project, things are way too slow.
Understandable, as it is based on best effor from the brave developers, but 
still disheartening.
Still, I don't loose hope that GWT will be still maintained.

Em terça-feira, 18 de fevereiro de 2020 12:08:40 UTC-3, Jeff Zemsky 
escreveu:
>
> Frank - Thanks for the reply, but it would be good to understand the plans 
> to complete the GWT 2.9 release - particularly with reference to Java 11 
> support.  Any insight there?
>
> On Monday, January 27, 2020 at 4:23:09 AM UTC-5, Frank Hossfeld wrote:
>>
>> Atm the community is very active. We are working on GWT modules: 
>> replacing generators and JSNI, testig the migraed moules against J2CL, etc.
>> Besides that, many new frameworks are evolving.
>>
>> Take a look at this rooms:
>> https://gitter.im/gwtproject/gwt
>> https://gitter.im/vertispan/j2cl
>> https://gitter.im/DominoKit/domino
>> to get more infos.
>>
>

-- 
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/498010d4-aca5-4430-8707-c61d15a0cffb%40googlegroups.com.


Re: GWT 2.8.0-rc1 and closure compiler

2016-08-04 Thread Luis Fernando Planella Gonzalez
Em quinta-feira, 4 de agosto de 2016 12:03:04 UTC-3, Thomas Broyer escreveu:
>
>
>
> On Thursday, August 4, 2016 at 2:21:29 PM UTC+2, Luis Fernando Planella 
> Gonzalez wrote:
>>
>> I've always used the closure compiler with past versions (even with 
>> 2.8.0-beta1, which we have used in production already).
>> Now, to my surprise, it is no longer supported in GWT 2.8.0-rc1, as 
>> there's no mention to it in the release notes (
>> http://www.gwtproject.org/release-notes.html).
>>
>
> We may want to add a note about it; but that was an experimental feature 
> and those tend to come and go as experiments prove their value or not.
> See 
> https://gwt.googlesource.com/gwt/+/162ccc9c9112a09bf9ea046da95760f5f1886b72%5E%21/
>  
> for the rationale.
>

Ok. In our project, we used to enable the closure compiler because the 
codebase is quite large, and closure compiler helped in reducing further 
the code size. I don't have the numbers at hand, but the full code size 
(including all split points) is about 2.8M, and closure compiler reduced 
some hundred kilobytes from it.
 

>  
>
>> Now the compiler no longer supports the old closure compiler option, but 
>> has a new -X[no]closureFormattedOutput option.
>>
>
> It's not really new actually: 
> https://gwt.googlesource.com/gwt/+/6fa611cf9ad7ffa077a7378a100a7ccbd95e3cb3%5E%21/
>

I have assumed it was new because it is not present as option in the 
gwt-maven-plugin (which is updated up to the beta1).

 
>
>> I'm guessing closure compiler is no longer integrated in GWT, but it 
>> still has the option to format for closure to a later (manual) usage of 
>> closure compiler.
>> I'm using the gwt-maven-plugin, which still uses beta1, but explicitly 
>> changing its dependencies to 2.8.0-rc1 for gwt-user, gwt-dev and 
>> gwt-codeserver artifacts, making it usable already for rc1.
>> I can't, however, pass the new option (I think there's no way to pass 
>> arbitrary compiler arguments with gwt-maven-plugin) until the maven plugin 
>> is updated.
>>
>> What are the new instructions to keep using closure compiler?
>>
>
> There aren't (see comment about -XclosureFormattedOutput in the commit 
> message that introduced it)
> Do you really *need* it?
>

I was assuming that flag was needed in order to generate code that complies 
with the closure compiler limitations 
(https://developers.google.com/closure/compiler/docs/limitations).
Maybe that is not the case and I can just invoke the closure compiler 
manually on the generated GWT code? Should I expect any runtime problems by 
doing this?

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


GWT 2.8.0-rc1 and closure compiler

2016-08-04 Thread Luis Fernando Planella Gonzalez
I've always used the closure compiler with past versions (even with 
2.8.0-beta1, which we have used in production already).
Now, to my surprise, it is no longer supported in GWT 2.8.0-rc1, as there's 
no mention to it in the release notes 
(http://www.gwtproject.org/release-notes.html).

Now the compiler no longer supports the old closure compiler option, but 
has a new -X[no]closureFormattedOutput option.
I'm guessing closure compiler is no longer integrated in GWT, but it still 
has the option to format for closure to a later (manual) usage of closure 
compiler.
I'm using the gwt-maven-plugin, which still uses beta1, but explicitly 
changing its dependencies to 2.8.0-rc1 for gwt-user, gwt-dev and 
gwt-codeserver artifacts, making it usable already for rc1.
I can't, however, pass the new option (I think there's no way to pass 
arbitrary compiler arguments with gwt-maven-plugin) until the maven plugin 
is updated.

What are the new instructions to keep using closure compiler?

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


Generic way to acess a entityProxy properties

2016-03-04 Thread Fernando Castro
Good night.

As i have a dozen entities in my system, and pretty much the same layout 
for their display, i'm trying to create a generic panel, wich could receive 
any entityProxy and a set of parameters, those parameters would be the path 
of the attribute i'm trying to display.
My ideas was to, from the proxy, read the value based on a path, like the 
"with" from the request context. 

Something like this:
Person has a Address
Address has a street_name

String name = person.getAttribute("address.streetName");

Has someone ever did something similar?

-- 
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: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

2015-11-30 Thread Fernando Almeida
Jeff, it worked for me too. Thanks.

On Friday, June 14, 2013 at 2:02:26 AM UTC+1, Jeff Guangjian Du wrote:
>
> well well, 4 years later, I came across the same problem.
> here's my solution:
> open regedit.exe ( really hate Microsoft and their regedit.reg).
> change the permission of key: 
> HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft.Right click the icon, then change 
> the permission to full operation.
>
> On Saturday, June 27, 2009 3:03:20 PM UTC-4, Farinha wrote:
>>
>> The subject has it all. 
>>
>> Eclipse 3.4.2 
>> GWT Eclipse Plugin 
>> Windows 7 
>>
>> Thanks in advance for the help. 
>>
>

-- 
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: Next release

2015-10-16 Thread Luis Fernando Planella Gonzalez
"classpath conflict is generally not a valid reason, because the part of 
GWT that includes Jetty is not concerned about the server side of the 
applications"
Unless you run [Super]DevMode, which runs both in a single JVM, then it is 
a pain.
There are other libs which are bundled in GWT jars, causing some 
inconveniences too, like 
IMHO, saying to run with -noserver is not a perfect solution either, 
because it complicates things, requiring 2 jvms, and don't playing well 
with RPC and security policies.
Having most of people (if not all) using either an IDE plugin or Maven, 
which can manage the classpath, I don't see a reason to bundle (very old) 
3rd party classes in the GTW jar.

Em sexta-feira, 16 de outubro de 2015 06:13:38 UTC-3, Thomas Broyer 
escreveu:
>
>
> On Thursday, October 15, 2015 at 9:25:40 PM UTC+2, bendg25 wrote:
>>
>> Can you ditch the embedded Jetty server please.
>>
>
> Hmm, no. But it'd be interesting to know the reason for that request.
> For example, a classpath conflict is generally not a valid reason, because 
> the part of GWT that includes Jetty is not concerned about the server side 
> of the applications, and the part of your application that would need Jetty 
> is likely its server side. So the answer in such case is to "just" use 
> different classpaths/build paths for the client and server sides.
>

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


GWT 2.8 update

2015-07-10 Thread Luis Fernando Planella Gonzalez
I'd like to ask for an update on the planning for 2.8 release.
Are there still many missing functionality? What is the tentative release 
schedule?
I'm avid to change our project source level to Java 8, but I'm not 
confident in using the SNAPSHOT in a release version of our app.
Any chances it will be out still in August?
Thanks, Luis.

-- 
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: Static vs dynamic String internationalization

2015-02-24 Thread Luis Fernando Planella Gonzalez
That, of course, depends on the application requirement.
I work on a very large app which is not (only) used by ourselves, but by 
other organizations.
And on each organization, administrators can change translations on the fly 
- just a F5 or logout / login away.
In this scenario, of course, there is no choice.
We even created a custom translations loading mechanism that efficiently 
use the browser cache and load translations in parts, as there are more 
than 4k keys, as we don't want all them to be always downloaded.
Each page (it all started in GWT 1.5, before GWT places existed) knows 
which translation part it needs, so we guarantee to load the required 
translations before showing the page.
But, I agree, it is a very specific requirement. Maybe 99% of the 
applications are fine with static internationalization. We're part of the 
other 1%.
-- Luis

Em segunda-feira, 23 de fevereiro de 2015 19:33:34 UTC-3, Jens escreveu:


 - The big advantage of dynamic internationalization to me, is that I can 
 store my translations in a database, and update texts without the need of 
 stopping servers to deploy a new compiled version of my application.

  
 Not sure if its that big of an advantage. IMHO translations rarely change 
 and the number of supported languages is probably already known upfront and 
 does not change often either.

 Also if done right, updating an app does not cause any downtime especially 
 if only translations have changed or languages have been added. The worst 
 case is that a user gets a message App has been updated and needs to be 
 reloaded. If your app uses history tokens (e.g. GWT places) then reloading 
 the current place doesn't really hurt.

 -- 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: Current state of one .js file per module

2014-12-06 Thread Luis Fernando Planella Gonzalez
Ok, I'll try to use separated servers for code server and server side.

Regarding the monolithic .js, in GWT 1.6 it was impossible to debug in both 
Chrome and Firefox - they both crashed, and I always suspected that the js 
/ sourcemap file were too big.
Now with GWT 2.7 I can debug normally in Chrome (didn't try in Firefox 
yet). 
Still I guess it could be faster to debug using separated .js files. 
However, as this is no longer GWT's goal, ok.
At least now debugging in Chrome is usable, and I no longer need that old 
version of Firefox 26 which still runs the classic dev mode.

Em sexta-feira, 5 de dezembro de 2014 12h31min41s UTC-2, Jens escreveu:

 Separate compilation mentioned in your linked issue has been reworked into 
 incremental per file compilation what you have now with GWT 2.7. The 
 benefit is that people do not have to refactor their applications into 
 multiple modules to get the benefit of faster recompiles in SDM. 


 Regarding CodeServer restarts:

 With current GWT master branch, a restart of the CodeServer reuses the 
 caches from the last compile which reduces the startup time of CodeServer 
 significantly.

 Keep in mind that you do not have to use the DevMode class to start the 
 embedded Jetty + Code Server process. You can also split these processes so 
 you do not have to restart SDM CodeServer if you do a server side change.

 DevMode -noserver or launching CodeServer directly only starts the SDM 
 code server. Then you can provide your own application server or actually 
 start DevMode -nosuperdevmode which does start classic DevMode but also 
 the embedded Jetty for your server side code.

 I rarely restart CodeServer during the work day.


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


Current state of one .js file per module

2014-12-05 Thread Luis Fernando Planella Gonzalez
Hi.
I created an issue several months ago - 
https://code.google.com/p/google-web-toolkit/issues/detail?id=8581[1] to split 
up generated .js.
The answer was that a .js file, with its corresponding source map, would be 
generated per module.
I'm analyzing now (with GWT 2.7.0) the output, and I still have 1 single 
monolithic, .js file and a single source map.
Has this subject been aborted, postponed, or just not enabled by default?
My project is big. It would be great if the files were split per module, as 
commented in the issue.

I'd love to improve this, and reduce the timings on it.
Specially between runs - sometimes small incompatible debug changes in server 
side forces a restart - and a new compilation.
In this case, the reload button doesn't help, as the JVM is inconsistent anyway.
Just for the record, here's the compilation log for the project (the real 
module was changed to package.Project).

GET /recompile/project
   Job package.Project_1_0
  starting job: package.Project_1_0
  binding: user.agent=safari
  Compiling module package.Project
 Unification traversed 99049 fields and methods and 8257 types. 8223 
are considered part of the current module and 8223 had all of their fields and 
methods traversed.
 Compiling 1 permutation
Compiling permutation 0...
Linking per-type JS with 8207 new types.
   prelink JS size = 21670288
   prelink sourcemap = 21670288 bytes and 461483 lines
   postlink JS size = 21503531
   postlink sourcemap = 21503531 bytes and 458742 lines
Source Maps Enabled
 Compile of permutations succeeded
 Compilation succeeded -- 87,370s
  Linking into 
/tmp/gwt-codeserver-6688054585701610251.tmp/package.Project/compile-2/war/project;
 Writing extras to 
/tmp/gwt-codeserver-6688054585701610251.tmp/package.Project/compile-2/extras/project
 Link succeeded
 Linking succeeded -- 2,417s
  90,304s total -- Compile completed



[1] https://code.google.com/p/google-web-toolkit/issues/detail?id=8581

-- 
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: add mobile version to existing GWT app?

2014-11-30 Thread Luis Fernando Planella Gonzalez


 ok, but this leads me to the question, why we don't use REST/JSON right 
 from the beginning?
 Isn't it a potential option for nearly any web application today to be 
 complemented by a mobile version some day?

 
I work in a large project which started in 2008, but was not full time back 
then, and only about, say 2011 got real priority.
We started with the just released GWT 1.5, and there was not too many 
things to choose as today.
Now we have a mobile app, and we have 2 entry point servlets: one to handle 
GWT RPC, and another one which exposes services in a rpc-like with json 
(not REST, as we don't want to maintain 2 APIs - it is just mirrored using 
Jackson).

Not to say that we have A LOT of generated code to handle RPC. The current 
total size of our app is 3.3MB, where 6.4MB is for generated code for RPC 
(according to the compile report). Of course we use code splitting, but 
we're currently struggling on reducing the sizes. Currently, we have 975KB 
of initial download, 370KB of leftover and 9 split points (432KB max).

If I'd start the project today, I'd just use plain REST / JSON for both the 
desktop and mobile versions.

-- 
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: add mobile version to existing GWT app?

2014-11-30 Thread Luis Fernando Planella Gonzalez


 ok, but this leads me to the question, why we don't use REST/JSON right 
 from the beginning?


 At the beginning of a project you usually know what you want to do. So if 
 you want native clients for different platforms then you will start with 
 some sort of REST/JSON or protobuff/thrift/... backend.


When we started the current development, nobody cared about mobile apps or 
mobile versions of websites.
Of course mobile today is the norm.
But who knows what other device factor we'll have to support in some years 
from now? 

-- 
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: Firing Custom Event in GWT

2014-08-24 Thread Fernando Castro
If you are firing a event when there is a change event or a blur event. i 
don't think you will have a performance issue, however, if you are 
listening to the key pressed event, so maybe you application will be a bit 
slower.

Em quarta-feira, 23 de julho de 2014 02h36min27s UTC-3, Mohammed Sameen 
escreveu:

 Hi All,
 In my GWT application,I have written my own custom event for enabling the 
 button whenever the text box (or some other filed) is edited.The event is 
 keep on  firing whenever there is a change is text box.Is there any 
 performance issue.Is there any way to fire the event only once?Please give 
 your suggestion.Thanks in Advance..


-- 
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: OnClick event fired more than one time for one click

2014-08-24 Thread Fernando Castro
In my practice i have seen this behavior a few times and i can say that, 
this double click is a matter of several factors, OS, browser version, the 
mouse the user have.

But i had a few times the following problem.
i had a flow where i added a click handler to my widget, however this flow 
was called more tha once, in result, i had added 2 click handles to the 
same component.
1 click = handler invoked 2 times. and so on.

Em terça-feira, 22 de julho de 2014 13h34min56s UTC-3, new_newbie escreveu:

 Hi,

 I have an image and I have installed an ClickHandler. More than one event 
 are sent when the image is clicked once. The number of click events are not 
 random; there is a pattern. Any clue?

 Thanks a lot


-- 
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 trigger a click in a Frame

2014-08-24 Thread Fernando Castro
I have a third party application that i want to embedded in my GWT app, 
however, this application is a swf, with a menu for some intro animation. I 
want to trigger a click the menu when the swf load to open the part that i 
need.

Does someone have a idea?

-- 
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: Using SuperDevMode with code splitting

2014-02-18 Thread Luis Fernando Planella Gonzalez
Well, I hope this will be sorted out, because debugging on a monolithic 
code of hundreds of thousands lines of code simply doesn't work - the 
browser hangs as expected.
There's the following statement on 
http://www.gwtproject.org/articles/superdevmode.html : Currently, Super 
Dev Mode doesn't work on some very large GWT apps where classic Dev Mode 
works.
This is probably because of the generated JS code size, but I'm sure 
this will be worked out. Otherwise, GWT will die in the short-mid term, 
because browser plugin based debugging is mostly dead (already in FF, 
soon in Chrome).


Luis Fernando Planella Gonzalez

Em 18-02-2014 04:57, Klemens Schrage escreveu:
Maybe there are technical reasons for this since trying to use 
SourceMaps with CodeSplitting in a production environment gave me 
debugging problems (see 
https://groups.google.com/forum/#!topic/google-web-toolkit/kUpx5pOkqJs 
https://groups.google.com/forum/#%21topic/google-web-toolkit/kUpx5pOkqJs).

--
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/dFyODLo7QMo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
google-web-toolkit+unsubscr...@googlegroups.com.

To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using SuperDevMode with code splitting

2014-02-17 Thread Luis Fernando Planella Gonzalez
I've reported 
https://code.google.com/p/google-web-toolkit/issues/detail?id=8581 
regarding this.

It is very important for large projects to work with SuperDevMode.
So, if anyone has the same problem, please, start the issue.
Best regards, Luis


Em 15-02-2014 10:53, Thomas Broyer escreveu:



On Friday, February 14, 2014 8:50:22 PM UTC+1, Luis Fernando Planella 
Gonzalez wrote:


Well, after patching CompilerOptionsImpl in gwt-codeserver.jar to
return true in isRunAsyncEnabled(), the code server started
splitting the code, but source maps were only generated for the
initial fragment.
I don't know the internals, but shouldn't be terribly hard to have
the source maps for each split point, right? Or isn't it at all
supported by the compiler?
Compiling using -saveSource -saveSourceOutput dir together
with set-property name=compiler.useSourceMaps value=true /
and set-configuration-property name=includeSourceMapUrl
value=true / correctly saves all sources in the output dir and
sets the source map comments on each script...
Also, the CompilerOptionsImpl has this:
  @Override
  public boolean shouldSaveSource() {
return false; // handling this a different way
  }

This different way is explicitly not handling the runAsync case.
Is there a strong reason for this?


SuperDevMode loads the source code right form its classpath (the same 
way as when it compiles it) when sending it to the browser (see 
SourceHandler and ModuleState).
That said, copying the sources would 
solve https://code.google.com/p/google-web-toolkit/issues/detail?id=7615 
(but saveSource has only been added recently, and I suspect 
SuperDevMode just hasn't caught up yet)

--
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/dFyODLo7QMo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
google-web-toolkit+unsubscr...@googlegroups.com.

To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
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.
For more options, visit https://groups.google.com/groups/opt_out.


Using SuperDevMode with code splitting

2014-02-14 Thread Luis Fernando Planella Gonzalez
Hi.
I'm recently attempting to use SuperDevMode, but our project is quite 
large, and the generated compiled .js has ~12MB.
Chrome struggles (and hangs) when attempting to download source maps, 
making the whole debugging unpractical.
Without SuperDevMode, we use code splitting, and the fragments are much 
more manageable.
But SuperDevMode always compiles the application to a single .js file.
Is it possible to use code splitting with SuperDevMode?

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


Re: Using SuperDevMode with code splitting

2014-02-14 Thread Luis Fernando Planella Gonzalez
Well, after patching CompilerOptionsImpl in gwt-codeserver.jar to return 
true in isRunAsyncEnabled(), the code server started splitting the code, 
but source maps were only generated for the initial fragment.
I don't know the internals, but shouldn't be terribly hard to have the 
source maps for each split point, right? Or isn't it at all supported by 
the compiler?
Compiling using -saveSource -saveSourceOutput dir together with 
set-property name=compiler.useSourceMaps value=true / and 
set-configuration-property name=includeSourceMapUrl value=true / 
correctly saves all sources in the output dir and sets the source map 
comments on each script...
Also, the CompilerOptionsImpl has this:
  @Override
  public boolean shouldSaveSource() {
return false; // handling this a different way
  }

This different way is explicitly not handling the runAsync case.
Is there a strong reason for this?
Thanks in advance.

Em sexta-feira, 14 de fevereiro de 2014 15h55min02s UTC-2, Luis Fernando 
Planella Gonzalez escreveu:

 Hi.
 I'm recently attempting to use SuperDevMode, but our project is quite 
 large, and the generated compiled .js has ~12MB.
 Chrome struggles (and hangs) when attempting to download source maps, 
 making the whole debugging unpractical.
 Without SuperDevMode, we use code splitting, and the fragments are much 
 more manageable.
 But SuperDevMode always compiles the application to a single .js file.
 Is it possible to use code splitting with SuperDevMode?


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


Support for ARIA in CustomWidget (UiBinder) in SuperDevMode

2014-02-10 Thread Beniton Fernando
Hi ,

I have a custom widget which act like a checkbox. Now i want set role as 
check box  through UiBinder like

my:Checkbox role=checkbox ui:Field=ee
...

The works perfectly fine in GWT development mode. But when i try to run in 
SuperDevMode, it is not compiling.

give me following error

[ERROR] Class Checkbox has no appropriate setRole() method...

Am i missing anything? Why it is behaving different in SuperDevMode.

Regards,
Beniton


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


Re: Support for ARIA in CustomWidget (UiBinder) in SuperDevMode

2014-02-10 Thread Beniton Fernando
But it is not failing in DevMode.

On Monday, 10 February 2014 17:11:20 UTC+5:30, Thomas Broyer wrote:

 There's no reason it would behave differently; it should also fail in 
 DevMode.

 On Monday, February 10, 2014 12:35:08 PM UTC+1, Beniton Fernando wrote:

 Hi ,

 I have a custom widget which act like a checkbox. Now i want set role as 
 check box  through UiBinder like

 my:Checkbox role=checkbox ui:Field=ee
 ...

 The works perfectly fine in GWT development mode. But when i try to run 
 in SuperDevMode, it is not compiling.

 give me following error

 [ERROR] Class Checkbox has no appropriate setRole() method...

 Am i missing anything? Why it is behaving different in SuperDevMode.

 Regards,
 Beniton




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


Re: Support for ARIA in CustomWidget (UiBinder) in SuperDevMode

2014-02-10 Thread Beniton Fernando
Sorry Thomas my mistake. I was using a BeanParser patch in DevMode. which i 
forgot to use in SuperDevMode.

Thanks for your help.
Beniton

On Monday, 10 February 2014 17:15:40 UTC+5:30, Beniton Fernando wrote:

 But it is not failing in DevMode.

 On Monday, 10 February 2014 17:11:20 UTC+5:30, Thomas Broyer wrote:

 There's no reason it would behave differently; it should also fail in 
 DevMode.

 On Monday, February 10, 2014 12:35:08 PM UTC+1, Beniton Fernando wrote:

 Hi ,

 I have a custom widget which act like a checkbox. Now i want set role as 
 check box  through UiBinder like

 my:Checkbox role=checkbox ui:Field=ee
 ...

 The works perfectly fine in GWT development mode. But when i try to run 
 in SuperDevMode, it is not compiling.

 give me following error

 [ERROR] Class Checkbox has no appropriate setRole() method...

 Am i missing anything? Why it is behaving different in SuperDevMode.

 Regards,
 Beniton




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


Mask for money values ?

2013-10-29 Thread Fernando Paiva
Hello all

I'm looking for some how to add money mask for a TextItem.
I need to setting my caret position right and each number that I enter the 
mask goes work.

example.
100,000.00

How to do this ?

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/groups/opt_out.


LookAndFeel with GWT ?

2013-09-18 Thread Fernando Paiva
Hello all

There's an mode to add LookAndFeel in my project GWT ? 

how to ?

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/groups/opt_out.


Re: change in children not saved in GWT 2.5.1 after implement OSIV

2013-06-04 Thread Fernando Castro
The only work around that i have found is to persist the entity child in a 
diferent request.

In my case i have a ParentEntity with a SetChildEntity. When persisting a 
new set, it work just fine, but when i try to update the values, the 
modifications never reach the server.

I tried to create a new Set to overwrite the old one, but no sucess in this 
attempt;

-- 
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: change in children not saved in GWT 2.5.1 after implement OSIV

2013-06-01 Thread Fernando Castro
Same problem, 
Still haven't found any good solution,

Em sexta-feira, 31 de maio de 2013 11h50min21s UTC-3, Yan escreveu:

 Hi there, 

 I have a Parent object containing a list of Children objects. Both are 
 EntityProxy.  My RequestFactory API is to persist the Parent along with 
 Children collection.  My JPA layer is EclipseLink (JPA 1.0), with entity 
 manager cache ENABLED. 

 In UI, I change some property on children (without changing parent). When 
 the backend API is called, I expect to see that the Parent's children 
 objects will have the updates.

 In GWT 2.4.0, I do see that because GWT 2.4.0 sends the list of children 
 to server regardless.  In GWT 2.5.1, I see only the delta is sent across 
 the wire (this is correct), but in the backend, I do not see the children 
 collection with updates, that is incorrect. 

 I did implement one-entitymanager-per-request pattern based on a solution 
 someone offered on this group. I verified that only one instance of child 
 is created by JPA during the request. I also verified that GWT client is 
 correctly sending the delta to GWT server and setter methods are called on 
 JPA entity to set the correct value (after JPA loads children from 
 database). Afterwards, the setter is not called and no child object ever 
 created again. 

 However, when the code reaches the API (as seen in debugger), I do not see 
 the children objects has the updates. 

 Why is this?  GWT runtime is somehow loading the object from somewhere 
 else?

 Thanks,
 Yan


-- 
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: UiBinder and abstract class

2013-02-08 Thread Beniton Fernando


How do we do that?

On Tuesday, 2 February 2010 04:55:17 UTC+5:30, matttai wrote:

 You are probably setting setWidget(uiBinder.createAndBindUi(this)); in
 the extended class. I don't see your bind statement for the second
 class so i cannot tell so it is just a guess.

 Bind the loginbox content for the LoginDialogBox as a widget and pass
 it in for your bind in the setContent(content); statement

 On Feb 1, 10:22 pm, damians dsu...@o2.pl wrote:
  Hello,
 
  I've got a problem and i googled lots of pages to see if anyone got
  the same problem but i didn't find anything.
 
  I've got class AbstractDialog that extends DialogBox with some
  standart buttons like OK CANCEL that are bound by UiBinder. I've got
  another class that extends AbstractDialog with another declarative xml
  file, that contains only the main content of that DialogBox.
 
  When am trying to lunch application i got this error:
  Rebinding package.classUiBinder
Invoking com.google.gwt.dev.javac.StandardGeneratorContext@a51c3c
  Method 'ok' can not be bound. You probably missed
  ui:field='okButton' in the template.
 
  Method ok and UiHandler for button okVutton is declared in
  AbstractDialog. From class that extends AbstractDialog the UiField is
  not visible. Am i doing something wrong or i just didnt saw any
  information that you can not extends an object tha got his own
  UiBinder and extended class got their own UiBinder as well.
 
  My code:
 
  AbstractDialogBox.java
 
  public abstract class AbstractDialogBox extends DialogBox
  {
  private static AbstractDialogBoxUiBinder uiBinder = GWT.create
  (AbstractDialogBoxUiBinder.class);
 
  interface AbstractDialogBoxUiBinder extends UiBinderWidget,
  AbstractDialogBox
  {
  }
 
  @UiField Button okButton;
  @UiField Button cancelButton;
  @UiField Label emptyLabel;
  @UiField VerticalPanel main;
 
  public AbstractDialogBox()
  {
  setWidget(uiBinder.createAndBindUi(this));
  setStyleName(oe-DialogBox);
 
  okButton.setText(OK);
  cancelButton.setText(CANCEL);
  }
 
  public void setContent(Widget content)
  {
  main.add(content);
  }
 
  @UiHandler(okButton)
  void ok(ClickEvent e)
  {
  onOK();
  }
 
  @UiHandler(cancelButton)
  void cancel(ClickEvent e)
  {
  onCancel();
  }
 
  public void keyPress(KeyPressEvent event)
  {
  if (event.getCharCode() == 13)
  onOK();
  else if (event.getCharCode() == 27)
  onCancel();
  }
 
  public abstract void onOK();
  public abstract void onCancel();
 
  }
 
  AbstractDialog.ui.xml
 
  !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
  ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
  xmlns:g=urn:import:com.google.gwt.user.client.ui
 
  g:HTMLPanel
  table width=320px cellspacing=0 cellpadding=3
  tr
  td colspan=3g:VerticalPanel ui:field=main 
 width=100%//
  td
  /tr
  tr
  tdg:Label ui:field=emptyLabel 
 width=140px//td
  tdg:Button ui:field=okButton 
 styleName=dialogButton//td
  tdg:Button ui:field=cancelButton 
 styleName=dialogButton//
  td
  /tr
  /table
  /g:HTMLPanel
  /ui:UiBinder
 
  LoginOptionDialog.java that extends AbstractDialog
 
  public class LoginOptionDialog extends AbstractDialogBox
  {
  private static LoginOptionDialogUiBinder uiBinder = GWT.create
  (LoginOptionDialogUiBinder.class);
  interface LoginOptionDialogUiBinder extends UiBinderWidget,
  LoginOptionDialog   {}
 
  @UiField Image icon;
  @UiField Label descIp;
  @UiField TextBox ip;
  @UiField HTMLPanel content;
 
  public LoginOptionDialog()
  {
  super();
 
  setText(Login options);
 
  descIp.setText(Server IP:);
  ip.setText(Enter ip);
 
  setContent(content);
  }
 
  @UiHandler(ip)
  public void press(KeyPressEvent event)
  {
  keyPress(event);
  }
 
  public void onCancel()
  {
  // restore ip text from application context
  hide();
  }
 
  public void onOK()
  {
  // set ip in application context
  hide();
  }
 
  }
 
  LoginOptionDialog.ui.xml
 
  !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
  ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
  

Re: MVP Framework

2012-06-19 Thread Fernando Balmaceda
Please see gwt platform (gwtp)
. Is great

El 08/06/2012 1:08, titowinky titowi...@gmail.com escribió:

Is there any example here (other than the Contacts tutorial) about the
MVP framework with detailed explanation? The contacts tutorial seem to
jump ... not a thoroughly explained article in my opinion. There are
parts (class/package)of the structure in the contacts tutorial which
was not used by my instructor but still worked. Which is possible to
remove and which is not?

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



Re: How to share classes between two different modules with two different pages

2012-03-29 Thread Fernando Varella Lopes
i think that you can make a new module for the classes you want use in 
other two, and inherit it.

Em terça-feira, 20 de março de 2012 18h22min58s UTC-3, Deepak Singh 
escreveu:

 Hi All,

 I have a GWT project with 2 modules.

 ModuleA  and ModuleB
 Both are having their own html page. i.e. tow seperate html pages so 
 seperate Rootpanel for both of them.

 So i cant inherit one into another.

 How can i use the same class(in shared package) in both the modules ?



 Thanks 
 Deepak Singh
  

-- 
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/-/YbgGdvgsQtcJ.
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: Hosting issue

2012-01-29 Thread Sudhakar Fernando
Hi Nitheesh,

my assumptions of the problem is as below.


   1. you have created a GWT project with RPC and connect database from
   MySQL.
   2. if you deploy the GWT War files in Tomcat which is installed in
   your local machine,it is working properly.
   3. if you deploy in tomcat which is installed in any of the shared
   webhosting server or VPS,the RPC is not working.

Right?
On Thu, Jan 26, 2012 at 1:23 PM, Nitheesh Chandran 
nithe...@dotentreprise.com wrote:

 Hello ,

 Please reply on the following issue , fed up with this one

 I just tried to deploy a starter project in the remote server. I am
 getting the following error in the server log

 [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not
 exist: /home/spectrum/public_html/prism/rpctesting/greet, referer:
 http://yellowlemon.in/prism/Rpctesting.html
 [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not
 exist: /home/spectrum/public_html/404.shtml, referer:
 http://yellowlemon.in/prism/Rpctesting.html

 Does anyone know or has anyone successfully hosted a GWT RPC
 application on a server ?? please reply

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




-- 
Regards,

Sudhakar

-- 
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 and Hibernate

2012-01-20 Thread Fernando Vieira
Hi, I started to use GWT with Google App Engine (GAE) and did all the
pages and navigation between them. I also have another project when I
use hibernate. So, I have the following scenario: GWT as presentation
layer and this other project as business logic. I use RPC to make the
calls betweend them.

My point is: I tried a simple transaction to validate the user login
and the project returns the following error: Error while registering
Oracle JDBC Diagnosability MBean.

I have search on the net about this error and I have found that I
cannot use hibernate and GAE together. So I disabled the GAE at my GWT
project properties and the page stops loading.

Question: is there a way to use hibernate only to make simply queries?
I don't want to traffic hibernate objects between the projects. I only
need to make the query, process the result to native objects and send
them back to the GWT project.

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



Mouse click not working on ListGrid

2011-11-01 Thread David Fernando
I have a strange problem and i am sure it is just simple mistake of
some kind but i cant really find it and i dont really know what to
search.
I create a new window with VerticalPanel in it. Inside this Vertical
Panel i put TabSet with SelectItem component. The problem is that
clicking on drop down is not working. Same situation is when i put
ListGrid inside, RecordClickHandler and RecordDoubleClickHandler are
not working at all (but RowContextClickHandler works).

public class Sample implements EntryPoint {
public void onModuleLoad() {
//Without verticalPanel - works !
SelectItem s1 = new SelectItem();
s1.setTitle(Test List);
s1.setMultiple(true);
s1.setMultipleAppearance(MultipleAppearance.PICKLIST);
s1.setValueMap(a, b, c);
DynamicForm c1 = new DynamicForm();
c1.setItems(s1);
TabSet topTabSet = new TabSet();
topTabSet.setTabBarPosition(Side.TOP);
topTabSet.setWidth(800);
topTabSet.setHeight(150);
Tab t1 = new Tab(Tab1);
Tab t2 = new Tab(Tab2);
t2.setPane(c1);
topTabSet.addTab(t1);
topTabSet.addTab(t2);
Window window2 = new Window();
window2.setAutoSize(true);
window2.setTitle(Without VerticalPanel);
window2.setWidth(640);
window2.setHeight(480);
window2.setCanDragReposition(true);
window2.setCanDragResize(true);
window2.addItem(topTabSet);
window2.show();
//With verticalPanel - not working !
SelectItem s2 = new SelectItem();
s2.setTitle(XXX);
s2.setMultiple(true);
s2.setMultipleAppearance(MultipleAppearance.PICKLIST);
s2.setValueMap(d, e, f);
DynamicForm c2 = new DynamicForm();
c2.setItems(s2);
TabSet topTabSet2 = new TabSet();
topTabSet2.setTabBarPosition(Side.TOP);
topTabSet2.setWidth(800);
topTabSet2.setHeight(150);
Tab t11 = new Tab(Tab1);
Tab t22 = new Tab(Tab2);
t22.setPane(c2);
topTabSet2.addTab(t11);
topTabSet2.addTab(t22);
VerticalPanel vp = new VerticalPanel();
vp.add(topTabSet2);
Window window = new Window();
window.setAutoSize(true);
window.setTitle(With VerticalPanel);
window.setWidth(640);
window.setHeight(480);
window.centerInPage();
window.setCanDragReposition(true);
window.setCanDragResize(true);
window.addItem(vp);
window.show();
}
}

-- 
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: show [ERROR] Element may only contain a single child element in gwt 2.4.

2011-10-22 Thread David Fernando
Nice example, working!

On Oct 21, 5:47 pm, Sudhakar Abraham s.abra...@datastoregwt.com
wrote:
 The DockLayoutPanel of g:center/g:center element having only one
 Child. So wrap your panel1, panel2 inside panel3.  Try the below code.

 S. Abrahamwww.DataStoreGwt.com
 Persist objects directly in Google App Engine

 g:DockLayoutPanel ui:field=dock
          g:north size=25
                      g:FlowPanel
                            g:Button ui:field=saveLogin/ g:Button
                      /g:FlowPanel
          /g:north
          g:center
            g:VerticalPanelui:field=panel3
                   g:VerticalPanelui:field=panel1
                       g:Button ui:field=button1sample1/g:Button
                       g:Button ui:field=button2sample2/g:Button
                   /g:VerticalPanel
                   g:VerticalPanel ui:field=panel2
                       g:TextArea ui:field=textArea /
                   /g:VerticalPanel
           /g:VerticalPanel
         /g:center
      /g:DockLayoutPanel
 /ui:UiBinder

 On Oct 21, 4:44 pm, David Fernando fernando33...@gmail.com wrote:

  I got error when I compile the project. Please give your suggestion.

  g:DockLayoutPanel ui:field=dock
                  g:north size=25
                       g:FlowPanel
                             g:Button ui:field=saveLogin/ g:Button
                       /g:FlowPanel
                  /g:north
                  g:center
                     g:VerticalPanelui:field=panel1
                                 g:Button ui:field=button1sample1/
  g:Button
                                  g:Button ui:field=button2sample2/
  g:Button
                     /g:VerticalPanel
                    g:VerticalPanel ui:field=panel2
                                  g:TextArea ui:field=textArea /
                    /g:VerticalPanel
                  /g:center
          /g:DockLayoutPanel
  /ui:UiBinder



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



Right click on CellList!

2011-10-22 Thread David Fernando
Give your suggestion to fire a right click event on cellList. Where do
i include the event?. I have been wating for your reply.

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



show [ERROR] Element may only contain a single child element in gwt 2.4.

2011-10-21 Thread David Fernando

I got error when I compile the project. Please give your suggestion.

g:DockLayoutPanel ui:field=dock
g:north size=25
 g:FlowPanel
   g:Button ui:field=saveLogin/ g:Button
 /g:FlowPanel
/g:north
g:center
   g:VerticalPanelui:field=panel1
   g:Button ui:field=button1sample1/
g:Button
g:Button ui:field=button2sample2/
g:Button
   /g:VerticalPanel
  g:VerticalPanel ui:field=panel2
g:TextArea ui:field=textArea /
  /g:VerticalPanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder

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



Adding popup on CellTable header

2011-10-19 Thread David Fernando
Add popup on cellTable header.  When I click on the header not
recognize the event. I render TextInputCell in the header of CellTable.

-- 
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: Apply style to header, row, cell in cellTable

2011-10-15 Thread David Fernando
Thanks, working.

On Oct 14, 6:16 pm, Sudhakar Abraham s.abra...@datastoregwt.com
wrote:
 Add style to cellTable using this  CellTable.Resources interface.
 Pass the CellTable.Resources object into CellTable constructor.
 Change the property in CellTableStyle.css file as you wish.

 S. Abrahamwww.DataStoreGwt.com
 Persist objects directly in Google App Engine

 //In Java class

 interface TableResources extends CellTable.Resources
   {
     @Source(value = { CellTable.Style.DEFAULT_CSS,
 CellTableStyle.css })
     CellTable.Style cellTableStyle();
   }

 CellTable cellTable= new CellTableYour_Domain_class(15,
 GWT.TableResources create(TableResources.class));

 //add your cellTable column.
 ---
 end java
 class

 //CellTableStyle.css file

 .cellTableCell {
     height: 25px;
     padding-left: 2px;
     padding-right: 2px;
     background-color: red;

 }

 .cellTableHeader {
     height: 25px;
     border-bottom: 2px solid #60a6bf;
     padding: 3px 25px;

 }

 .cellTableEvenRow {
         background: #fffaf0;
         border:solid 1px red;

 }

 .cellTableEvenRowCell {
     border:solid 1px green;

 }

 .cellTableOddRow {
     background: #fff8e8;

 }

 .cellTableOddRowCell {
      border:solid 1px red;

 }



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



Apply style to header, row, cell in cellTable

2011-10-13 Thread David Fernando
Change the existing style to my own style for cellTable.  where do I
change the property in gwt.

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



Binder problem in ui.xml file?

2011-10-12 Thread David Fernando
Compile gwt application, I got the error show[Error] Element may only
contain a single child element,  but found g:FlowPanel
ui:field='flow1'and  g:FlowPanel ui:field='flow2'. Element
g:center. Advance thanks.

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
g:DockLayoutPanel ui:field=dock
g:north size=25
g:FlowPanel
g:Button ui:field=saveHome/
g:Button
/g:FlowPanel
/g:north
g:center
g:FlowPanel ui:field=flow1
g:Button ui:field=button1print/
g:Button
/g:FlowPanel
 g:FlowPanel ui:field=flow2
g:TextArea ui:field=textArea /
g:TextArea ui:field=textArea1 /
/g:FlowPanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder

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



Wrong RPC typeSignature

2011-04-07 Thread Fernando Barbat
Hi,

I'm having this exception when receiving a complex JPA Entity from
server using RPC:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The
response could not be deserialized

I tried debugging serialization on server and deserialization on
client and found that the generated type signature is different. The
class name is the same, but the appended magic number is different.
As the client expects the other number, the exception above is thrown.

Any ideas?

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.



Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Fernando Barbat
Hi,

I tried to update an existing 2.1.1 project to 2.2 without success.
The compiler throws a lot of errors and exceptions.
I found in another post that we should update Gin to 1.5 and tried it,
but it wasn't helpful.

Any idea?

Thanks.

This is the compiler's log:

Compiling module com.example.myproject
   Validating newly compiled units
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/CanvasElement.java'
 [ERROR] Line 49: No source code is available for type
com.google.gwt.canvas.dom.client.Context; did you forget to inherit a
required module?
 [ERROR] Line 60: No source code is available for type
com.google.gwt.canvas.dom.client.Context2d; did you forget to inherit
a required module?
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/MediaElement.java'
 [ERROR] Line 124: No source code is available for type
com.google.gwt.media.dom.client.TimeRanges; did you forget to inherit
a required module?
 [ERROR] Line 178: No source code is available for type
com.google.gwt.media.dom.client.MediaError; did you forget to inherit
a required module?
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/Touch.java'
 [ERROR] Line 36: The method touchGetClientX(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 45: The method touchGetClientY(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 54: The method touchGetIdentifier(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 63: The method touchGetPageX(Touch) is undefined
for the type DOMImpl
 [ERROR] Line 72: The method touchGetPageY(Touch) is undefined
for the type DOMImpl
 [ERROR] Line 103: The method touchGetScreenX(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 112: The method touchGetScreenY(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 121: The method touchGetTarget(Touch) is
undefined for the type DOMImpl
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureChangeEvent.java'
 [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
 [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureEndEvent.java'
 [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
 [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureStartEvent.java'
 [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
 [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/TouchEvent.java'
 [ERROR] Line 41: The method getChangedTouches() is undefined
for the type NativeEvent
 [ERROR] Line 54: The method getTargetTouches() is undefined
for the type NativeEvent
 [ERROR] Line 66: The method getTouches() is undefined for the
type NativeEvent
   [ERROR] Errors in 'file:/home/fernando/workspace/sigras-war/
desarrollo/uy/org/inia/gras/sigras/war/client/
SigrasDesarrolloEntryPoint.java'
  [ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found class
com.google.gwt.core.ext.typeinfo.JClassType, but interface was
expected
at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:
84)
at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:
65)
at
com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:
47)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
427)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
39)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:58

Re: Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Fernando Barbat
I think I know what's happening. I'm using Ext GWT in my project, and
for now it isn't compatible with GWT 2.2.

http://www.sencha.com/forum/showthread.php?124026-GXT-2.2.2-compilation-error-with-GWT-2.2

On 23 feb, 08:47, Fernando Barbat fbar...@gmail.com wrote:
 Hi,

 I tried to update an existing 2.1.1 project to 2.2 without success.
 The compiler throws a lot of errors and exceptions.
 I found in another post that we should update Gin to 1.5 and tried it,
 but it wasn't helpful.

 Any idea?

 Thanks.

 This is the compiler's log:

 Compiling module com.example.myproject
    Validating newly compiled units
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/dom/client/CanvasElement.java'
          [ERROR] Line 49: No source code is available for type
 com.google.gwt.canvas.dom.client.Context; did you forget to inherit a
 required module?
          [ERROR] Line 60: No source code is available for type
 com.google.gwt.canvas.dom.client.Context2d; did you forget to inherit
 a required module?
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/dom/client/MediaElement.java'
          [ERROR] Line 124: No source code is available for type
 com.google.gwt.media.dom.client.TimeRanges; did you forget to inherit
 a required module?
          [ERROR] Line 178: No source code is available for type
 com.google.gwt.media.dom.client.MediaError; did you forget to inherit
 a required module?
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/dom/client/Touch.java'
          [ERROR] Line 36: The method touchGetClientX(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 45: The method touchGetClientY(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 54: The method touchGetIdentifier(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 63: The method touchGetPageX(Touch) is undefined
 for the type DOMImpl
          [ERROR] Line 72: The method touchGetPageY(Touch) is undefined
 for the type DOMImpl
          [ERROR] Line 103: The method touchGetScreenX(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 112: The method touchGetScreenY(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 121: The method touchGetTarget(Touch) is
 undefined for the type DOMImpl
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/GestureChangeEvent.java'
          [ERROR] Line 53: The method getRotation() is undefined for
 the type NativeEvent
          [ERROR] Line 57: The method getScale() is undefined for the
 type NativeEvent
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/GestureEndEvent.java'
          [ERROR] Line 53: The method getRotation() is undefined for
 the type NativeEvent
          [ERROR] Line 57: The method getScale() is undefined for the
 type NativeEvent
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/GestureStartEvent.java'
          [ERROR] Line 53: The method getRotation() is undefined for
 the type NativeEvent
          [ERROR] Line 57: The method getScale() is undefined for the
 type NativeEvent
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/TouchEvent.java'
          [ERROR] Line 41: The method getChangedTouches() is undefined
 for the type NativeEvent
          [ERROR] Line 54: The method getTargetTouches() is undefined
 for the type NativeEvent
          [ERROR] Line 66: The method getTouches() is undefined for the
 type NativeEvent
    [ERROR] Errors in 'file:/home/fernando/workspace/sigras-war/
 desarrollo/uy/org/inia/gras/sigras/war/client/
 SigrasDesarrolloEntryPoint.java'
       [ERROR]  Internal compiler error
 java.lang.IncompatibleClassChangeError: Found class
 com.google.gwt.core.ext.typeinfo.JClassType, but interface was
 expected
         at
 com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:
 84)
         at
 com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:
 65)
         at
 com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:
 47)
         at
 com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
 427

Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

2011-02-12 Thread Fernando Barbat
Yes, it has a zero argument constructor. As I said, once I recompile,
undeploy and deploy again, the problem goes away.

I'm using Eclipse and deploy an EAR in Glasfish v3. This EAR contains
an EJB jar, a GWT WAR and other jars. I noted that
IncompatibleRemoteServiceException sometimes raises up after I change
EJB code.

It's not enough with undeploy and deploy. I also have to recompile to
get everything working.

Maybe it is a problem with packaging. Maybe the RPC generated security
files are not getting into the EAR properly.

Any idea about how to solve this? Any idea about how to disable that
security feature?

Thanks.



On 11 feb, 16:58, nacho vela.igna...@gmail.com wrote:
 I think that your trouble is that the classes compiled to JS are different
 to the classes that you have in the server.

 Using dev mode after change in a class that I use in a RPC I just reload the
 page and the problem is gone.

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



com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

2011-02-11 Thread Fernando Barbat
Hi,

I'm having an IncompatibleRemoteServiceException very often in
development mode. It looks like it raises every time I change my EJB
server code, which is in a project referenced by my GWT project.

Error:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Type com.example.MyDTO was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer. For security purposes, this type will not be
deserialized.

MyDTO implements Serializable, and it is not the EJB code I'm
changing. The EJB references this DTO.

If I compile my GWT project again, the problem goes away... for a
while. This problem is causing a decrease in my productivity as I have
to compile and wait a minute every time this problem shows up.

Any idea about how to solve this?

As a workaround, does anyone know how to disable this security feature
while I'm in development mode?

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.



Wave

2011-01-09 Thread sudhakar . fernando
Hi guys,

Could you please help me creating a interface/GUI like wave.

Regards,

Sudhakar
Empower your Business with BlackBerry® and Mobile Solutions from Etisalat

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



Re: International SimplePager

2011-01-06 Thread Fernando
http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html

On Jan 6, 7:59 am, Micha Roon micha.r...@gmail.com wrote:
 How can the text for the pager be changed so that it displays in the
 application's locale?

 A my application is in French and German, I need the text to be 1 à
 10 de 14 and 1 bis 10 von 14 instead of 1 to 10 of 14

 Thank you for your help

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



Re: Google API Lib GWT

2011-01-06 Thread sudhakar . fernando
Thanks Eric,

But how to add the jars in Eclipse.any idea?


Empower your Business with BlackBerry® and Mobile Solutions from Etisalat

-Original Message-
From: Eric Ayers zun...@google.com
Sender: google-web-toolkit@googlegroups.com
Date: Thu, 6 Jan 2011 10:03:25 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Google API Lib GWT

Here is a getting started guide for the Maps API

http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
On Tue, Jan 4, 2011 at 11:55 PM, Sudhakar sudhakar.ferna...@gmail.comwrote:

 Guy,

 Please tell me how to use the Google API Lib (Visualization,Gears
 etc)in Eclipse 3.6 and Eclipse 3.5.

 I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

 How to include the jars in CLASSPATH.

 Regards,

 Sudhakar

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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


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



Re: Google API Lib GWT

2011-01-06 Thread sudhakar . fernando
Thanks a lot Eric
Empower your Business with BlackBerry® and Mobile Solutions from Etisalat

-Original Message-
From: Eric Ayers zun...@google.com
Sender: google-web-toolkit@googlegroups.com
Date: Thu, 6 Jan 2011 13:09:54 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Google API Lib GWT

Those instructions assume you are using eclipse.  Follow the link in the
Getting Started guide I posted above to the Google Plugin for Eclipse and
make sure its installed.  Adding the jar file is the same as any other
Eclipse project (go to the 'Project' menu add add the .jar file to your
classpath).  Try working through the Getting Started guilde which will walk
you through creating a sample project.

On Thu, Jan 6, 2011 at 10:32 AM, sudhakar.ferna...@gmail.com wrote:

 Thanks Eric,

 But how to add the jars in Eclipse.any idea?

 Empower your Business with BlackBerry® and Mobile Solutions from Etisalat
 --
 *From: * Eric Ayers zun...@google.com
 *Sender: * google-web-toolkit@googlegroups.com
 *Date: *Thu, 6 Jan 2011 10:03:25 -0500
 *To: *google-web-toolkit@googlegroups.com
 *ReplyTo: * google-web-toolkit@googlegroups.com
 *Subject: *Re: Google API Lib GWT

 Here is a getting started guide for the Maps API

 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
  http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
 On Tue, Jan 4, 2011 at 11:55 PM, Sudhakar sudhakar.ferna...@gmail.comwrote:

 Guy,

 Please tell me how to use the Google API Lib (Visualization,Gears
 etc)in Eclipse 3.6 and Eclipse 3.5.

 I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

 How to include the jars in CLASSPATH.

 Regards,

 Sudhakar

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

  --
 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.comgoogle-web-toolkit%2bunsubscr...@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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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


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



Re: Issue with XML object passing using Request Builder

2010-11-08 Thread Fernando
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideXML

On Nov 8, 10:47 am, jayalakshmi jahagirdar
jayalakshmi.jahagir...@gmail.com wrote:
 hello all,
 I have the following requierement:

 A XML file is at the server side.Need to parse it .
 I have a nested class . Create a object of this nested class ,add parametres
 from XML parsing to this object and pass it back to the client.
 Iam making use of RequestBuilder.

 Iam able to parse it and create the object. but not finding a way to pass it
 back to the client.

 Which is the best way to implement this. Can i make use of RPC ?

 Thanks  regards
 Jaya

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



Re: Inherit module JDOM

2010-10-28 Thread Fernando
Usually these jar's that you inherit have a .xml in their root
package, just like your gwt project, and are also associated with
client-side stuff.

On Oct 27, 8:32 am, Pablo G.F blay...@gmail.com wrote:
 Hello:

 Im new to this so sorry if this is a trivial question.
 I wanna use Jdom library in one of my java classes , which is part of
 a GWT project. I´ve tried by adding the jdom.jar to the classpath and
 importing the classes I need, but it doesnt work. So I´ve read that it
 ´s necessary to inherit the module in the gwt.xml file. What I´ve
 tried is

 inherit name='org.jdom' but it doesn´t work and I don´t know what to
 do.

 Any help?

 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.



Re: GWT Complier OutOfMemory issue

2010-10-27 Thread Fernando
Hi:

I have the same problem compiling with GWT 2.0.4. My project has about
3500 classes.

Did you find any solution?

Thanks in advance.

The JVM parameters are:

-Xss32m -Xms32m -Xmx1024m -XX:MaxPermSize=256m

The StackTrace is:

---
java.lang.OutOfMemoryError
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(Unknown Source)
at com.google.gwt.dev.util.Util.writeBytesToFile(Util.java:1153)
at com.google.gwt.dev.util.Util.writeBytesToFile(Util.java:1138)
at com.google.gwt.dev.javac.StandardGeneratorContext
$PendingResource.commit(StandardGeneratorContext.java:189)
at
com.google.gwt.dev.javac.StandardGeneratorContext.commitResource(StandardGeneratorContext.java:
287)
at
com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:
293)
at
com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generate(ServiceInterfaceProxyGenerator.java:
57)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
143)
at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
317)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
95)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
430)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:159)
   [ERROR] Out of memory; to increase the amount of memory, use the -
Xmx flag at startup (java -Xmx128M ...)
java.lang.OutOfMemoryError
--



On 5 oct, 12:14, Chris Conroy con...@google.com wrote:
 This doesn't address code-splitting per-se, but r8921 and r8850 reduce both
 DevMode and compiler memory footprint.







 On Sat, Sep 18, 2010 at 11:34 PM, lin.liang birdandfis...@gmail.com wrote:
  Chris, I didn't see the OOME before using code splitting. In order to
  reduce the application's startup time, I adopt code splitting in the
  DynaClassGenerator.java (the implementation of GWT generator on data
  deferred binding in our project)

  1) Before using code splitting, the code is:
 if

  (com.nantian.iwap3.frameworkdev.client.dataitem.DataItemMgr.equals(classN 
  ame))
  {

com.nantian.iwap3.frameworkdev.client.dataitem.DataItemMgr
  instance = new

  com.nantian.iwap3.frameworkdev.client.dataitem.DataItemMgr();

 }

  2) After using code splitting:
   if

  (com.nantian.iwap3.frameworkdev.client.dataitem.DataItemMgr.equals(classN 
  ame))
  {

   GWT.runAsync(new RunAsyncCallbackAdapter() {
  public void onSuccess() {
 com.nantian.iwap3.frameworkdev.client.dataitem.DataItemMgr
  instance = new
  com.nantian.iwap3.frameworkdev.client.dataitem.DataItemMgr();
 callback.onSuccess((T)instance);
  }
   });

 }

  In the former one, the 

Re: GWT 2.1 hellomvp using GIN

2010-10-20 Thread Fernando Barbat
I had the exactly same doubt. And I thought about it, but couldn't
find out how you can do that mapping with GIN.
In fact, Roo's generated projects don't use a GIN-based mapping
although they use GIN in other parts.

So I'm interested to know the answer to this question too. :P

On 20 oct, 07:42, Sebastian Beigel sebast...@beigel.de wrote:
 Hi,

 I'm looking at 2.1 (RC1) for the first time right now and I try to
 refactor the hellomvp sample to use GIN.

 Unfortunately, I have some problems with the places - activities
 mapping. The doc says A better way to implement the chain of nested
 ifs would be with a GIN module. and the code is commented Map each
 Place to its corresponding Activity. This would be a great use for
 GIN..

 I agree, but I don't really know how to do this mapping :) Has anyone
 refactored this code to use GIN?

 Thank you,
 Sebastian

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



Simulate low bandwith

2010-10-19 Thread Fernando Barbat
Are there any tools which allow us to test our GWT application in low
bandwith or high latency environments?

I've read this post:
http://stackoverflow.com/questions/473465/firefox-plugin-to-simulate-slow-internet-connection-or-limit-bandwidth

Anyway, I want to know if there is any tool or methodology which works
with GWT apps nicely, having in mind the code server and other GWT
stuff.

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.



Re: Firefox gwt dev plugin

2010-10-18 Thread Fernando
My guess would be: it wasn't installed due to permission restrictions.

On Oct 17, 7:47 am, FireSnake truefiresn...@gmail.com wrote:
 I've installed this plugin, buf firefox still requesting:
 Development Mode requires the Google Web Toolkit Developer Plugin

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



Re: Ejb and gwt..?!

2010-10-10 Thread Fernando Barbat
Yes, you can do that. I tried it a few days ago and it worked.

In my case, I implemented a servlet which would act as a bridge
between RPC services and an EJB.
I based on this : http://dobesland.wordpress.com/2007/08/01/gwt-to-ejb-bridging/

Basiically, don’t implement the GWT service’s interface in your
RemoteServiceServlet. I don't remember the code exactly, but you can
inject EJB and override processCall() like this:

@EJB
TheEjb theEjb

public String processCall(String payload) throws
SerializationException {
  try {
RPCRequest rpcRequest = RPC.decodeRequest(payload, theEjb);
return RPC.invokeAndEncodeResponse(theEJB, rpcRequest.getMethod(),
rpcRequest.getParameters());
  } catch (Throwable ex) {
return RPC.encodeResponseForFailure(null, ex);
  }
}

On 9 oct, 20:47, Blaze baze...@gmail.com wrote:
 Hi all,

 I was wondering is there a possibility to use ejb locally in the gwt
 servlets,
 something like:

         @EJB
         private TestEjbLocal testEjb;

         public String greetServer(String input) throws
 IllegalArgumentException {
                 testEjb.test();
         }

 Ofcourse the gwt.war file is deployed in a ejb server (Glassfish jboss
 etc..)
 and I assume that the gwt app war file have to be in the same .ear  as
 the ejb module
 (so to be locally applicable)

 I know that usage of context.lookup(jndi remote interface ) works, and
 u can even run it like this from a separate
 machines(JVM to JVM communication with remote interfaces, using corba
 or etc..)

 Any help or exp?!

 Tnx
 B

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



Re: Ejb and gwt..?!

2010-10-10 Thread Fernando Barbat
I know maybe it's not easy to understand what I did from what I wrote
there, but I think I have gotten off th track. :P
I if you are interested in that, you can read the post I mentioned, or
just ask me.


On 10 oct, 13:11, Fernando Barbat fbar...@gmail.com wrote:
 Yes, you can do that. I tried it a few days ago and it worked.

 In my case, I implemented a servlet which would act as a bridge
 between RPC services and an EJB.
 I based on this 
 :http://dobesland.wordpress.com/2007/08/01/gwt-to-ejb-bridging/

 Basiically, don’t implement the GWT service’s interface in your
 RemoteServiceServlet. I don't remember the code exactly, but you can
 inject EJB and override processCall() like this:

 @EJB
 TheEjb theEjb

 public String processCall(String payload) throws
 SerializationException {
   try {
     RPCRequest rpcRequest = RPC.decodeRequest(payload, theEjb);
     return RPC.invokeAndEncodeResponse(theEJB, rpcRequest.getMethod(),
 rpcRequest.getParameters());
   } catch (Throwable ex) {
     return RPC.encodeResponseForFailure(null, ex);
   }

 }

 On 9 oct, 20:47, Blaze baze...@gmail.com wrote:

  Hi all,

  I was wondering is there a possibility to use ejb locally in the gwt
  servlets,
  something like:

          @EJB
          private TestEjbLocal testEjb;

          public String greetServer(String input) throws
  IllegalArgumentException {
                  testEjb.test();
          }

  Ofcourse the gwt.war file is deployed in a ejb server (Glassfish jboss
  etc..)
  and I assume that the gwt app war file have to be in the same .ear  as
  the ejb module
  (so to be locally applicable)

  I know that usage of context.lookup(jndi remote interface ) works, and
  u can even run it like this from a separate
  machines(JVM to JVM communication with remote interfaces, using corba
  or etc..)

  Any help or exp?!

  Tnx
  B

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



Re: Benchmark

2010-09-28 Thread Fernando
very interesting, even more if coupled with this one (read it
yesterday):

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d20b0d9cad299223

imho, GWT Team should address to these performance issues as soon as
they have the time
if we're going to use Java on a daily basis usign GWT, extensive usage
of collections is expected...

On Sep 27, 6:09 pm, Ümit uemit.se...@gmail.com wrote:
 Not sure if it was posted before but I found following interesting
 blog about GWT Array performance:

 http://lgrammel.blogspot.com/2010/09/gwt-arraylist-hashset-and-jsarra...

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



Re: upgrade from GWT 2.1 to GWT 2.2

2010-09-24 Thread Fernando
there's no gwt 2.2... isn't it smart gwt, ext gwt or a gwt milestone?

On Sep 24, 1:49 am, navS naveenkumarnl1...@gmail.com wrote:
 Hi team,

 currently am using GWT 2.1, now i have to upgrade it to version 2.2.
 how do i start doing it.

 Thanks
 naveen

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



Re: Handling too many locales in a large scale real life app

2010-08-30 Thread Fernando
just in case...

after trying the EPFE plugin that Dolber posted (btw, thanks for the
tip) I found out that the project was put on ice
(source: 
http://epfe.sourceforge.net/index.php?option=com_contentview=sectionlayout=blogid=1Itemid=3)

their own authors point out to another plugin, Eclipse ResourceBundle
Editor, which can be found here:
http://sourceforge.net/projects/eclipse-rbe/
this plugin is more complete than EPFE, and we're considering using
it, even tho it has been incorporated by Eclipse Babel project
http://www.eclipse.org/babel/

Babel promised an editor, but so far has not delivered it

On 29 ago, 19:48, Joe Cole profilercorporat...@gmail.com wrote:
 What we do is have a test case that ensures that our interface and
 properties files are completely defined:

 // call this method for each properties file
 public void checkMessagesDefinedProperlyInBothInterfaceAndFile(String
 file) {
                 Properties f2 = new Properties();
                 FileInputStream in = null;
                 try {
                         in = new FileInputStream(file);
                         f2.load(in);
                 } catch (Exception e) {
                         e.printStackTrace();
                         Assert.fail(e.getMessage());
                 } finally {
                         IO.safelyClose(in);
                 }
                 Assert.assertNotNull(f2);
                 // check methods - properties
                 for (Method m : YouMessagesClass.class.getDeclaredMethods()) {
                         Assert.assertTrue(m.getName() +  shoud not be empty,
 Is.entered(f2.getProperty(m.getName(;
                         if (m.getParameterTypes().length  0) {
                                 Assert.assertTrue(m.getName() +  should 
 contain {,
 f2.getProperty(m.getName()).indexOf('{')  -1);
                                 Assert.assertTrue(m.getName() +  should 
 contain {,
 f2.getProperty(m.getName()).indexOf('}')  -1);
                         }
                 }
                 // check properties - methods
                 for (Object key : f2.keySet()) {
                         String property = f2.getProperty((String) key);
                         if (property.indexOf('}') == -1)
                                 continue;
                         for (Method m : 
 YourMessagesClass.class.getDeclaredMethods()) {
                                 if (m.getName().equals(key)) {
                                         Assert.assertTrue(key +  should have 
 at least 1 parameter,
 m.getParameterTypes().length  0);
                                         break;
                                 }
                         }
                 }
         }

 What we do is have critical tests like this run on save, in
 our .project file we have :

 buildCommand
         nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name
         triggersauto,full,incremental,/triggers
         arguments
                 dictionary
                         keyLaunchConfigHandle/key
                         valuelt;projectgt;/Autobuild.launch/value
                 /dictionary
         /arguments
 /buildCommand

 This ensures that we don't have to remember to add keys, servlet
 definitions in web.xml etc - all the critical things that can go
 wrong, but are easy to forget.

 Joe

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



Handling too many locales in a large scale real life app

2010-08-27 Thread Fernando
So, in my company we face a problem where we have too many properties
files to handle, and they are all large, every now and then one
properties is left outdated and is missing some translations.

I wanna know if there's an easy way (app, library, anything...) to
deal with them besides a strict process of updating them all the
time.

One coworker suggested that we should make an app to generate these
properties files from a database, but before we started working on
that, I wanted to post here in case someone knows a solution.

Thanks in advance

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



Re: Registering events with Custom widgets..

2010-08-24 Thread Fernando Barbat
Maybe this could help:
http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem

On 24 ago, 04:47, Aditya 007aditya.b...@gmail.com wrote:
 Hello,

          I m trying to design a custom widget for which i m trying to
 handle some events such as onFocus etc.

 But i dnt know how should i register these events with my widget.

 I m extending Composite for creating widget and for initWidget() i
 have given a VerticalPanel which does not handle any

 event.

 Is there any mechanism which registers events for a widget.?

 --
 Aditya

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



Re: Horizontal tab bar or tab layout

2010-08-18 Thread Fernando
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TabBar.html

On 18 ago, 02:41, Sunny sravip...@gmail.com wrote:
 I need to create a horizonatal tab bar/panel inside a tab bar. How can
 i create the horizaontal tab bar

 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.



Re: Problems creating my first reusable module: import cannot be resolved

2010-08-18 Thread Fernando
Your .xml seems out of place

On 17 ago, 18:12, Sleeveen pstron...@gmail.com wrote:
 I'm in the process of trying to create my first reusable module in
 GWT. For
 now, this module contains only some simple classes to be used as part
 of a
 GWT RPC implementation. The module DOES NOT have an entry-point, just
 source
 path specifications.

 This code would normally go into the shared subfolder of a standard
 GWT project;
 I just want to be able to reuse these classes. I'm fairly certain that
 I have
 complied with the GWT RPC serializability rules (although I do use
 Java generics,
 which shouldn't be a problem - right?).

 My source structure for the module is similar to:

 src
     org
         base
             subpackage1
                 A.java
                 B.java
                 C.java
             subpackage2
                 generated
                     X.java
                     Y.java
                     Z.java
             my-module.gwt.xml

 The my-module.gwt.xml file looks like:

     ?xml version=1.0 encoding=UTF-8?
     module rename-to='my-module'

       source path='subpackage1'/
       source path='subpackage2'/

     /module

 I have created a my-module.jar file that is structured as follows:

 META-INF
 org
     base
         subpackage1
             A.java
             A.class
             B.java
             B.class
             C.java
             C.class
         subpackage2
                 generated
                     X.java
                     X.class
                     Y.java
                     Y.class
                     Z.java
                     Z.class
         my-module.gwt.xml

 In the module where I'm attempting to use the X class:
     - I've added my-module.jar to war/WEB-INF/lib
     - I've added   inherits name=org.base.my-module/ to
 my .gwt.xml file
     - I've adde my-module.jar to the java build path libraries

 In the class where I'm attempting to use the X class I have:

     import org.base.subpackage2.generated.X;

 And the GWT compiler is indicating that:

     The import org.base cannot be resolved.

 This is probably something really obvious (for the non-noobs ;-)

 Any assistance would be appreciated.

 Cheers!

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



Re: Special character issue using Constant

2010-08-18 Thread Fernando
They have to be doubled, two apostrophes

L''ajout de votre donnée a été accepté

On 18 ago, 06:40, Christophe cdebuss...@gmail.com wrote:
 Hi Everyone,

 I have an issue with a special character not coming back as it should.
 Here is what I have:

 Labels.properties
 --

 text = L'ajout de votre donnée a été accepté

 Labels.java
 

   /**
    * Translated L'ajout de votre donnée a été accepté.
    *
    * @return translated L'ajout de votre donnée a été accepté
    */
   @DefaultMessage(L'ajout de votre donnée a été accepté)
   @Key(text)
   String text();

 In debug mode, if I look at the output of labels.text(), I have the
 following: Lajout de votre donnée a été accepté

 The only missing character is '. Any idea why ? Should I escape it or
 something ? For information, all my files are in UTF-8, I am doing
 these test in hosted mode with the latest versions of the appengine,
 plugins, etc...

 Thx in advance for your help !

 Christophe

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



Re: Run time designing ( Dynamic text boxes )

2010-08-18 Thread Fernando
Add a listener to that text box that adds those X textboxes

On 16 ago, 11:54, AJAY SINGH AZAD ajaysingha...@gmail.com wrote:
 So, the problem: My concept is that  application reads a integer
 from a TextBox after the user wrote it in there e.g. 3 and then
 creates 3 new TextBoxes.

 Reply ASAP

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



Re: Encoding

2010-08-18 Thread Fernando
UTF-8 is supposed to reconigze this set of chars, I'm guessing there's
something wrong with your environment
If you can't find the defect, try using HTML codes for the time being
I use this site to check the codes for each character: 
http://www.lookuptables.com/

On 16 ago, 04:10, sgt dwarf thedwar...@gmail.com wrote:
 Hello, many thanks to all of you but I still have an encoding problem.
 I put the project's text file encoding property to UTF-8 deleted the
 GWT built folder and then built the project again but the é and other
 special characters appear not to be supported :-(

 Environement : myEclipse 8.5 / GWT 2.0.3

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



Re: Resizable Text Area

2010-08-18 Thread Fernando
You could make one, creating your own custom widget.
Before doing that, check Smart-GWT or other GWT libraries if there
isn't one resizeable textarea available

On 16 ago, 23:28, Constantin Tanno constantin.ta...@gmail.com wrote:
 Does anyone know how to create a resizable text area in GWT?  This
 would be a text area that has gripper bars somewhere (ideally in the
 bottom right corner) so the user can resize the text area.  Is this
 possible?  I've searched around in this groups and the docs and
 couldn't find anything.

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



Re: JS works in html file but not in httpServlet

2010-08-18 Thread Fernando
http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html

On 14 ago, 17:02, poe stefan.poe...@googlemail.com wrote:
 Hi everybody,

 i've got a problem. When I include my main,nocache.js in an html file
 everything works fine when I run it from a httpServlet nothing is
 loading. Well the HTML from the servlet is loading but the javascript
 isn't working. The link works, I can see it in the sources. What am I
 doing wrong here?

 Greets
 Poe

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



Re: Excessive number of property descriptors

2010-08-11 Thread Fernando
split it into multiple files

On 11 ago, 02:39, G. Vaaler g...@dataloy.com wrote:
 I got the following just now trying to GWT-compile for testing:

 gwtc:
       [java] Compiling module com.dataloy.webtest2.TestApp
       [java]    Scanning for additional dependencies: jar:file:***
       [java]       Computing all possible rebind results for
 'org.gwt.beansbinding.core.client.util.GWTBeansBinding'
       [java]          Rebinding
 org.gwt.beansbinding.core.client.util.GWTBeansBinding
       [java]             Invoking
 com.google.gwt.dev.javac.standardgeneratorcont...@334d0d4d
       [java]                Enable
 org.gwt.beansbinding.core.client.util.GWTBeansBinding for introspection
       [java]       Adding '1' new generated units
       [java]          Validating newly compiled units
       [java]             [ERROR] Errors in
 'generated://E1893746222116E9EE87FF082CB77979/org/gwt/beansbinding/core/client/util/GWTBeansBindingIntrospector.java'
       [java]                [ERROR] Line 9: The code of method
 setupBeanInfo() is exceeding the 65535 bytes limit
       [java]                See snapshot:
 /tmp/GWTBeansBindingIntrospector2326369653473147222.java
       [java]       [ERROR] Unable to find recently-generated type
 'org.gwt.beansbinding.core.client.util.GWTBeansBindingIntrospector
       [java]    [ERROR] Errors in
 'jar:file:/home/gardv/NetBeansProjects/vms/webtest2/war/WEB-INF/lib/gwt-beans-binding-0.3.jar!/org/gwt/beansbinding/core/client/util/GWTBeansBinding.java'
       [java]       [ERROR]  Internal compiler error
       [java] java.lang.RuntimeException: Unable to commit generated files
       [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:131)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200)
       [java]     at
 org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522)
       [java]     at
 com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112)
       [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47)
       [java]     at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:422)
       [java]     at
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
       [java]     at
 com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
       [java]     at
 com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
       [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:201)
       [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
       [java]     at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
       [java]     at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
       [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:159)
       [java] Caused by:
 com.google.gwt.core.ext.UnableToCompleteException: (see previous log
 entries)
       [java]     at
 com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java:358)
       [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:129)
       [java]     ... 17 more

 It seems my ontology actually contains too many properties to compile
 for GWT! This sounds a bit odd. Are there any workarounds or fixes?

 --
 Gard

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



Re: Upgrade from 1.5.3 to 2.x

2010-08-11 Thread Fernando
I did the migration from 1.6.x to 2.0.x and it was pretty much
straightforward, just a couple deprecated elements (listeners -
handlers), but before that, from 1.5.x to 1.6.x, it seems that they
ran into some trouble...

On 11 ago, 09:37, cupakob sira...@gmail.com wrote:
 HI *,

 we have an application, which is build with GWT 1.5.3. Is it possible
 to upgrade to the newest GWT version? Is there any howto, how to make
 the upgrade?

 Thanks in advance!
 S.

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



Re: Instantiate composite on the server side

2010-08-06 Thread Fernando Barbat
You can do that on the client side. Although you don't have
reflections, you can have a helper class which can do that work for
you. That helper class could have a big if, else if, else if clause
and compare classes using instance.getClass(). Every time you add a
new class you want to use reflections with, you can add a new else if
(instance.getClass() == MyClass.class){ return new MyClass(); }
That was what I did when I needed to use reflections on the client
side.

On 6 ago, 05:07, Stephan T stephan.tern...@gmail.com wrote:
 The reason why I try to do this is that GWT doesn't support
 reflections. I'm trying to use a helper method on the server side
 which receivs the class name, the server side then instatiates the
 class and returns it to the client.

 Any other suggestions how to solve this problem?

 On 5 Aug, 15:47, Mikael Couzic mikaelcou...@gmail.com wrote:

  Sounds like you violated the SRP principle...
  If I got it right, Composite depends on the DOM, which doesn't exist
  server-side, so I don't think it is possible.
  A solution would be to encapsulate the functionnality you want to use
  server-side in a POJO. Your composite would then delegate to the POJO,
  which could be reused server-side.
  And if you wish to push further towards great design, embrace MVP !

  On 5 août, 14:42, Stephan T stephan.tern...@gmail.com wrote:

   For several reasons I need to instansiate a Composite on the server
   side that is in the client package. Is it possible? Now I think I'm
   getting class not found exception when trying...

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



Re: Instantiate composite on the server side

2010-08-06 Thread Fernando Barbat
I was't so clear so I want to put it with an example. Let's suppose
your
helper class is named Reflector. This class could be something like
this:
class Reflector {
   public static T getInstance(ClassT extend Widget class){
  if (class == MyClass1.class)
 return new MyClass1();
  else if (class == MyClass2.class)
 return new MyClass2();
  else
  throw new CouldntInstanceClassException();
   }
}
It is type safe, although you can have a
CouldntInstanceClassException() if you forget to add the corresponding
comparison.

On 6 ago, 08:19, Fernando Barbat fbar...@gmail.com wrote:
 You can do that on the client side. Although you don't have
 reflections, you can have a helper class which can do that work for
 you. That helper class could have a big if, else if, else if clause
 and compare classes using instance.getClass(). Every time you add a
 new class you want to use reflections with, you can add a new else if
 (instance.getClass() == MyClass.class){ return new MyClass(); }
 That was what I did when I needed to use reflections on the client
 side.

 On 6 ago, 05:07, Stephan T stephan.tern...@gmail.com wrote:

  The reason why I try to do this is that GWT doesn't support
  reflections. I'm trying to use a helper method on the server side
  which receivs the class name, the server side then instatiates the
  class and returns it to the client.

  Any other suggestions how to solve this problem?

  On 5 Aug, 15:47, Mikael Couzic mikaelcou...@gmail.com wrote:

   Sounds like you violated the SRP principle...
   If I got it right, Composite depends on the DOM, which doesn't exist
   server-side, so I don't think it is possible.
   A solution would be to encapsulate the functionnality you want to use
   server-side in a POJO. Your composite would then delegate to the POJO,
   which could be reused server-side.
   And if you wish to push further towards great design, embrace MVP !

   On 5 août, 14:42, Stephan T stephan.tern...@gmail.com wrote:

For several reasons I need to instansiate a Composite on the server
side that is in the client package. Is it possible? Now I think I'm
getting class not found exception when trying...

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



Re: Instantiate composite on the server side

2010-08-06 Thread Fernando Barbat
Correction... If you want to know the type of the created object, It's
almost type safe. :P If you are alright by knowing it's a Widget,
it's type-safe. Here's a tidier version of the code:

Almost type-safe:
public class Reflector {
@SuppressWarnings(unchecked)
public static T T createInstance(ClassT theClass) {
if (theClass == TextBox.class)
return (T)new TextBox();
else if (theClass == Button.class)
return (T)new Button();
else
throw new RuntimeException();
}
}

Type-safe:
public class Reflector {
public static T extends Widget Widget createInstance(ClassT
theClass) {
if (theClass == TextBox.class)
return new TextBox();
else if (theClass == Button.class)
return new Button();
else
throw new RuntimeException();
}
}


On 6 ago, 12:58, Fernando Barbat fbar...@gmail.com wrote:
 I was't so clear so I want to put it with an example. Let's suppose
 your
 helper class is named Reflector. This class could be something like
 this:
 class Reflector {
    public static T getInstance(ClassT extend Widget class){
       if (class == MyClass1.class)
          return new MyClass1();
       else if (class == MyClass2.class)
          return new MyClass2();
       else
           throw new CouldntInstanceClassException();
    }}

 It is type safe, although you can have a
 CouldntInstanceClassException() if you forget to add the corresponding
 comparison.

 On 6 ago, 08:19, Fernando Barbat fbar...@gmail.com wrote:

  You can do that on the client side. Although you don't have
  reflections, you can have a helper class which can do that work for
  you. That helper class could have a big if, else if, else if clause
  and compare classes using instance.getClass(). Every time you add a
  new class you want to use reflections with, you can add a new else if
  (instance.getClass() == MyClass.class){ return new MyClass(); }
  That was what I did when I needed to use reflections on the client
  side.

  On 6 ago, 05:07, Stephan T stephan.tern...@gmail.com wrote:

   The reason why I try to do this is that GWT doesn't support
   reflections. I'm trying to use a helper method on the server side
   which receivs the class name, the server side then instatiates the
   class and returns it to the client.

   Any other suggestions how to solve this problem?

   On 5 Aug, 15:47, Mikael Couzic mikaelcou...@gmail.com wrote:

Sounds like you violated the SRP principle...
If I got it right, Composite depends on the DOM, which doesn't exist
server-side, so I don't think it is possible.
A solution would be to encapsulate the functionnality you want to use
server-side in a POJO. Your composite would then delegate to the POJO,
which could be reused server-side.
And if you wish to push further towards great design, embrace MVP !

On 5 août, 14:42, Stephan T stephan.tern...@gmail.com wrote:

 For several reasons I need to instansiate a Composite on the server
 side that is in the client package. Is it possible? Now I think I'm
 getting class not found exception when trying...

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



Re: i18n translations

2010-08-05 Thread Fernando
I can help you with portuguese (from Brazil).

On 5 ago, 10:55, ale aleee...@gmail.com wrote:
 Of course I want!!!
 Thank you!

 On 5 Ago, 10:47, Константин Ксенофонтов phone0...@gmail.com wrote:

  ale, send a file. i will help you with russian in several days if you want.

  2010/8/5 ale aleee...@gmail.com:

   Hi everybody,

   I'm finishing to develop a web application with GWT + GAE, and I want
   to publish in multiple languages.

   The application is about sport, and the message file is about 400
   lines mostly consist of one word.

   Is there anyone who can  translate it into his native language?
   In return he will receive my infinite gratitude, I will write his/her
   name in the thanks page of my  site with a link to what he wants.
   And of course I will be happy to return the favor by translating into
   Italian!
   Any language is OK, even English, (I'n not speak wery well, so will be
   full of errors!)

   Thank you, thank you!

   Alessandro

   --
   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 
   athttp://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-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.



Re: CalendarService application showing total meeting from Google Calendar

2010-08-05 Thread Fernando
the problem is the CalendarService import
check if it is the right one and also your gdata library version

On 5 ago, 06:06, ichi ichi8...@gmail.com wrote:
 Hai, I'm a newbie trying this piece of code to show the total schedule
 we have from Google Calendar, I've already import several package and
 put the necessary jar files in Reference Library, But I still have
 several things error. Could you tell me what I miss? I put the error
 message in the line directly.
 Thank you

 --
 package calendarTest.client;

 import java.lang.Class;
 import com.google.gwt.accounts.client.User;
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.KeyCodes;
 import com.google.gwt.event.dom.client.KeyUpEvent;
 import com.google.gwt.event.dom.client.KeyUpHandler;
 import com.google.gwt.gdata.client.GData;
 import com.google.gwt.gdata.client.GDataSystemPackage;
 import com.google.gwt.gdata.client.calendar.CalendarEventFeedCallback;
 import com.google.gwt.gdata.client.impl.CallErrorException;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.DialogBox;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gdata.client.*;
 import com.google.gdata.client.calendar.CalendarService;
 import com.google.gdata.data.acl.*;
 import com.google.gdata.data.calendar.*;
 import com.google.gdata.data.extensions.*;
 import com.google.gdata.util.*;
 import java.net.URL;
 import java.net.*;
 import java.io.*;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class CalendarTest {

         private CalendarService service;

         String scope = http://www.google.com/calendar/feeds/;;
         String eventFeed = http://www.google.com/calendar/feeds/default/
 private/full;

         public void onModuleLoad(){

                 //make sure GWT app has the necessary packet
                 if(!GData.isLoaded(GDataSystemPackage.CALENDAR)){
                         GData.loadGDataApi(null, new Runnable(){
                                 public void run(){
                                         Button b = new Button(Affiche mes 
 rendez-vous);
                                         b.addClickHandler(new ClickHandler() {
                                                 @Override
                                                 public void 
 onClick(ClickEvent event) {
                                                         User.login(scope);
                                                         getEvents();
                                                 }
                                         });
                                         RootPanel.get().add(b);
                                 }
                         }, GDataSystemPackage.CALENDAR);
                 } else {
                         getEvents();
                 }
         }
         private void getEvents() {
                 service = CalendarService.newInstance(My Demo); //--The 
 method
 newInstance(String) is undefined for the type CalendarService

         service.getEventsFeed(eventFeed, new CalendarEventFeedCallback() {
 //-- getEventsFeed(String, new CalendarEventFeedCallback(){}) is
 undefined for the type CalendarService

                 public void onFailure(CallErrorException caught) {
                         Window.alert(Erreur survenue lors de la lecture du 
 flux: 
 +caught.getMessage());
                 }

                 public void
 onSuccess(com.google.gwt.gdata.client.calendar.CalendarEventFeed
 result) {
                         CalendarEventEntry[] entries = result.getEntries(); 
 //--Type
 mismatch: cannot convert from EventEntry[] to CalendarEventEntry[]

                  if (entries.length == 0) {
                          Window.alert(Il n'y a aucun événement dans votre 
 calendrier.);
                  } else {
                          showData(result.getEntries());
                  }
                 }

                 });
         }

         private void showData(CalendarEventEntry[] entries) { //--The method
 showData(CalendarEventEntry[]) in the type CalendarTest is not
 applicable for the arguments (EventEntry[])
                 for (int i=0; i  entries.length; i++) {
                         CalendarEventEntry entry = entries[i];
                         String s = Le  +
 entry.getUpdated().getValue().getDate().toString() ; // -- Cannot
 invoke getDate() on the primitive type long     CalendarTest.java

                         s += a href= + entry.getHtmlLink().getHref() + 
 Rendez-vous ;
        

Re: GWT + Hibernate + MySQL + Tomcat + Ant + Log4j + SVN; is this possible all together?

2010-08-04 Thread Fernando
Yes, I did a project a few months ago with everything you listed
except, maybe, Hibernate
I say maybe because the project itself used an internal framework very
similar to Hibernate

On 3 ago, 05:18, Sanky 74.san...@gmail.com wrote:
 Hello,
 I am learning GWT for a while. I tried tutorials of GWT. I learnt
 Hibernate as well. Now I am going to work on a real application. It is
 divided into 2 parts: Standalone Desktop mode(without internet
 connection) and web mode(with internet connection, front end will
 remain same as for Desktop mode, with an added button nd some message
 boxes).
 This project is connected to other project so i have to use the same
 configuration (if possible to use this all) used for that main
 project, the configuration includes:
 GWT - for front end and business logic
 Hibernate - Database connectivity
 MySQL - as a database
 Ant - war built tool
 Tomcat - Application server
 log4j - for logging
 SVN - repository

 My query is ' can I use this configuration for this project?
 Desktop mode has no Database connectivity, but use xml to store data.
 Do i need to use Tomcat for desktop mode?
 What other things I need to be careful with?

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



Re: Firing native events in GWT?!

2010-08-03 Thread Fernando Barbat
I don't have the answer to your question but maybe this could help:
http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem

On 3 ago, 06:40, Blaze baze...@gmail.com wrote:
 Hi all,

 I have one question...how can we fire a native event in gwt...??
 by native event I think on let me say..keyboard key pressed...etc

 Tnx,

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



IE8 problem when using Singleton and DockLayoutPanel

2010-07-25 Thread Fernando Barbat
Hi everyone,

I have a Welcome Screen which is made by hand from the entry point.
On the other side, I have Widget named Main which uses the Singleton
pattern: this Widget encapsulates the application funcionality and
there should be only one instance in the application. This Widget is a
composite over a DockLayoutPanel, which has north, west and center
panels. The unit used to define the size of these panels is EM.

The problem raises in IE8. If I use the Widget the first time I call
Main.getInstance(), everything is fine. However, if I use it (add it
to RootLayoutPanel) after the first time, IE8 only shows the center
panel.

If I use PX insted of EM, everything works fine.

Here is the code:

//BugTest.java
package com.bugtest.clearadd.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.RootPanel;

public class BugTest implements EntryPoint {

@Override
public void onModuleLoad() {
Button prefetchButton = new Button(Prefetch!);
prefetchButton.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
//Invoke the function but do nothing.
Main.getInstance();

PopupPanel popupPanel = new PopupPanel(true);
popupPanel.setWidget(new Label(Prefetching
finished!));
popupPanel.center();
}
});

Button switchButton = new Button(Switch!);
switchButton.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
//Here I use the result if the function
Main result = Main.getInstance();
RootPanel.get().clear();
RootLayoutPanel.get().add(result);
}
});

FlowPanel flowPanel = new FlowPanel();
flowPanel.add(new Label(Bug test!));
flowPanel.add(prefetchButton);
flowPanel.add(switchButton);

RootPanel.get().add(flowPanel);
}

}

//Main.java
package com.bugtest.clearadd.client;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ResizeComposite;

public class Main extends ResizeComposite {

private static Main instance = null;

public static Main getInstance() {
if (instance == null) {
instance = new Main();
}
return instance;
}

private Main() {
DockLayoutPanel dockLayoutPanel = new
DockLayoutPanel(Unit.EM);
dockLayoutPanel.addNorth(new Label(North!), 7);
dockLayoutPanel.addWest(new Label(West!), 15);
dockLayoutPanel.add(new Label(Center! :D));
initWidget(dockLayoutPanel);
}

}

Is it a bug or I am just missing something?

I posted this problem in another place, but now I realize that I
should have posted here first. :P Anyway, I haven't received any
comment on that post, so that's why I'm here.

This problem showed up when I was trying to use code splitting. I was
using the Async Provider pattern, but the singleton pattern is a
simplified version which has the same issue. The first call to
Main.getInstance() correspond to a prefetch when I know there's little
network activity.

Thanks in advance.

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



Centering a panel inside a ScrollPanel

2010-07-25 Thread Fernando Barbat
Is there any way to center a panel inside a ScrollPanel?
When I have to center a panel inside any other panel that is not a
ScrollPanel, I use CSS:
Parent
   position: relative;
Child
   position: absolute;
   left: 50%;
   top: 50%;
   margin-left: -(panelWidth/2)
   margin-top: -(panelHeight/2)
However, this is not working inside a ScrollPanel. Specifically,
neither Firefox nor IE uses the top: 50% property. Any idea?
Thanks in advance.

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



Re: GWT and JSON (RequestPermissionException)

2010-04-20 Thread Fernando
I'm also new to GWT, but I think this is why isn't working when you
change the URL:

http://en.wikipedia.org/wiki/Same_origin_policy

On Apr 18, 5:58 pm, nasionalem sakarya.me...@gmail.com wrote:
 I am new in GWT 2.0 and JSON. I need to get some values using JSON.
 so I downloaded json sample from code.google.com. When I run the
 project Its working fine. but when I change the url, I am getting
 error below.

 com.google.gwt.http.client.RequestPermissionException: The 
 URLhttp://api.search.yahoo.com/ImageSearchService/V1/imageSearch?appid=Y...
 is invalid or violates the same-origin security restriction

 Its working when code like below,
 private static final String DEFAULT_SEARCH_URL =
 GWT.getModuleBaseURL()
       + search-results.js;

 private final RequestBuilder requestBuilder = new RequestBuilder(
                   RequestBuilder.GET, DEFAULT_SEARCH_URL);

 And this is what I did;
 private final RequestBuilder requestBuilder = new RequestBuilder(
                   
 RequestBuilder.http://api.search.yahoo.com/ImageSearchService/V1/
 imageSearch?appid=YahooDemoquery=potatoresults=2output=json);

 --
 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 
 athttp://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-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.



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread Luis Fernando Planella Gonzalez
 Anyone has a better idea?

public boolean equals(Object obj) {
if (!(obj instanceof Point)) {
return false;
}
Point p = (Point) obj;
return fX == p.fY  fY == p.fY;
}

public int hashCode() {
return (int) (pX + pY);
}

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



Re: style of FileUpload widget

2010-03-03 Thread Luis Fernando Planella Gonzalez
This has nothing to do with GWT.
Inputs of type file cannot be styled using normal CSS.
This has been an issue for years, and I don't know if it will ever
have a standard solution.
However, there are some obscure techniques, like this one:
http://www.quirksmode.org/dom/inputfile.html

On 3 mar, 09:09, Mathieu mathieu.cras...@gmail.com wrote:
 Hi

 I have to develop an application with GWT and UI Binder in Eclipse. I
 have to apply the Model View Presenter technic.
 I want to apply a special style to all the buttons of my application.
 Here comes the problem, I can't do that with the fileupload component.
 I tried different way to restyle the component (for instance just
 CSS), but there is nothing to do, I can't change its style.

 I also tried the method describe in several post that consists in
 hidding the fileupload component in the page, and redirect the events
 of other widget to our fileupload component. But this method doesn't
 work in firefox because the calls to javascript click method are
 blocked.

 So, if someone has a solution to cleanly resolv this problem ...

 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.



Re: style of FileUpload widget

2010-03-03 Thread Luis Fernando Planella Gonzalez
I have implemented something like this in my own app, but can't post
the GWT code.
However, here is the HTML sketch I reproduced in GWT with widgets:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
style type=text/css
!--
.uploadContainer {
bottom: 0px;
overflow: hidden;
position: absolute;
right: 0px;
top: 0px;
left: 0px;
}
.upload {
filter:alpha(opacity: 0);
opacity: 0;
z-index: 1;
position: absolute;
right: 0px;
top: 0px;
bottom: 0px;
cursor: pointer;
cursor: hand;
}
--
/style
/head
body
form
table cellpadding=0 cellspacing=0
tr
td align=right
div style=position:relative
button class=uploadButton type=button
id=uploadButtonABCDE/button
div class=uploadContainer
input type=file class=upload
onchange=getElementById('selectedFile').innerHTML = this.value/
/div
/div
/td
td id=selectedFile/td
/tr
/table
/form

/body
/html



On 3 mar, 13:08, Mathieu mathieu.cras...@gmail.com wrote:
 thanks for your answer

 I already did this technique but the fact is my browse button has 2
 different styles switched when the mouse is over it. So with this
 technique, the over mouseevent can't be use with the browse button
 which is under the fileupload widget even if  it's invisible :/

 Maybe someone will have an idea to figure it out with this solution or
 another, but anyway, thanks for your time, I appreciate.

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



Re: Referencing deprecated class warning stack

2010-01-08 Thread Luis Fernando Planella Gonzalez
 I've got the same type of exception with same environment. Is there
 something that we missed?
Yes, you missed the thread which is already discussing it ;)
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cbf566637f03496a/a676bf46bb463f94?#a676bf46bb463f94
-- 
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.




Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-04 Thread Luis Fernando Planella Gonzalez
 Could you add a bug to the GWT issue
 trackerhttp://code.google.com/p/google-web-toolkit/issues/list
 ?
Done: http://code.google.com/p/google-web-toolkit/issues/detail?id=4438

--

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.




Re: Deprecated XXXListenerCollection warnings when migrating to GWT 2.0

2009-12-21 Thread Luis Fernando Planella Gonzalez
I had already posted both the problem and the answer at
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cbf566637f03496a
Anyway, to see the real problem, compile with log level = debug and
with the -compileReport option. You will see several files *.rpc.log.
Those will contain why those classes were included.
But, as I said in the other post, to me it seems a bug in the GWT
compiler...

On 19 dez, 06:38, Al Murauski a.murau...@gmail.com wrote:
 Absolutely the same problem after migrating to 2.0.

 On 19 дек, 00:57, Raziel raziel...@gmail.com wrote:

  Hi, I'm migrating my application from GWT 1.7 to GWT 2.0, and
  everything seems ok except for the warning below every time I
  compile:

  ]       Adding '69' new generated units
  ]          Validating newly compiled units
  ]             [WARN] Warnings in 'generated://
  3DE2D57126EAE7405EEA01A75D45584C/com/appiancorp/gwt/appbuilder/client/
  services/ApplicationRPCS
  eSerializer.java'
  ]                [WARN] Line 286: Referencing deprecated class
  'com.google.gwt.user.client.ui.ChangeListenerCollection'
  ]                [WARN] Line 291: Referencing deprecated class
  'com.google.gwt.user.client.ui.ClickListenerCollection'
  ]                [WARN] Line 296: Referencing deprecated class
  'com.google.gwt.user.client.ui.FocusListenerCollection'
  ]                [WARN] Line 301: Referencing deprecated class
  'com.google.gwt.user.client.ui.FormHandlerCollection'
  ]                [WARN] Line 306: Referencing deprecated class
  'com.google.gwt.user.client.ui.KeyboardListenerCollection'
  ]                [WARN] Line 311: Referencing deprecated class
  'com.google.gwt.user.client.ui.LoadListenerCollection'
  ]                [WARN] Line 316: Referencing deprecated class
  'com.google.gwt.user.client.ui.MouseListenerCollection'
  ]                [WARN] Line 321: Referencing deprecated class
  'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
  ]                [WARN] Line 326: Referencing deprecated class
  'com.google.gwt.user.client.ui.PopupListenerCollection'
  ]                [WARN] Line 331: Referencing deprecated class
  'com.google.gwt.user.client.ui.ScrollListenerCollection'
  ]                [WARN] Line 336: Referencing deprecated class
  'com.google.gwt.user.client.ui.TabListenerCollection'
  ]                [WARN] Line 341: Referencing deprecated class
  'com.google.gwt.user.client.ui.TableListenerCollection'
  ]                [WARN] Line 346: Referencing deprecated class
  'com.google.gwt.user.client.ui.TreeListenerCollection'
  ]                See snapshot: C:\DOCUME~1\RAZIEL~1.ALV\LOCALS~1\Temp
  \ApplicationRPCService_TypeSerializer4633447028131908703.java

  I don't understand why in the world I'm getting that since my code
  never defines signature related to any of those classes.

  Any idea?

  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.




Limiting serializable types in RPC

2009-12-14 Thread Luis Fernando Planella Gonzalez
Is there a way (it would be nice if there were one) to exclude types
from RPC?
Here's the concrete use case: In our project, the RemoteService
interfaces are defined in a separate project as the web layer. And all
methods / parameters use the Java best practices: always reference
collections by it's interface.
However, having a method to return CollectionString, for example,
generates code to handle Vector, ArrayList, LinkedList, HashSet,
LinkedHashSet...
As interfaces are in a separated project, and it would be messy and
make maintenance harder to change all interfaces to a given
implementation...
If I know I ALWAYS return ArrayLists or HashSets, is there a way to
blacklist other types so code to handle all other types wouldn't get
in our generated javascript?

--

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.




Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Luis Fernando Planella Gonzalez
This issue is still present on GWT 2.0 final.
I've made some tests: creating a new GWT project with Collections in
RPC methods don't result in such code being inserted in the generated
JavaScript.
The point is: our project is quite huge, but I can confirm that there
are no occurrences of any of the ListenerCollections mentioned.
Compiling with -compileReport shows as only references for those
collections the RPC generated TypeSerializers and FieldSerializers.
Could someone, please, explain how to get rid of those unwanted (and
unused) collections in the generated code?

PS: I've read some time ago that all this deprecated code would be
removed in GWT 2. It's even in the source code that it would be
removed. Why it wasn't?!?
If it's for people using the old event listeners, I can assure that
I've migrated from GWT 1.5 to 1.7 in 1,5 days. When I first replaced
Listeners by Handlers I had 600+ compilation errors. Just changed the
inner classes and everything worked. And better. Not to count having
to rearrange the app to use the war directory. So I think this is no
excuse for keeping deprecated code, as I think that 99% of the GWT
users are working in a code base the same size or smaller than ours.

--

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.




Re: GWT 2.0 - Eclipse - Need to Recompile after every change

2009-12-11 Thread Luis Fernando Planella Gonzalez
Make sure you have ?gwt.codesvr=127.0.1.1:9997 at the end of the URL
in the browser.
That's what makes it use development mode.
Otherwise, it will just be the plain old web mode (now called
production mode).

On 11 dez, 10:46, ziggystardust camke...@gmail.com wrote:
 Been using GWT / App Engine and the Eclipse plugin for some time now
 and just recently upgraded to 2.0. I reinstalled Eclipse (3.5),
 installed the plugin and the sdks. Setup the example StockWatcher app
 and everything runs fine. In dev mode however I have to recompile
 whenever i make a change in order for it to be effective. Tried reload
 and restarting the browser (IE and Chrome), tried restarting the
 server but no joy. Any ideas appreciated. 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.




Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Luis Fernando Planella Gonzalez
Just found the answer, and luckily in my case it was simple to
solve
I have a subtype of ListT called PageImplT, which had another
ListT containing the page items, plus the total count.
Then (and I think is a problem in GWT compiler), the compiler resolves
FocusListenerCollection, which extends ArrayListFocusListener to be
a subclass of ListT.
As a result, ALL occurrences of Collection of anything in any RPC
method, by having PageImpl as a subclass of collection, had added
those ListenerCollections as possible result types, generated code to
handle them (50k in my case) and issued the warnings.
The solution (in better words: hack) was to change PageImpl to not
have a List of page items, but a LinkedList (it then converts the
receiving list into a LinkedList, which is even a penalty in my case).
As no ListenerCollection extends LinkedList, the problem is gone.

Ah, I also had an RPC which result type was ListListString. The
same problem. As it was just for testing, I changed it to ListString[]
.

But I'd really want to hear from a GWT dev if this is not a bug in the
compiler...

On 11 dez, 13:04, Ashar Lohmar asharloh...@gmail.com wrote:
 Hi I'm having the same kind of problem.
 in my app i use some libraries/object written in Java 1.4 style
 the objects implement Serializable but contain Lists or Maps which are
 declare without parameters
  i mean List instead of ListE, as the Java 1.4 requires
 and some RPC classes return this kind of objects but on Gwt-compiling
 I endup with a lot of code referencing all kinds of Listeners and
 stuffs that are unrelated to the RPC service.

 Basically the messages appear because the Listeners are deprecated,but
 what are they doing there in the first place ?

 hope someone will clear this up

 On Dec 8, 7:24 pm, Luis Fernando Planella Gonzalez

 lfpg@gmail.com wrote:
  Hi.
  We're using GWT 1.7 and I'm starting to experiment with 2.0 RC2 to
  evaluate GWT.runAsync().

  However, now as I compile the app, I get warning for deprecations in
  all RPC methods which return collections. I guess it's because the
  result is declared as java.util.Collection, and the deprecated
  com.google.gwt.user.client.ui.*ListenerCollection classes extends
  ArrayList, making even the alternative to change the result of RPC
  methods to ArrayList instead of Collection don't work.

  The log is something like this, multiple times:
              [WARN] Warnings in 'generated://
  8D0B12EA4B123D9B133384111C9A7E38/nl/strohalm/cyclos/client/app/users/
  images/UserImageRemoteService_TypeSerializer.java'
                 [WARN] Line 50: Referencing deprecated class
  'com.google.gwt.user.client.ui.ChangeListenerCollection'
                 [WARN] Line 55: Referencing deprecated class
  'com.google.gwt.user.client.ui.ClickListenerCollection'
                 [WARN] Line 60: Referencing deprecated class
  'com.google.gwt.user.client.ui.FocusListenerCollection'
                 [WARN] Line 65: Referencing deprecated class
  'com.google.gwt.user.client.ui.FormHandlerCollection'
                 [WARN] Line 70: Referencing deprecated class
  'com.google.gwt.user.client.ui.KeyboardListenerCollection'
                 [WARN] Line 75: Referencing deprecated class
  'com.google.gwt.user.client.ui.LoadListenerCollection'
                 [WARN] Line 80: Referencing deprecated class
  'com.google.gwt.user.client.ui.MouseListenerCollection'
                 [WARN] Line 85: Referencing deprecated class
  'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
                 [WARN] Line 90: Referencing deprecated class
  'com.google.gwt.user.client.ui.PopupListenerCollection'
                 [WARN] Line 95: Referencing deprecated class
  'com.google.gwt.user.client.ui.ScrollListenerCollection'
                 [WARN] Line 100: Referencing deprecated class
  'com.google.gwt.user.client.ui.TabListenerCollection'
                 [WARN] Line 105: Referencing deprecated class
  'com.google.gwt.user.client.ui.TableListenerCollection'
                 [WARN] Line 110: Referencing deprecated class
  'com.google.gwt.user.client.ui.TreeListenerCollection'
                 See snapshot: /tmp/
  UserImageRemoteService_TypeSerializer2951604978153994580.java

  Is there a way to remove those classes from being handled in RPC?

--

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.




Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Luis Fernando Planella Gonzalez
In fact, there is a very easy way to reproduce it:
Just create a RPC method which returns ListListString. You'll see
references for those deprecated collections.

On 11 dez, 17:39, Luis Fernando Planella Gonzalez lfpg@gmail.com
wrote:
 Just found the answer, and luckily in my case it was simple to
 solve
 I have a subtype of ListT called PageImplT, which had another
 ListT containing the page items, plus the total count.
 Then (and I think is a problem in GWT compiler), the compiler resolves
 FocusListenerCollection, which extends ArrayListFocusListener to be
 a subclass of ListT.
 As a result, ALL occurrences of Collection of anything in any RPC
 method, by having PageImpl as a subclass of collection, had added
 those ListenerCollections as possible result types, generated code to
 handle them (50k in my case) and issued the warnings.
 The solution (in better words: hack) was to change PageImpl to not
 have a List of page items, but a LinkedList (it then converts the
 receiving list into a LinkedList, which is even a penalty in my case).
 As no ListenerCollection extends LinkedList, the problem is gone.

 Ah, I also had an RPC which result type was ListListString. The
 same problem. As it was just for testing, I changed it to ListString[]

 .

 But I'd really want to hear from a GWT dev if this is not a bug in the
 compiler...

 On 11 dez, 13:04, Ashar Lohmar asharloh...@gmail.com wrote:

  Hi I'm having the same kind of problem.
  in my app i use some libraries/object written in Java 1.4 style
  the objects implement Serializable but contain Lists or Maps which are
  declare without parameters
   i mean List instead of ListE, as the Java 1.4 requires
  and some RPC classes return this kind of objects but on Gwt-compiling
  I endup with a lot of code referencing all kinds of Listeners and
  stuffs that are unrelated to the RPC service.

  Basically the messages appear because the Listeners are deprecated,but
  what are they doing there in the first place ?

  hope someone will clear this up

  On Dec 8, 7:24 pm, Luis Fernando Planella Gonzalez

  lfpg@gmail.com wrote:
   Hi.
   We're using GWT 1.7 and I'm starting to experiment with 2.0 RC2 to
   evaluate GWT.runAsync().

   However, now as I compile the app, I get warning for deprecations in
   all RPC methods which return collections. I guess it's because the
   result is declared as java.util.Collection, and the deprecated
   com.google.gwt.user.client.ui.*ListenerCollection classes extends
   ArrayList, making even the alternative to change the result of RPC
   methods to ArrayList instead of Collection don't work.

   The log is something like this, multiple times:
               [WARN] Warnings in 'generated://
   8D0B12EA4B123D9B133384111C9A7E38/nl/strohalm/cyclos/client/app/users/
   images/UserImageRemoteService_TypeSerializer.java'
                  [WARN] Line 50: Referencing deprecated class
   'com.google.gwt.user.client.ui.ChangeListenerCollection'
                  [WARN] Line 55: Referencing deprecated class
   'com.google.gwt.user.client.ui.ClickListenerCollection'
                  [WARN] Line 60: Referencing deprecated class
   'com.google.gwt.user.client.ui.FocusListenerCollection'
                  [WARN] Line 65: Referencing deprecated class
   'com.google.gwt.user.client.ui.FormHandlerCollection'
                  [WARN] Line 70: Referencing deprecated class
   'com.google.gwt.user.client.ui.KeyboardListenerCollection'
                  [WARN] Line 75: Referencing deprecated class
   'com.google.gwt.user.client.ui.LoadListenerCollection'
                  [WARN] Line 80: Referencing deprecated class
   'com.google.gwt.user.client.ui.MouseListenerCollection'
                  [WARN] Line 85: Referencing deprecated class
   'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
                  [WARN] Line 90: Referencing deprecated class
   'com.google.gwt.user.client.ui.PopupListenerCollection'
                  [WARN] Line 95: Referencing deprecated class
   'com.google.gwt.user.client.ui.ScrollListenerCollection'
                  [WARN] Line 100: Referencing deprecated class
   'com.google.gwt.user.client.ui.TabListenerCollection'
                  [WARN] Line 105: Referencing deprecated class
   'com.google.gwt.user.client.ui.TableListenerCollection'
                  [WARN] Line 110: Referencing deprecated class
   'com.google.gwt.user.client.ui.TreeListenerCollection'
                  See snapshot: /tmp/
   UserImageRemoteService_TypeSerializer2951604978153994580.java

   Is there a way to remove those classes from being handled in RPC?

--

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.




Re: how large of your GWT compiled code? My one is 850K

2009-12-09 Thread Luis Fernando Planella Gonzalez
Sorry for taking so long to answer, but I haven't seen your post
before.
We haven't yet done any larger performance test, but it is very
acceptable.
Yesterday, in a first no-brainer attempt of GWT.runAsync(), I've
managed to get a 650K initial download and then a separate file per
module (for now, modules varies from few K to 180K).
I'll still try to reduce both the initial download and the modules.
It does takes more time to compile now. That's an issue to me as I
can't use the built-in server: we use EJB, so there's an external
server. Whenever anything changes in RPC (params, methods, even
classes) we need to recompile :-/
I still didn't implement gzip compression, but hope things can get
much better...
Ah, about IE6: as our app is targeted to late 2010, we won't support
IE6 \o/
--
Luis Fernando Planella Gonzalez

On 16 nov, 12:19, Bakul bakul.ku...@gmail.com wrote:
 Hi,

 Our app,  50 -55 % done so far, for one browser is nearly 1.6 MB
 without gzip. And it has nearly 70 -80 RPC calls.

 Luis, Question for you:
 As you said your app is 2.1 MB of obfuscated, how is the preformance
 and does it has any issue?

 Question to all:
 What is the max size that of GWT one module that a browser can handle
 without any issue, specially IE 6, in our case :-(         ?

 Thanks,
 Bakul.

--

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.




Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-08 Thread Luis Fernando Planella Gonzalez
Hi.
We're using GWT 1.7 and I'm starting to experiment with 2.0 RC2 to
evaluate GWT.runAsync().

However, now as I compile the app, I get warning for deprecations in
all RPC methods which return collections. I guess it's because the
result is declared as java.util.Collection, and the deprecated
com.google.gwt.user.client.ui.*ListenerCollection classes extends
ArrayList, making even the alternative to change the result of RPC
methods to ArrayList instead of Collection don't work.

The log is something like this, multiple times:
[WARN] Warnings in 'generated://
8D0B12EA4B123D9B133384111C9A7E38/nl/strohalm/cyclos/client/app/users/
images/UserImageRemoteService_TypeSerializer.java'
   [WARN] Line 50: Referencing deprecated class
'com.google.gwt.user.client.ui.ChangeListenerCollection'
   [WARN] Line 55: Referencing deprecated class
'com.google.gwt.user.client.ui.ClickListenerCollection'
   [WARN] Line 60: Referencing deprecated class
'com.google.gwt.user.client.ui.FocusListenerCollection'
   [WARN] Line 65: Referencing deprecated class
'com.google.gwt.user.client.ui.FormHandlerCollection'
   [WARN] Line 70: Referencing deprecated class
'com.google.gwt.user.client.ui.KeyboardListenerCollection'
   [WARN] Line 75: Referencing deprecated class
'com.google.gwt.user.client.ui.LoadListenerCollection'
   [WARN] Line 80: Referencing deprecated class
'com.google.gwt.user.client.ui.MouseListenerCollection'
   [WARN] Line 85: Referencing deprecated class
'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
   [WARN] Line 90: Referencing deprecated class
'com.google.gwt.user.client.ui.PopupListenerCollection'
   [WARN] Line 95: Referencing deprecated class
'com.google.gwt.user.client.ui.ScrollListenerCollection'
   [WARN] Line 100: Referencing deprecated class
'com.google.gwt.user.client.ui.TabListenerCollection'
   [WARN] Line 105: Referencing deprecated class
'com.google.gwt.user.client.ui.TableListenerCollection'
   [WARN] Line 110: Referencing deprecated class
'com.google.gwt.user.client.ui.TreeListenerCollection'
   See snapshot: /tmp/
UserImageRemoteService_TypeSerializer2951604978153994580.java

Is there a way to remove those classes from being handled in RPC?

--

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.




Re: MySQL Connection

2009-09-22 Thread Chamira Fernando
Hi,
Im Using GWT + AppEng is that the problem here?

Lets say I have an existing database which I want to use for my GWT
application what is the possible solution you reckon ?

On Tue, Sep 22, 2009 at 7:08 AM, Sripathi Krishnan 
sripathi.krish...@gmail.com wrote:

 If you are using Google App Engine (separate from GWT), you *cannot* use
 an external database. App Engine doesn't allow you to open socket
 connections, and that is exactly what the getConnection() method does.

 --Sri


 2009/9/21 Chamira Fernando chamira.inc...@gmail.com


 Hi All,

 I have the same problem when I connect to MySQL database,

 What I understand from the GWT doc, whatever server side scripts we
 have to in .server package and this will be on server side on host
 mode when we debug the application.

 here is the scenario

 I can get the data from the server side if there is no database
 connection, everything works fine, the moment I run database
 connection method

 I get errors! narrowing the problem i tried to load the class
 (Class.forName(DRIVER)) only.. it seems class is loaded (i get no
 errors) but the moment I run
 connection = DriverManager.getConnection(URL,USER,PASS); method will
 cause the problem .. if this is an sql error, should be caught ??

 mind you
 my mysql connector is in proper dirs (otherwise I can't load DRIVER ).

 Do I need to set $catalina.home for hosted mode? then can someone help
 to do it (im using eclipse plugin)

 Can someone come up with an answer, prefer small script to
 understand...

 here is the stack trace I got

 Sep 21, 2009 12:05:02 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1253534702085000] javax.servlet.ServletContext log: Exception
 while dispatching incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.lang.String
 com.pro.student.client.GreetingService.greetServer(java.lang.String)'
 threw an unexpected exception: java.lang.ExceptionInInitializerError
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
 (RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
 (RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
 (RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
 (RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1093)
at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
 (TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
 (StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
 (ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
 (SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
 (SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
 (ContextHandler.java:712)
at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
 (DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
 (HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
 (HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
 (HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
 (BoundedThreadPool.java:442)
 Caused by: java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.connect
 (NonRegisteringDriver.java:283)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.pro.student.server.GreetingServiceImpl.db
 (GreetingServiceImpl.java:52

Re: MySQL Connection

2009-09-21 Thread Chamira Fernando

Hi All,

I have the same problem when I connect to MySQL database,

What I understand from the GWT doc, whatever server side scripts we
have to in .server package and this will be on server side on host
mode when we debug the application.

here is the scenario

I can get the data from the server side if there is no database
connection, everything works fine, the moment I run database
connection method

I get errors! narrowing the problem i tried to load the class
(Class.forName(DRIVER)) only.. it seems class is loaded (i get no
errors) but the moment I run
connection = DriverManager.getConnection(URL,USER,PASS); method will
cause the problem .. if this is an sql error, should be caught ??

mind you
my mysql connector is in proper dirs (otherwise I can't load DRIVER ).

Do I need to set $catalina.home for hosted mode? then can someone help
to do it (im using eclipse plugin)

Can someone come up with an answer, prefer small script to
understand...

here is the stack trace I got

Sep 21, 2009 12:05:02 PM
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1253534702085000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.pro.student.client.GreetingService.greetServer(java.lang.String)'
threw an unexpected exception: java.lang.ExceptionInInitializerError
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Caused by: java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:283)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.pro.student.server.GreetingServiceImpl.db
(GreetingServiceImpl.java:52)
at com.pro.student.server.GreetingServiceImpl.greetServer
(GreetingServiceImpl.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
... 27 more
Caused by: java.security.AccessControlException: access denied

GWT official plugin for NetBeans IDE?

2009-07-11 Thread Juan Fernando Obando Saldarriaga
Is there any plan to launch a GWT official plugin for NetBeans IDE??

-- 
Juan Fernando Obando Saldarriaga
Estudiante de Ingeniería de Sistemas
Universidad del Valle
Cali, Colombia
jfero...@univalle.edu.co

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



  1   2   >