Re: GWT with App Engine (standard) and maven?

2018-03-19 Thread dflorey
I've been trying to create a gwt-lib that contains some static web 
resources (fonts, css, ...) to be used in depending projects.
Where should I place these files? They used to be in the "public" directory 
on the same level as client/server/shared in the old days when there way 
just a single project layout.
I'd like to find them in the resulting war when declaring the library as a 
dependency.
Is this still possible or do I have to replicate the static web resources 
in each project that requires the gwt-lib?

On Monday, March 19, 2018 at 4:03:50 PM UTC+1, dflorey wrote:
>
> Thanks, that was the missing info I was looking for (just checked the 
> maven-plugin help etc.)!!
> What is the recommended setup nowadays when using Eclipse?
> Is it recommended to use the Eclipse plugin(s) for GWT/GAE or is it better 
> to run everything from the command line?
>
> Thanks again, you are the man!
>
> On Mon, Mar 19, 2018 at 3:41 PM, Thomas Broyer <t.bro...@gmail.com> wrote:
>
>>
>>
>> On Monday, March 19, 2018 at 2:31:34 PM UTC+1, dflorey wrote:
>>>
>>> As I test I just created a blank test project from the archetype.
>>> I did not manage to run it either using "maven gwt:devmode".
>>> Is there some additional configuration required to tell the plugin where 
>>> to find the webapp?
>>> The server launches just fine, an ancient swing window pops up, but the 
>>> index.html is not there when going to 127.0.0.1:
>>>
>>> Any ideas?
>>>
>>
>> gwt:devmode will *not* package the app, you need to first do a "mvn 
>> package" to prepare the webapp; and do a "mvn package" again anytime you 
>> change any source file and/or dependency (you can configure Maven and/or 
>> your IDE to directly place classes from the module into the webapp's 
>> WEB-INF/classes; this saves you a few "mvn package").
>>
>> When using external servers (recommended), you can configure them to 
>> automatically reload the webapp when a class is changed, and to pick web 
>> resources right from src/main/webapp.
>> See 
>> https://github.com/tbroyer/gwt-maven-archetypes#start-the-development-mode
>> Webapp will be on http://localhost:8080 (by default), served by the 
>> jetty-maven-plugin (or tomcat7-maven-plugin), configured to pick up the 
>> shared classes right from *-shared/target/classes (where your IDE will put 
>> them).
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "GWT Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/-7o22adLgls/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: GWT with App Engine (standard) and maven?

2018-03-19 Thread dflorey
As I test I just created a blank test project from the archetype.
I did not manage to run it either using "maven gwt:devmode".
Is there some additional configuration required to tell the plugin where to 
find the webapp?
The server launches just fine, an ancient swing window pops up, but the 
index.html is not there when going to 127.0.0.1:

Any ideas?

On Monday, March 19, 2018 at 1:45:06 PM UTC+1, dflorey wrote:
>
> I've migrated one of our smaller apps.
> The module.gwt.xml is generated, nice!
>
> I'm now trying to run the gwt-app.
>
> In the old ant / Eclipse plugin days I could just click on Run and it 
> launched all the required stuff in the background (app engine, code server 
> etc.) so I'm a bit lost how to start the app.
> We have some static resources in the the war directory (css, html launcher 
> page), I don't know where to put these files so that they get picked up by 
> the webserver.
> I tried by putting them into the src/main/webapp directory, but this did 
> not make it into the target war.
>
> I tried both gwt:devmode and gwt:codeserver, both without luck.
>
> Am I missing something obvious?
>
> On Sunday, March 18, 2018 at 7:42:10 PM UTC+1, dflorey wrote:
>>
>> That helped a lot! Thanks!
>> I've removed the .m2/repository and started from scratch.
>> I made some progress in the meantime and learned a bit about how to setup 
>> a local repository on the way to find the right structure.
>>
>> I noticed that I cannot use the IsSerializable interface in the shared 
>> module, I had to replace the interface with the Serializable interface.
>> Looks like IsSerializable is not part of the gwt-servlet dependency?
>>
>> I started with our core library. As there is no archetype for a gwt-lib I 
>> tried to start from the webapp archetype.
>> Then I switched the packaging from "gwt-app" to "gwt-lib" in the client 
>> module and from "war" to "pom" in the server module.
>> I've also removed all the tomcat and jetty plugins and the folders with 
>> the config for the webservers as I just want to build a lib.
>>
>> I'm now getting an error in Eclipse in the pom telling me that "web.xml 
>> is missing and  is set to 
>>  true"
>>
>> It seems to build just fine though.
>>
>>
>>
>> On Monday, March 12, 2018 at 4:55:21 PM UTC+1, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On Monday, March 12, 2018 at 2:10:46 PM UTC+1, dflorey wrote:
>>>>
>>>> I tried to leverage your archetypes to get the gwt part (without 
>>>> appengine) running as a starting point.
>>>> What I did:
>>>> I created a maven project from the archetype (using the eclipse maven 
>>>> wizard).
>>>> I can see a nice multi-module project client/shared/server in my 
>>>> workspace.
>>>> As per your suggestion I just typed "mvn package -DskipTests" in the 
>>>> root/parent project.
>>>> But I get the same error message as before:
>>>>
>>>> [INFO] --- gwt-maven-plugin:1.0-rc-9:compile (default-compile) @ 
>>>> formeditor-client ---
>>>> [WARNING] Error: Could not find or load main class 
>>>> com.google.gwt.dev.Compiler
>>>> [INFO] 
>>>> 
>>>> [INFO] Reactor Summary:
>>>> [INFO]
>>>> [INFO] formeditor . SUCCESS [  
>>>> 0.000 s]
>>>> [INFO] formeditor-shared .. SUCCESS [  
>>>> 0.926 s]
>>>> [INFO] formeditor-client .. FAILURE [  
>>>> 0.614 s]
>>>> [INFO] formeditor-server .. SKIPPED
>>>> [INFO] 
>>>> 
>>>> [INFO] BUILD FAILURE
>>>> [INFO] 
>>>> 
>>>> [INFO] Total time: 2.002 s
>>>> [INFO] Finished at: 2018-03-12T14:09:09+01:00
>>>> [INFO] Final Memory: 35M/761M
>>>>
>>>> I guess I'm missing a basic step like setting a environment variable to 
>>>> point to my gwt installation or something?
>>>>
>>>
>>> Check that the JAR 
>>> (~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/gwt-dev-2.8.2.jar) is not 
>>> corrupt.
>>> Delete ~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/ and re-run a build 
>>> to download it again.
>>>
>>

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


Re: GWT with App Engine (standard) and maven?

2018-03-19 Thread dflorey
I've migrated one of our smaller apps.
The module.gwt.xml is generated, nice!

I'm now trying to run the gwt-app.

In the old ant / Eclipse plugin days I could just click on Run and it 
launched all the required stuff in the background (app engine, code server 
etc.) so I'm a bit lost how to start the app.
We have some static resources in the the war directory (css, html launcher 
page), I don't know where to put these files so that they get picked up by 
the webserver.
I tried by putting them into the src/main/webapp directory, but this did 
not make it into the target war.

I tried both gwt:devmode and gwt:codeserver, both without luck.

Am I missing something obvious?

On Sunday, March 18, 2018 at 7:42:10 PM UTC+1, dflorey wrote:
>
> That helped a lot! Thanks!
> I've removed the .m2/repository and started from scratch.
> I made some progress in the meantime and learned a bit about how to setup 
> a local repository on the way to find the right structure.
>
> I noticed that I cannot use the IsSerializable interface in the shared 
> module, I had to replace the interface with the Serializable interface.
> Looks like IsSerializable is not part of the gwt-servlet dependency?
>
> I started with our core library. As there is no archetype for a gwt-lib I 
> tried to start from the webapp archetype.
> Then I switched the packaging from "gwt-app" to "gwt-lib" in the client 
> module and from "war" to "pom" in the server module.
> I've also removed all the tomcat and jetty plugins and the folders with 
> the config for the webservers as I just want to build a lib.
>
> I'm now getting an error in Eclipse in the pom telling me that "web.xml is 
> missing and  is set to 
>  true"
>
> It seems to build just fine though.
>
>
>
> On Monday, March 12, 2018 at 4:55:21 PM UTC+1, Thomas Broyer wrote:
>>
>>
>>
>> On Monday, March 12, 2018 at 2:10:46 PM UTC+1, dflorey wrote:
>>>
>>> I tried to leverage your archetypes to get the gwt part (without 
>>> appengine) running as a starting point.
>>> What I did:
>>> I created a maven project from the archetype (using the eclipse maven 
>>> wizard).
>>> I can see a nice multi-module project client/shared/server in my 
>>> workspace.
>>> As per your suggestion I just typed "mvn package -DskipTests" in the 
>>> root/parent project.
>>> But I get the same error message as before:
>>>
>>> [INFO] --- gwt-maven-plugin:1.0-rc-9:compile (default-compile) @ 
>>> formeditor-client ---
>>> [WARNING] Error: Could not find or load main class 
>>> com.google.gwt.dev.Compiler
>>> [INFO] 
>>> 
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] formeditor . SUCCESS [  
>>> 0.000 s]
>>> [INFO] formeditor-shared .. SUCCESS [  
>>> 0.926 s]
>>> [INFO] formeditor-client .. FAILURE [  
>>> 0.614 s]
>>> [INFO] formeditor-server .. SKIPPED
>>> [INFO] 
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO] 
>>> 
>>> [INFO] Total time: 2.002 s
>>> [INFO] Finished at: 2018-03-12T14:09:09+01:00
>>> [INFO] Final Memory: 35M/761M
>>>
>>> I guess I'm missing a basic step like setting a environment variable to 
>>> point to my gwt installation or something?
>>>
>>
>> Check that the JAR 
>> (~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/gwt-dev-2.8.2.jar) is not 
>> corrupt.
>> Delete ~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/ and re-run a build 
>> to download it again.
>>
>

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


Re: GWT with App Engine (standard) and maven?

2018-03-18 Thread dflorey
That helped a lot! Thanks!
I've removed the .m2/repository and started from scratch.
I made some progress in the meantime and learned a bit about how to setup a 
local repository on the way to find the right structure.

I noticed that I cannot use the IsSerializable interface in the shared 
module, I had to replace the interface with the Serializable interface.
Looks like IsSerializable is not part of the gwt-servlet dependency?

I started with our core library. As there is no archetype for a gwt-lib I 
tried to start from the webapp archetype.
Then I switched the packaging from "gwt-app" to "gwt-lib" in the client 
module and from "war" to "pom" in the server module.
I've also removed all the tomcat and jetty plugins and the folders with the 
config for the webservers as I just want to build a lib.

I'm now getting an error in Eclipse in the pom telling me that "web.xml is 
missing and  is set to 
 true"

It seems to build just fine though.



On Monday, March 12, 2018 at 4:55:21 PM UTC+1, Thomas Broyer wrote:
>
>
>
> On Monday, March 12, 2018 at 2:10:46 PM UTC+1, dflorey wrote:
>>
>> I tried to leverage your archetypes to get the gwt part (without 
>> appengine) running as a starting point.
>> What I did:
>> I created a maven project from the archetype (using the eclipse maven 
>> wizard).
>> I can see a nice multi-module project client/shared/server in my 
>> workspace.
>> As per your suggestion I just typed "mvn package -DskipTests" in the 
>> root/parent project.
>> But I get the same error message as before:
>>
>> [INFO] --- gwt-maven-plugin:1.0-rc-9:compile (default-compile) @ 
>> formeditor-client ---
>> [WARNING] Error: Could not find or load main class 
>> com.google.gwt.dev.Compiler
>> [INFO] 
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] formeditor . SUCCESS [  
>> 0.000 s]
>> [INFO] formeditor-shared .. SUCCESS [  
>> 0.926 s]
>> [INFO] formeditor-client .. FAILURE [  
>> 0.614 s]
>> [INFO] formeditor-server .. SKIPPED
>> [INFO] 
>> 
>> [INFO] BUILD FAILURE
>> [INFO] 
>> 
>> [INFO] Total time: 2.002 s
>> [INFO] Finished at: 2018-03-12T14:09:09+01:00
>> [INFO] Final Memory: 35M/761M
>>
>> I guess I'm missing a basic step like setting a environment variable to 
>> point to my gwt installation or something?
>>
>
> Check that the JAR 
> (~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/gwt-dev-2.8.2.jar) is not 
> corrupt.
> Delete ~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/ and re-run a build 
> to download it again.
>

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


Re: GWT with App Engine (standard) and maven?

2018-03-12 Thread dflorey
I tried to leverage your archetypes to get the gwt part (without appengine) 
running as a starting point.
What I did:
I created a maven project from the archetype (using the eclipse maven 
wizard).
I can see a nice multi-module project client/shared/server in my workspace.
As per your suggestion I just typed "mvn package -DskipTests" in the 
root/parent project.
But I get the same error message as before:

[INFO] --- gwt-maven-plugin:1.0-rc-9:compile (default-compile) @ 
formeditor-client ---
[WARNING] Error: Could not find or load main class 
com.google.gwt.dev.Compiler
[INFO] 

[INFO] Reactor Summary:
[INFO]
[INFO] formeditor . SUCCESS [  
0.000 s]
[INFO] formeditor-shared .. SUCCESS [  
0.926 s]
[INFO] formeditor-client .. FAILURE [  
0.614 s]
[INFO] formeditor-server .. SKIPPED
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 2.002 s
[INFO] Finished at: 2018-03-12T14:09:09+01:00
[INFO] Final Memory: 35M/761M

I guess I'm missing a basic step like setting a environment variable to 
point to my gwt installation or something?

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


Re: GWT with App Engine (standard) and maven?

2018-03-12 Thread dflorey
This is the pom.xml that I've got so far:


http://maven.apache.org/POM/4.0.0; xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>


 4.0.0


 
 xxx-appengine
 com.floreysoft.xxx
 0.0.1-SNAPSHOT
 
 gwt-app
 0.0.1-SNAPSHOT


 com.floreysoft.xxx
 xxx-frontend


 
 
 
 UTF-8
 UTF-8
 1.8
 1.8
 true
 true
 


 
 3.5
 
 
 
 
 com.google.gwt
 gwt
 2.8.2
 pom
 import
 
 
 
 
 
 
 com.google.gwt
 gwt-user
 
 
 com.google.gwt
 gwt-dev
 
 
 
 
 com.google.appengine
 appengine-api-1.0-sdk
 1.9.63
 
 
 javax.servlet
 javax.servlet-api
 3.1.0
 jar
 provided
 


 
 
 com.google.appengine
 appengine-testing
 1.9.63
 test
 
 
 com.google.appengine
 appengine-api-stubs
 1.9.63
 test
 


 
 com.google.appengine
 appengine-tools-sdk
 1.9.63
 test
 


 
 com.google.truth
 truth
 0.33
 test
 


 
 junit
 junit
 4.12
 test
 
 
 org.mockito
 mockito-all
 1.10.19
 test
 
 


 
 
 
${project.build.directory}/${project.build.finalName}/WEB-INF/classes

 
 
 net.ltgt.gwt.maven
 gwt-maven-plugin
 1.0-rc-9
 true
 
 com.floreysoft.xxx.xxx
 
 
 
 com.google.cloud.tools
 appengine-maven-plugin
 1.3.1
 
 


 
 org.codehaus.mojo
 versions-maven-plugin
 2.3
 
 
 compile
 
 display-dependency-updates
 display-plugin-updates
 
 
 
 
 
 javax.servlet:javax.servlet-api
 com.google.guava:guava 
 
 
 


 
 maven-war-plugin
 3.1.0
 


 
 maven-compiler-plugin
 3.6.1
 


 
 maven-clean-plugin
 3.0.0
 


 
 maven-install-plugin
 2.5.2
 


 
 maven-surefire-plugin
 2.20
 


 
 maven-site-plugin
 3.6
 


 
 maven-resources-plugin
 3.0.2
 


 
 maven-deploy-plugin
 3.1
 


 
 maven-enforcer-plugin
 1.4.1
 
 
 enforce-maven
 
 enforce
 
 
 
 
 3.5
 
 
 Best Practice is to always define plugin versions!
 true
 true
 
clean,deploy,verify,appengine:run,appengine:deploy,appengine:update,appengine:devappaserver,site

 
 
 
 
 
 
 
 




-- 
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 with App Engine (standard) and maven?

2018-03-12 Thread dflorey
Hi folks,
after all those years I've decided to start migrating our GWT / App Engine 
(standard) projects from Ant to Maven.
The main app consists of several GWT libraries and multiple modules.
I'd also like to split the monolithic app into several "microservices" 
running on App Engine (frontend and backend).
Problem is that I've not used maven much in the past so there is a lot of 
new stuff to learn.
I've Googled a bit in the last days to get the big picture, but I did not 
find any tutorials how to put it all together.
So I though it would be a good idea to try to collect as much info from the 
experts as possible and write down a tutorial for others facing the same 
situation.

What I did so far:
I've created a maven parent project as I thought it may be a good idea to 
have a child project for each app engine module / service.
I've added the first maven module (frontend) and created an empty project 
from the appengine standard archetype.

I tried to add the gwt maven plugin to this project, but I had no clue how 
to do that.
I copy/pasted the definitions from here into the pom:
https://tbroyer.github.io/gwt-maven-plugin/usage.html

When running

maven gwt:compile

I just get this error:
[WARNING] Error: Could not find or load main class 
com.google.gwt.dev.Compiler

Any ideas?

Thanks a lot in advance,

Daniel

-- 
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: 2.8.0 RC1 is here!

2016-08-07 Thread dflorey
I just installed 2.8 rc1 and try to run my project. I'm using Eclipse and 
try to start the SuperDevMode without any changes to my previous 2.7 config.
I'm getting:

2016-08-07 20:47:28.033:WARN:oejs.ServletHandler:qtp1910695180-49: Error 
for /recompile-requester/ultradoc
java.lang.NoSuchMethodError: 
javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:322)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at 
org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

I did not investigate yet, just wanted to post this stacktrace in case it's 
helpful to improve the user experience for users coming from 2.7.

Thanks,
Daniel

Am Freitag, 29. Juli 2016 07:40:30 UTC+2 schrieb Daniel Kurka:
>
> Hi all,
>
> I just build the GWT 2.8.0 RC1 and pushed it to maven central. The 
> complete SDK is also available from here .
>
> Please start testing and let us know if you run into any trouble. You can 
> either reply to this thread on gwt-contrib 
> 
>  or file bugs .
>
> We are planing to release this as GWT 2.8.0 if we do not here about any 
> serious issues within the next two weeks. The release notes for RC1 
> 
>  
> will be made available shortly after this notice, in the mean time you can 
> take a look at the github repository 
> 
> .
>
> Daniel,
> on behalf of the GWT team
>

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


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

2016-07-29 Thread dflorey
Very nice indeed!
Now I'm just waiting for App Engine to support Java 8, then I can start 
migrating our codebase, hurray!

Thanks!

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

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


Re: [gwt-contrib] Re: Compile error after moving to 2.5

2013-01-04 Thread dflorey
No, the only workaround for me is to stick with 2.4 :-(

On Monday, December 17, 2012 10:25:25 PM UTC+1, Brent Ryan wrote:

 I'm seeing this same compile error when going from 2.4 to 2.5.  Any 
 workaround for this yet?



 On Wednesday, November 7, 2012 12:24:29 PM UTC-5, dflorey wrote:

 Sure... I'm just not sure if it helps. My app is fairly complex and 
 includes a number of modules:

 ?xml version=1.0 encoding=UTF-8?
 module rename-to='ucm'
 inherits name='com.google.gwt.user.User' /
 inherits name=com.google.gwt.i18n.I18N /
 inherits name='com.floreysoft.appcore.AppCore' /
 inherits name='com.floreysoft.mail.MailBuilder' /
 inherits name='com.floreysoft.contact.ContactEditor' /
 inherits name='com.allen_sauer.gwt.dnd.gwt-dnd' /
 inherits name=com.google.code.gwt.database.Html5Database /
 inherits name='com.google.gwt.maps.GoogleMaps' / 
 inherits name='com.google.gwt.visualization.Visualization'/
 inherits name='com.floreysoft.widgets.FloreysoftWidgets' /
 inherits name='net.auroris.ColorPicker.client' /
 inherits name='com.google.gwt.appengine.channel.Channel'/
 inherits name='com.floreysoft.orgchart.OrgChart' /
 inherits name=com.google.gwt.ajaxloader.AjaxLoader/
  entry-point class='com.floreysoft.ucm.client.UCMLoader' /

 extend-property name=locale values=de /
 extend-property name=locale values=en /

 set-property name=css3d.support value=no/
 set-property name=user.agent value=gecko1_8,safari,ie8,ie9/
 set-property name=locale value=en/ 
   
 stylesheet src=
 http://fonts.googleapis.com/css?family=Ubuntu:400,500,700/
 stylesheet src='UniversalContactManager.css' /

 script src=js/codemirror.js /

 source path='client' /
 source path=shared /
 /module

 On Tuesday, November 6, 2012 5:10:05 PM UTC+1, John A. Tamplin wrote:

 On Tue, Nov 6, 2012 at 10:26 AM, dflorey daniel...@gmail.com wrote:

 Some more info:
 I've switched back to 2.4 to verify that everything compiles smoothly.
 After going back to 2.5 I get lots of errors. 
 To me it looks as if some modules are missing, but as it works fine 
 with 2.4 I guess it must be something different.


 I haven't seen this problem -- can you share your .gwt.xml file?

 -- 
 John A. Tamplin



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

Re: [gwt-contrib] Re: Compile error after moving to 2.5

2012-11-07 Thread dflorey
Sure... I'm just not sure if it helps. My app is fairly complex and 
includes a number of modules:

?xml version=1.0 encoding=UTF-8?
module rename-to='ucm'
inherits name='com.google.gwt.user.User' /
inherits name=com.google.gwt.i18n.I18N /
inherits name='com.floreysoft.appcore.AppCore' /
inherits name='com.floreysoft.mail.MailBuilder' /
inherits name='com.floreysoft.contact.ContactEditor' /
inherits name='com.allen_sauer.gwt.dnd.gwt-dnd' /
inherits name=com.google.code.gwt.database.Html5Database /
inherits name='com.google.gwt.maps.GoogleMaps' / 
inherits name='com.google.gwt.visualization.Visualization'/
inherits name='com.floreysoft.widgets.FloreysoftWidgets' /
inherits name='net.auroris.ColorPicker.client' /
inherits name='com.google.gwt.appengine.channel.Channel'/
inherits name='com.floreysoft.orgchart.OrgChart' /
inherits name=com.google.gwt.ajaxloader.AjaxLoader/
 entry-point class='com.floreysoft.ucm.client.UCMLoader' /

extend-property name=locale values=de /
extend-property name=locale values=en /

set-property name=css3d.support value=no/
set-property name=user.agent value=gecko1_8,safari,ie8,ie9/
set-property name=locale value=en/ 
  
stylesheet 
src=http://fonts.googleapis.com/css?family=Ubuntu:400,500,700/
stylesheet src='UniversalContactManager.css' /

script src=js/codemirror.js /

source path='client' /
source path=shared /
/module

On Tuesday, November 6, 2012 5:10:05 PM UTC+1, John A. Tamplin wrote:

 On Tue, Nov 6, 2012 at 10:26 AM, dflorey daniel...@gmail.comjavascript:
  wrote:

 Some more info:
 I've switched back to 2.4 to verify that everything compiles smoothly.
 After going back to 2.5 I get lots of errors. 
 To me it looks as if some modules are missing, but as it works fine with 
 2.4 I guess it must be something different.


 I haven't seen this problem -- can you share your .gwt.xml file?

 -- 
 John A. Tamplin


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

Re: Google IO 2012 : no GWT session ?

2012-05-20 Thread dflorey
Yeah, the first GWT session just arrived:
https://developers.google.com/events/io/sessions/gooio2012/1414/

;-)

On Thursday, May 17, 2012 12:23:59 PM UTC+2, Thomas Broyer wrote:



 On Thursday, May 17, 2012 8:00:00 AM UTC+2, Celinio Fernandes wrote:

 Hello,
 I just noticed that the schedule for Google IO 2012 is now available : 
 https://developers.google.com/events/io/sessions
 Not sure whether it is definitive or not.
 I see that this year there is no session dedicated to GWT. How come ? 
 But there are 2 sessions dedicated to Dart. Is this a sign ?


 I've been told (by the GWT manager) that they're planning a session about 
 GWT. No worries, GWT is healthy and something big is coming (I'm afraid I 
 can't share details, sorry). 


-- 
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/-/eJlEZ2PdNNcJ.
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-contrib] Code splitter ready for testing?

2012-02-13 Thread dflorey
Hi,
I had severe problems with the old code splitter (see 
https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit-contributors/florey/google-web-toolkit-contributors/vRhQtI8xWU0/Pihj-cYSDZgJ
 )
All code splitting is right now disabled due to the issue.
Is the new code splitter already ready for testing? If yes, is there any 
config needed or docs about how to get it up and running?

Daniel

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

[gwt-contrib] SuggestBox styling?

2012-01-30 Thread dflorey
There is no easy way to change the stylename of the suggest box popup and 
as such there is no (easy) way to use multiple suggest boxes with 
differently styled popups.
It would be nice to have a setPopupStyle() method or some implicit logic 
changing the popup style according to setStylePrimaryName()...

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

Re: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-11-10 Thread dflorey
Unfortunately I was wrong... the bug is still there. After merging the 
modules everything works fine again.
Will test with the next release.

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

Re: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-10-31 Thread dflorey
I've retested with gwt 2.4 and the issue seems to be fixed.
Thanks!

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

Re: Use html5 webdb in GWT (without Gears)

2011-10-05 Thread dflorey
It works in chrome and safari. In chrome you'll have to create an 
installable app to get more than 5 mb of local storage.
Hope this helps,
Daniel

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



Aw: Re: [gwt-contrib] How to build large apps with GWT/GAE?

2011-08-23 Thread dflorey
For security reasons the app should be served from a single server.
I think the best solution would be to use the new FileService in app engine 
to host the compiled fragments.
It may be doable already by mapping a service to the .js url and serve the 
content from the blobstore, but it would be awesome if this could be handled 
automagically by the Google plugin.

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

Aw: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-08-17 Thread dflorey
Hi,
unfortunately I did not manage to reproduce the issue in a clean project.
But I'd like to show the issue to someone with my existing projects.
I've been able to find a workaround by adding the module classes to a fake 
rpc service.

I could setup a TeamViewer session to show the issue on my machine.

Daniel

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

[gwt-contrib] How to build large apps with GWT/GAE?

2011-08-16 Thread dflorey
Are there any plans to provide tools to support large apps with GWT / GAE?
If an app supports multiple locales, browsers, gears etc. you can easily end 
up with many dozens of permutations. 
As the total application size is currently limited to 150 MB on the GAE this 
causes problems for larger applications.
I've been thinking of a solution where different permutations or modules 
would be served from the blobstore instead of static file space but I have 
no idea how to implement such a GAE linker or which classes have to be 
adjusted.
In an ideal world the Google plugin would take care of uploading the 
fragments to the blobstore when deploying the app :-)
Any ideas?

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

Aw: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-08-11 Thread dflorey
I'll try to create 2 demo projects once I find the time. 

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

[gwt-contrib] Aw: Regression: instanceof compiler issue

2011-08-09 Thread dflorey
BTW: It works find in dev mode, just fails when compiled

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

[gwt-contrib] Re: [RFC] GWT Widgets that ROCK!

2011-03-23 Thread dflorey
I am wondering if you are considering to use html5 widgets if available and 
provide a fallback gwt implementation for browsers that do not (yet) support 
widgets like 
http://slides.html5rocks.com/#semantic-tags-2

I think in general GWT has the right tools for using native browser stuff 
whenever available and providing some js-pendants if they are not supported.

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

[gwt-contrib] Re: [RFC] GWT Widgets that ROCK!

2011-02-26 Thread dflorey
It would be great if localized messages would be moved to ClientBundle so 
that we can include localized messages as part of the widget styling. This 
is e.g. very useful for tooltips etc.

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

Re: [gwt-contrib] Future of CellTable

2011-02-18 Thread dflorey
Thanks for the info!
I guess I'll wait until 2.3 and will start to port the TreeTable + filter 
stuff.
Is there a way to contribute patches since the incubator is deprecated?

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

Re: GWT 2.2 CellTable dragging column widths with mouse ...

2011-02-17 Thread dflorey
Did you check out the tables in the gwt incubator? They support resizing of 
columns, fixed headers etc.

-- 
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-contrib] Future of CellTable

2011-02-17 Thread dflorey
Hi, 
first of all congrats on the new 2.2 release!
I was wondering if it is planned to add the incubator features (column 
resizing by dd, fixed headers/footer etc.) to the CellTable widget over the 
next releases.
I'm still waiting for a good time to get rid of the incubator and port our 
apps...

Daniel

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

Need help: [ERROR] Invalid version number 2.0 passed to external.gwtOnLoad(), expected 2.1

2010-11-28 Thread dflorey
Hi,
I've upgraded one of my apps to 2.1. When running in dev mode I get
this error:

Connection received from 127.0.0.1:49430
   [ERROR] Invalid version number 2.0 passed to
external.gwtOnLoad(), expected 2.1; your hosted mode bootstrap file
may be out of date; if you are using -noserver try recompiling and
redeploying your app


Any ideas?

Daniel

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



[gwt-contrib] GWT 2.1 / gwt-incubator tables

2010-11-17 Thread dflorey
Hi,
as stated in this thread

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

GWT 2.1 will replace the incubator table framework.

I may be blind but after looking at the sources I cannot find
- Fixed table header (ScrollTable)
- Resizable columns
- Built in sorting/filtering
- TreeTable

Unfortunately the gwt-incubator will not work with 2.1 mainly because
of the event stuff and the new logging.

How should I proceed to port our applications to 2.1?
- Start porting the gwt-incubator to 2.1 (not much fun + a lot of
effort)
- Wait until the incubator features will make it into gwt and try to
port back the bugfixes from 2.1 to 2.0?

Can someone from the team indicate if/when the missing tables will
make it into gwt?

Thanks,

Daniel

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


[gwt-contrib] Inheritance problem with property-provider

2010-09-15 Thread dflorey
Hi,
on my way to implement my html5 widgets I started to implement a new
propery-provider.
Strange: When defining it in my module.xml and inherit this module
from another module, I get some strange error like JavaScript method
not found
When copying the property-provider dev to the module.xml it works.
Is it required to define a blank module.xml just containing the
propery-provider definition to make inheritance work (as it is
obviously working with the predefined properties...)

Daniel

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


[gwt-contrib] Re: Inheritance problem with property-provider

2010-09-15 Thread dflorey
Strange stuff, now it is working - without changing anything. No idea
who's the culprit.

Sorry for the noise.

On Sep 15, 2:37 pm, dflorey daniel.flo...@gmail.com wrote:
 Hi,
 on my way to implement my html5 widgets I started to implement a new
 propery-provider.
 Strange: When defining it in my module.xml and inherit this module
 from another module, I get some strange error like JavaScript method
 not found
 When copying the property-provider dev to the module.xml it works.
 Is it required to define a blank module.xml just containing the
 propery-provider definition to make inheritance work (as it is
 obviously working with the predefined properties...)

 Daniel

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


[gwt-contrib] Re: Composite is evil?

2010-09-14 Thread dflorey
I remember there once has been a LazyPanel in the incubator especially
for use within TabPanels.
Can you by chance provide your SimpleComposite src?

Thanks,
Daniel

On Sep 12, 5:04 pm, Ed post2edb...@gmail.com wrote:
  I've never used lazy-loading within my
  composites and never felt the need for it;

 Lucky bastard ;)

 Of course you should always create your widgets as late/lazily as
 possible, but still.. it's not always that clear in complex app's with
 many nested widgets.
 As such, by embedding this behavior by default, you overcome this
 always, also for the times you forget it, or you don't even know about
 it.
 And it's a small change in the current Composite and a better
 programming style (= not creating it all in the constructor).
 I think you win a lot with little change.

 I use it now for a few years in production and have good experience
 with it.
 And there is one important point I forgot in the above list that I
 like to add:
 3) The Composite class is hard to reuse in subclasses. It's inherent
 to point 1).
 That's what gave my headaches when I start to use it years ago.. ... :
 (
 Example:
 Suppose you have a Composite that shows a textbox.
 No suppose you want to subclass this to add a checkbox in front of the
 textbox.
 This is hard (because it's all created in the constructor), possible
 but ugly.

 Of course it's possible by creating the correct protected methods that
 create the text box that you can then override. But don't forget that
 this method is called from within the constructor such that it becomes
 ugly.
 It's not for nothing that tools like PMD and Checkstyle complain when
 you call a not-private method (or not final protected/public method)
 within your constructor.

 On Sep 12, 4:00 pm, Thomas Broyer t.bro...@gmail.com wrote:







  On Sep 12, 1:57 pm, Ed post2edb...@gmail.com wrote:

   I long time ago I opened an issue about the Composite 
   widget:http://code.google.com/p/google-web-toolkit/issues/detail?id=2508

   I think the Composite widget should be improved because:
   1) Creating all widgets in the constructor is an anti-pattern (evil)
   like discussed in for example the book effective programming.
   2) It's not lazy loading any widget.

   To not get any problems using the Composite widget you should use call
   the initWidget() method in the constructor, meaning that you have to
   create your widget in the constructor
   Something like this:
   public MyWidget() {

     initWidget(createMyWidget());

   }

   In case the method createMyWidget() call several other Composite
   widgets, this can be slow operation without that you realize it as
   you don't really know that the called composite widgets do. I think
   you only want to create all these widgets when it's needed (the lazy
   loading idea).

   I remember that GWT Designer of Instantiations is also creating all
   the widgets directly in the constructor (at least it was about a year
   ago)..
   I often see this at clients that use gwt designer, that all widgets
   are created too early instead of lazily which has an performance
   impact.

   More advanced gwt developers probably recognize this and have a simple
   answer: use the onAttach/onCreated method to create all your widgets
   and simple call initWidget in the constructor with only the outer
   panel, which can be a simple div...
   I started like this as well, and then end up creating my own
   SimpleComposite that extends Composite and only asks the subclasses to
   create the widget when it's needed, as such getting real lazy creation
   of the widgets, which I think should be an important goal.

   However the gwt beginners, will not start like that and will create
   their widgets to early and all in the constructor.

   Why not make this kind of lazy-behavior more standard in the current
   Composite implementation such that all gwt developers are using it
   without even knowing it and no need to think extra about it?

   I like to hear your feedback about this and maybe the gwt dev team can
   have a look at it (maybe after 2.1 is out).

  Well, if you instantiate a composite to only attach it later, then
  maybe you should just instantiate the composite a a later time?

  I mean, I understand what you're saying, but I think in many cases
  it's actually a non-issue. I've never used lazy-loading within my
  composites and never felt the need for it; I instead lazy-load the
  composite itself (using Gin Providers or other factory pattern).

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


[gwt-contrib] Re: How to detect HTML5 support?

2010-09-14 Thread dflorey
Thanks for your reply. Yes, I know that html5 support is a mess.
I guess I'll split up my stuff into separate projects supporting a
single feature/property like webDB (requires native webDB / gears
detection property), css3 transforms etc.
Thanks for the link, very impressive!

Daniel

On Sep 14, 11:24 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Sep 13, 6:04 pm, dflorey daniel.flo...@gmail.com wrote:

  I'm working on a HTML5 widget library that will emulate html5 when it
  is not supported by the browser (html5 form elements etc.)
  I don't know what is the best approach to take advantage of deferred
  binding to use the native/emulated classes.
  Is it better to extend the user agent to be able to detect Chrome7/
  Safari etc. (CSS3 transforms) or is it better to introduce a new
  property?

 If you want to do it right, you'll actually have to add a bunch of
 properties, because there's nothing like HTML5 support. Even if you
 only talk about form additions, some browsers support a few new input
 type values but not all, some say they support a given type but don't
 provide any specific UI and/or validation (e.g. input type=date in
 WebKit), some browsers support validation (Chrome 7 is said to support
 validation on html5test.com, but it won't abort submission if a
 constrained input field –such as type=date or type=email– contains an
 invalid value). And this is only about new input types and form
 validation!

 BTW, have you looked athttps://code.google.com/p/gwt-ns/?

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


[gwt-contrib] Wrong error message...

2010-09-13 Thread dflorey
...in ResizeComposite:25

java.lang.AssertionError: LayoutComposite requires that its wrapped
widget implement HasLayout

should be

java.lang.AssertionError: LayoutComposite requires that its wrapped
widget implements RequiresResize

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


[gwt-contrib] How to detect HTML5 support?

2010-09-13 Thread dflorey
I'm working on a HTML5 widget library that will emulate html5 when it
is not supported by the browser (html5 form elements etc.)
I don't know what is the best approach to take advantage of deferred
binding to use the native/emulated classes.
Is it better to extend the user agent to be able to detect Chrome7/
Safari etc. (CSS3 transforms) or is it better to introduce a new
property?

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


[gwt-contrib] Re: RFC: i18n Messages Additions

2010-08-18 Thread dflorey
This sound good!
Are there any plans to include Messages into the ClientBundle without
the GwtCreateResource bridge?

On Aug 17, 11:15 pm, John Tamplin j...@google.com wrote:
 Here are several additions I am making to the GWT Messages functionality.
  Before finalizing it for review, I would like to get some feedback.

 *Extended Plurals
 *
 Some applications want to have messages like JohnT, JeffH, and 3 others
 have recommended this movie, instead of trying to list all users.

 0 - No one has recommended this movie
 1 - {1} has recommended this movie
 2 - {1} and {2} have recommended this movie
 3 - {1}, {2}, and one other have recommended this movie
 4+ - {1}, {2}, and {0,number} others have recommended this movie

 (with the trick being that the total count needs to be altered by the number
 of explicit entries, and that adjusted number is used to drive plural rule
 selection, which gets more complicated for languages like Arabic with 6
 plural forms).

 There have already been requests to allow customizing the form to use even
 if the language doesn't require it. For example, You have no messages when
 the count is 0 even though English doesn't grammatically require it. I
 propose the following to accomplish both goals:

 @DefaultMessage({1}, {2}, and {0,number} others have recommended this
 movie)
 @PluralText({
   =0, No one has recommended this movie,
   =1, {1} has recommended this movie,
   =2, {1} and {2} have recommended this movie,
   one, {1}, {2}, and one other have recommended this movie})
 String recommenders(@Optional @Example(3) @PluralCount @Offset(2) int
 count, String name1, String name2);

 The new pieces are @Offset(2) which means to subtract 2 from the value
 before applying normal plural rules, and plural forms =n, which means if
 the original value matches the specified value that form is used instead of
 any normal plural lookups. If the value doesn't match any =n plural forms,
 then the offset (if any) is subtracted and the normal plural rules for the
 locale apply.

 I am not sure if there is a use case for it, but I was thinking of
 supporting forms like =1..3 as well.

 *Static Placeholders
 *
 Translators shouldn't see things like HTML markup, because it isn't clear to
 them whether they should translate portions inside the placeholder or can be
 confused by it. The recommendation is to use placeholders to hide those
 parts from the translator, and put them back into the translated string.

 UiBinder already takes care of a similar situation, but if you using
 Messages directly you have to do it yourself, using something like the
 following:

 private static final String BEGIN_BOLD = b;
 private static final String END_BOLD = /b;

 @DefaultMessage(This is {0}important{1})
 String important(@Example(BEGIN_BOLD) String beginBold, @Example(END_BOLD)
 String endBold);
 ...
 msg.important(BEGIN_BOLD, END_BOLD);

 It works, but is a lot of boilerplate that is easy to get wrong. I propose
 the following:

 @DefaultMessage(This is {beginBold,b}important{endBold,/b})
 String important();
 ...
 msg.important();

 For escaping, I propose using single quote like elsewhere in Messages, such
 as This is {beginLink,a href=urlparam='{0}'}..{endLink,/a} -- the
 single quotes protect the braces from ending the parameter, and any single
 quotes in the static content would be doubled.  Note that we still have work
 to do getting these out of the generated and translated property files, just
 like we currently expect the full {0,number,currency} in the translated
 files.  That will probably be a task for next quarter, when I intend to
 improve support for integration with external translation tools.

 *List Rendering
 *
 Right now, if you want to render a list, you have to do all the work
 yourself and have some way of getting locale-specific separators. CLDR
 defines the data needed to do this, so I propose adding:

 @DefaultMessage(The values are {0,list,number})
 @PluralText({=0, There are no values,
   one, The value is {0,list,number}})
 String values(@PluralCount ListInteger list);

   or

 String values(@PluralCount int... list);

   or

 String values(@PluralCount int[] list);

 ...

 Example results for English (using the varargs method):

 msg.values() = There are no values
 msg.values(1001) = The value is 1,001
 msg.values(1,2) = The values are 1 and 2
 msg.values(1,2,3) = The values are 1, 2, and 3

 Basically, if the format is list, then the remainder of the argument tag is
 a format applied to each element of the list.

 *Format Arguments, for Selectable Currency Codes / Timezones
 *
 If you format a currency value with {0,number,currency}, you get the locales
 default currency. It would be nice to be able to specify the currency in the
 message (if for example it is always in USD regardless of the locale) or in
 a dynamic parameter. I propose adding a general way to add parameters to
 formats and subformats:

 *Examples:*

    - {0,number:curcode=USD,currency}
       - always 

[gwt-contrib] How to serialize client side objects to string?

2010-04-26 Thread dflorey
Is there a way to easily serialize GTW-serializable objects to string
on the client side?
I'd like to be able to story arbitrary objects to the html5/gears
local db as string.
Any ideas? Can I hook into the GWT rpc-serialization mechanism?

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


[gwt-contrib] TabLayoutPanel suggestion: Add tab-position property

2010-03-24 Thread dflorey
Hi,
I just needed a TabLayoutPanel with Tabs on the bottom instead of tabs
on the top. I copied the TabLayoutPanal and changed the orientation.
I'd like to suggest to add this feature as an option in another cstr.
It requires just 3 lines of code ;-)

Daniel

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this 
email with the words REMOVE ME as the subject.


[gwt-contrib] ...and: Add setEnabled() to menu items

2010-03-24 Thread dflorey
I've been missing that one as well.
I can provide patches if desired.

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this 
email with the words REMOVE ME as the subject.


[gwt-contrib] Re: ClientBundle produce memory leaks in IE6

2010-03-22 Thread dflorey
Is it this one again?

http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/74857a726d25bbac

On 19 Mrz., 21:47, Joel Webber j...@google.com wrote:
 I am able to reproduce this leak as well, and can confirm that it only
 happens on IE6 (not 7+). If I use a standard image url rather than a
 ClientBundle, the leak goes away. Interestingly, though, it doesn't appear
 to be a standard circular-ref leak, because Microsoft's own leak detector
 doesn't flag it, and the memory is recouped when you navigate away from the
 page (IE7+ will try to clean up some kinds of leaks when you leave the page,
 but IE6 makes no such attempt).

 This implicates the ClippedImageImplIE6 code, which has been a nasty thorn
 in our side for some time. I've tried without success to replicate the leak
 in a simple Javascript snippet, but that likely means I just haven't stepped
 on whatever particular set of problems is causing it.

 @Adrien: Would you mind entering an issue for this so we can track it? I'm
 likely to use this as another opportunity to push for removing that
 god-awful code (see issues 1765, 3236, 3573, and 3588).

 Thanks,
 joel.



 On Fri, Mar 19, 2010 at 10:50 AM, AdrienA aubry.adr...@gmail.com wrote:
  Hello,

  I find out a problem with the using of ClientBundle wich produce
  memory leaks in IE6.

  To proove that, I have realised a very simple application (you can
  find the source code at this address :

 http://google-web-toolkit-contributors.googlegroups.com/web/SampleCod...
  )

  In this application, there is just one popup which contains 1000 times
  the same image creating by a ClientBundle.

  I open and close several times this popup and I observe the memory
  leaks in IE6 (with the soft Process Explorer for example).

  The result is alarming :
 http://www.googleonlinestorage.com/pictures/3077dd392df167271d24f526e...

  Is the problem already known? Maybe there is something to do ?

  Thank you,
  Adrien AUBRY

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

  To unsubscribe from this group, send email to
  google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to
  this email with the words REMOVE ME as the subject.

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this 
email with the words REMOVE ME as the subject.


[gwt-contrib] Re: GWT Incubator Status Update and Schedule

2010-02-01 Thread dflorey
What about Fred Sauer's gwt voices project?
AFAK it has an elegant approach how to provide flash based fallback if
certain capabilities are not supported by the browser itself.


On 1 Feb., 14:25, Joel Webber j...@google.com wrote:
 To be clear, we do recognize the importance of starting to support HTML5
 constructs that don't work on all browsers, though we need to find a clear
 way to indicate to developers that a particular library or widget won't work
 in some cases. None of us have ever worked through all the nuances of how
 this should be done yet, and probably won't have time to do so until at
 least Q2. That said, if you want to start the discussion, I'm all ears!



 On Thu, Jan 28, 2010 at 10:44 AM, Ray Ryan rj...@google.com wrote:
  As you'll see in the first note in this thread, Incubator is closing down.

  Having your work in its own project is exactly the right thing to do. If it
  becomes an appropriate addition for GWT proper, we'll eagerly help you
  integrate it. In the meantime, the community can use it and shape it without
  waiting for the GWT team to get in the mix.

  rjrjr

  On Thu, Jan 28, 2010 at 4:56 AM, Mark Renouf mark.ren...@gmail.comwrote:

  I've developed gwt-html5-media, which implements all the common
  functionality described in the Media Element section of the HTML5
  spec, including the specific functionality for Video and Audio tags,
  including all of the events and settings. I could use some help
  testing and improving it and perhaps some advice on how to better
  handle usage of the large number of new native events available
  (currently side-steps the main GWT sinkEvents code instead using it's
  own, since it exhausts the available number of free bitfield
  definitions there).

 http://code.google.com/p/gwt-html5-media/

  Would something like this be welcome in incubator or simply as a side
  project for eventual inclusion into GWT? I'd like to see the HTML5
  support rounded out so this plus the Canvas support would me a major
  step forward. I know there is also another pure-canvas implementation
  for GWT within the SpeedTracer project. I'm not sure if VML fallback
  is worth the complexity if the only browser supporting it does not
  support any other HTML5 features anyhow... but that's a point for
  debate elsewhere I suppose ;-)

  On Jan 12, 1:04 pm, John LaBanca jlaba...@google.com wrote:
   Incubator Users -

   The Google Web Toolkit Incubator project began as a proving grounds for
  new
   widgets to be vetted before joining the ranks of the GWT trunk. We've
  seen
   some success stories over the last year with EventHandlers,
  ClientBundle,
   and DatePicker, but for many of the widgets and libraries, Incubator has
   become an elephant graveyard.

   In order to address this issue, we will start graduating some of the
   libraries to GWT trunk, move some into separate projects, and
  discontinue
   development on others. Ultimately, we will wind down the incubator
  project
   completely.

   The schedule below shows the fate of each subproject in incubator. It's
  a
   tentative schedule, meaning that it could change as priorities shift.

   GWT 2.1

      - *PagingScrollTable and FastTree*
      We are working on a new set of data backed widgets for GWT 2.1 that
  will
      include APIs for trees and tables. We will build upon the lessons
  learned
      with these incubator widgets, but the API for the new data backed
  widgets
      will evolve significantly from the current APIs. When the data backed
      widgets are added to GWT trunk, we will stop development on
      the PagingScrollTable and FastTree.

      - *Locale Selection*
      Selecting the locale on the server requires one less round trip to
  the
      server on startup and is needed for effective use of
      runtime locales selection.  This library will be included in GWT 2.1.

   GWT 2.2

      - *CollapsiblePanel*
      This widget will probably become a subclass of DockingLayoutPanel,
      similar to SplitLayoutPanel.

      - *SliderBar and ProgressBar*
      Both of these widgets currently require the use of a global timer,
  which
      has performance implications. If we can implement these without a
  resize
      timer, we will include them in GWT 2.2. If we cannot, we will
  discontinue
      development on them.

      - *Logging*
      The logging API may make it into GWT 2.1 if time permits.

      - *Form Validation*
      We will take a closer look at the form validation API in GWT 2.2..

   Separate Project:

      - *SoundResource*
      SoundResource is a promising API for including sound in an
  application,
      but it makes sense to wait for HTML 5 features to become widely
  adopted
      before including it. We would like to move SoundResource into the
  gwt-voices
      project:http://code.google.com/p/gwt-voices/.

      - *Graphics*
      The graphics library provides a single, platform independent API that
      works on top of Canvas and 

[gwt-contrib] Re: GWT Incubator Status Update and Schedule

2010-02-01 Thread dflorey
See:

http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/4f5fb0cbd007fa25/e6a70c6a26a444cd?lnk=gstq=compatibility+animations#e6a70c6a26a444cd

On 1 Feb., 17:23, dflorey daniel.flo...@gmail.com wrote:
 What about Fred Sauer's gwt voices project?
 AFAK it has an elegant approach how to provide flash based fallback if
 certain capabilities are not supported by the browser itself.

 On 1 Feb., 14:25, Joel Webber j...@google.com wrote:



  To be clear, we do recognize the importance of starting to support HTML5
  constructs that don't work on all browsers, though we need to find a clear
  way to indicate to developers that a particular library or widget won't work
  in some cases. None of us have ever worked through all the nuances of how
  this should be done yet, and probably won't have time to do so until at
  least Q2. That said, if you want to start the discussion, I'm all ears!

  On Thu, Jan 28, 2010 at 10:44 AM, Ray Ryan rj...@google.com wrote:
   As you'll see in the first note in this thread, Incubator is closing down.

   Having your work in its own project is exactly the right thing to do. If 
   it
   becomes an appropriate addition for GWT proper, we'll eagerly help you
   integrate it. In the meantime, the community can use it and shape it 
   without
   waiting for the GWT team to get in the mix.

   rjrjr

   On Thu, Jan 28, 2010 at 4:56 AM, Mark Renouf mark.ren...@gmail.comwrote:

   I've developed gwt-html5-media, which implements all the common
   functionality described in the Media Element section of the HTML5
   spec, including the specific functionality for Video and Audio tags,
   including all of the events and settings. I could use some help
   testing and improving it and perhaps some advice on how to better
   handle usage of the large number of new native events available
   (currently side-steps the main GWT sinkEvents code instead using it's
   own, since it exhausts the available number of free bitfield
   definitions there).

  http://code.google.com/p/gwt-html5-media/

   Would something like this be welcome in incubator or simply as a side
   project for eventual inclusion into GWT? I'd like to see the HTML5
   support rounded out so this plus the Canvas support would me a major
   step forward. I know there is also another pure-canvas implementation
   for GWT within the SpeedTracer project. I'm not sure if VML fallback
   is worth the complexity if the only browser supporting it does not
   support any other HTML5 features anyhow... but that's a point for
   debate elsewhere I suppose ;-)

   On Jan 12, 1:04 pm, John LaBanca jlaba...@google.com wrote:
Incubator Users -

The Google Web Toolkit Incubator project began as a proving grounds for
   new
widgets to be vetted before joining the ranks of the GWT trunk. We've
   seen
some success stories over the last year with EventHandlers,
   ClientBundle,
and DatePicker, but for many of the widgets and libraries, Incubator 
has
become an elephant graveyard.

In order to address this issue, we will start graduating some of the
libraries to GWT trunk, move some into separate projects, and
   discontinue
development on others. Ultimately, we will wind down the incubator
   project
completely.

The schedule below shows the fate of each subproject in incubator. It's
   a
tentative schedule, meaning that it could change as priorities shift.

GWT 2.1

   - *PagingScrollTable and FastTree*
   We are working on a new set of data backed widgets for GWT 2.1 that
   will
   include APIs for trees and tables. We will build upon the lessons
   learned
   with these incubator widgets, but the API for the new data backed
   widgets
   will evolve significantly from the current APIs. When the data 
backed
   widgets are added to GWT trunk, we will stop development on
   the PagingScrollTable and FastTree.

   - *Locale Selection*
   Selecting the locale on the server requires one less round trip to
   the
   server on startup and is needed for effective use of
   runtime locales selection.  This library will be included in GWT 
2.1.

GWT 2.2

   - *CollapsiblePanel*
   This widget will probably become a subclass of DockingLayoutPanel,
   similar to SplitLayoutPanel.

   - *SliderBar and ProgressBar*
   Both of these widgets currently require the use of a global timer,
   which
   has performance implications. If we can implement these without a
   resize
   timer, we will include them in GWT 2.2. If we cannot, we will
   discontinue
   development on them.

   - *Logging*
   The logging API may make it into GWT 2.1 if time permits.

   - *Form Validation*
   We will take a closer look at the form validation API in GWT 2.2..

Separate Project:

   - *SoundResource*
   SoundResource is a promising API for including sound in an
   application

[gwt-contrib] Re: Please add ClientBundle as optional parameter in each widget cstr

2010-01-24 Thread dflorey
Any news on this idea? It would be very nice to have Messages/
Constants as available resource types to bundle all resources in one
place.


On Jan 4, 5:26 pm, John Tamplin j...@google.com wrote:
 On Mon, Jan 4, 2010 at 11:24 AM, BobV b...@google.com wrote:
  On Mon, Jan 4, 2010 at 11:17 AM, dflorey daniel.flo...@gmail.com wrote:
   The only show stopper I see right is that Messages/Contacts are not
   yet part of the ClientBundle, so I came up with something like this
   (copypaste from branch source):

  You can bridge them with a GwtCreateResource or add a new
  ResourceGenerator type to ClientBundle that will make Messages /
  Constants a first-class resource type.

 How hard would it be to allow a method returning some subtype of
 LocalizableResource in ClientBundle, and have the generated code just do
 GWT.create on it automatically?

 --
 John A. Tamplin
 Software Engineer (GWT), Google

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


[gwt-contrib] Re: More on TabLayoutPanel styles

2010-01-19 Thread dflorey
One more issue:
Using LazyPanel does not work in the new TabLayoutPanel. I guess the
setVisible() method is no longer called on this widget (is it called
on one of the parent panels?)


On Jan 19, 5:07 pm, Joel Webber j...@google.com wrote:
 On Mon, Jan 18, 2010 at 6:17 AM, dflorey daniel.flo...@gmail.com wrote:
  Hi,
  I've been trying to usw the new TabLayoutPanel for different layouts.
  Here are my findings:

  1. The .gwt-TabLayoutPanelTabs style gets applied to the wrapper
  element with width set to 16000 px. This makes it impossible to
  create a border around the tab bar.
  As a workaround I had to apply a style to wrapper element like this:
  ((Element) tabPanel.getElement().getChild(1)).setClassName(.gwt-
  TabLayoutPanel-wrapper);
  This is very ugly and will fail as soon as the TabLayoutPanel impl
  changes.
  Please consider applying the .gwt-TabLayoutPanelTabs style to the
  appropriate wrapper element.

 This is a good point. I'll need to add another wrapper element around the
 tabs to make this work, but I don't think that will cause any problems.
 There *is* a wrapper created by the Layout class, but it's unsafe to apply
 arbitrary styles to it (in particular, decorations such as border, margin,
 and padding will confuse it -- it's actually there to work around
 measurement problems with such decorations). I've added a comment to issue
 4429 (default TLP styles) to capture this.

 2. The setStyle(Primary)Name methods will not change the substyles.

  When using different TabLayoutPanels with different styles in the same
  application you'll have to overwrite each css property as you'll
  inherit all styles by default. It would be much better to change all
  substyles as it has been the case with the old gwt widgets

 Actually, I can't think of any cases off the top of my head where we've
 automatically updated sub-styles like this. For example, the old StackPanel
 only modifies the top-most class name. The problem is that there are cases
 where we'd be forced to walk arbitrarily large numbers of children every
 time the style name is changed. We decided it was best to avoid this, and
 require the (admittedly somewhat uglier, and imperfect) use of descendent
 selectors. The right long-term approach is probably closer to what you
 suggest below.

 or - even better - to pass a ClientBundle defining all styles as an optional

  argument to the cstr of the TabLayoutPanel.
  A default style factory could provide default styles if no
  ClientBundle is provided. Replacing the default style factory using
  deferred binding could make the default styles themable.
  I've used this approach in my own app and it works fine.

 Essentially, yes. Though it's a fairly complex design problem in the general
 case to do so in a way that ensures there's no unnecessary overhead, and
 supports all the common use cases. This is definitely a Q1 goal, and we'll
 make a point to share design docs as soon as we have a rough idea of what it
 should look like.
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: History support broken on chrome

2010-01-12 Thread dflorey
I've created
http://code.google.com/p/google-web-toolkit/issues/detail?id=4477
for this one.

On Jan 9, 11:48 am, dflorey daniel.flo...@gmail.com wrote:
 I've create a simple code snippet to track down the problem and it
 turned out that this problem only occurs when putting a Frame() widget
 into the tab. This seems to screw up thehistorystuff onchrome
 (works fine on all other browsers).
 I can post my sample but it is just as easy as putting some Frames
 into the tabs...

 Cheers,
 Daniel

 On Jan 8, 3:05 pm, Joel Webber j...@google.com wrote:



  Feel free to do so, though it would be really helpful if you can pin down
  precisely what difference exists in your code that's causing it to behave
  differently from the samples. No need to attach a complete app -- just a
  snippet or general outline should be sufficient.

  On Fri, Jan 8, 2010 at 4:43 AM, dflorey daniel.flo...@gmail.com wrote:
   Shall I file an issue for that?

   On Jan 6, 5:56 pm, dflorey daniel.flo...@gmail.com wrote:
I changed the method but still no luck. I'm runningchrome4.0.266.0
The app hangs after second back.

On Jan 6, 5:32 pm, dflorey daniel.flo...@gmail.com wrote:

 I just copied the example code:
  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist...

 I'll change my code to use newItem(..., false) and let you know if
 this works.
 Thanks so far!

 On Jan 6, 5:02 pm, Thomas Broyer t.bro...@gmail.com wrote:

  On Jan 6, 3:47 pm, Joel Webber j...@google.com wrote:

   Daniel,

   I'm seeing Showcase work fine on bothChrome/Mac and
  Chrome/Windows.

  Just test our app too, works fine.

   Forhttp://www.floreysoft.com/I'mseeingdifferentbehaviorsoneach:

   Windows: Everything seems to work fine, except for some strange
   shuffle when
   backing into the firsthistorystate, which keeps me from going
   forward out
   of this position.

  UsingChrome4.0.266.0 (Dev Channel) on floreysoft, I experience the
  behavior Daniel describes: first back works, second one hangs, 
  with
 Chromeshowing the throbber.

   Is there anything unusual going on in your app'shistoryevent
   handler?
   Perhaps something like callingHistory.newItem() in response to a
  history
   event?

  We do callHistory.newItem(..., false) in response tohistoryevents
  and our app works OK, so at least newItem(..., false) isn't a
   problem,
  but newItem(...) or newItem(..., true) would certainly be!

  It might be an issue with iframes too.

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

[gwt-contrib] History support for StackLayoutPanel

2010-01-06 Thread dflorey
Hi,
it would be very convenient if StackLayoutPanel would support
SelectionHandler and a setItem(int index) method to implement history
support.
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: History support broken on chrome

2010-01-06 Thread dflorey
Works fine in IE too

On Jan 6, 10:51 am, dflorey daniel.flo...@gmail.com wrote:
 For the some reason the history support is not working properly on
 chrome.
 I've just added the history example to the main tab panel and it is
 working fine on firefox but works on chrome only for the first back.
 You can double check here:http://www.floreysoft.net
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Tab-selected style missing in JavaDoc for TabLayoutPanel

2010-01-06 Thread dflorey
reminder
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: History support broken on chrome

2010-01-06 Thread dflorey
I just copied the example code:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html

I'll change my code to use newItem(..., false) and let you know if
this works.
Thanks so far!

On Jan 6, 5:02 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Jan 6, 3:47 pm, Joel Webber j...@google.com wrote:

  Daniel,

  I'm seeing Showcase work fine on both Chrome/Mac and Chrome/Windows.

 Just test our app too, works fine.

  Forhttp://www.floreysoft.com/I'mseeing different behaviors on each:

  Windows: Everything seems to work fine, except for some strange shuffle when
  backing into the first history state, which keeps me from going forward out
  of this position.

 Using Chrome 4.0.266.0 (Dev Channel) on floreysoft, I experience the
 behavior Daniel describes: first back works, second one hangs, with
 Chrome showing the throbber.

  Is there anything unusual going on in your app's history event handler?
  Perhaps something like calling History.newItem() in response to a history
  event?

 We do call History.newItem(..., false) in response to history events
 and our app works OK, so at least newItem(..., false) isn't a problem,
 but newItem(...) or newItem(..., true) would certainly be!

 It might be an issue with iframes too.
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: History support for StackLayoutPanel

2010-01-06 Thread dflorey
Where did you find these? Or are these the methods planned?

I'm talking about the StackLayoutPanel not TabLayoutPanel...

On Jan 6, 4:25 pm, Joel Webber j...@google.com wrote:
 Are addSelectionHandler(), addBeforeSelectionHandler(), selectTab(int), and
 selectTab(Widget) not sufficient for this?



 On Wed, Jan 6, 2010 at 4:05 AM, dflorey daniel.flo...@gmail.com wrote:
  Hi,
  it would be very convenient if StackLayoutPanel would support
  SelectionHandler and a setItem(int index) method to implement history
  support.

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

[gwt-contrib] Re: History support broken on chrome

2010-01-06 Thread dflorey
I changed the method but still no luck. I'm running chrome 4.0.266.0
The app hangs after second back.

On Jan 6, 5:32 pm, dflorey daniel.flo...@gmail.com wrote:
 I just copied the example 
 code:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist...

 I'll change my code to use newItem(..., false) and let you know if
 this works.
 Thanks so far!

 On Jan 6, 5:02 pm, Thomas Broyer t.bro...@gmail.com wrote:



  On Jan 6, 3:47 pm, Joel Webber j...@google.com wrote:

   Daniel,

   I'm seeing Showcase work fine on both Chrome/Mac and Chrome/Windows.

  Just test our app too, works fine.

   Forhttp://www.floreysoft.com/I'mseeingdifferent behaviors on each:

   Windows: Everything seems to work fine, except for some strange shuffle 
   when
   backing into the first history state, which keeps me from going forward 
   out
   of this position.

  Using Chrome 4.0.266.0 (Dev Channel) on floreysoft, I experience the
  behavior Daniel describes: first back works, second one hangs, with
  Chrome showing the throbber.

   Is there anything unusual going on in your app's history event handler?
   Perhaps something like calling History.newItem() in response to a history
   event?

  We do call History.newItem(..., false) in response to history events
  and our app works OK, so at least newItem(..., false) isn't a problem,
  but newItem(...) or newItem(..., true) would certainly be!

  It might be an issue with iframes too.
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Fixed styles on SplitLayoutPanel-HDragger?

2010-01-05 Thread dflorey
I just tried to modify the dragger style in the new SplitLayoutPanels
but with no success.
There are some hard-coded properties like width, height, background-
color etc. that can not be shadowed  by the ...-H/VDragger substyles.

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


[gwt-contrib] Re: Dev-Mode is not starting up, GWT compile works fine

2010-01-04 Thread dflorey
I've been running trunk but reverted back to 2.0 plugin.

On Jan 4, 9:47 am, John Tamplin j...@google.com wrote:
 On Sun, Jan 3, 2010 at 1:02 PM, dflorey daniel.flo...@gmail.com wrote:
  I had to remove all gwt dependencies from the run configuration and
  restore the defaults to get rid of this error.
  Just in case someone else struggles...

 What version are you running?  That was added as an optimization for webmode
 after 2.0 and reverted after it was discovered to cause problems in devmode.

 --
 John A. Tamplin
 Software Engineer (GWT), Google

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


[gwt-contrib] Re: Please add ClientBundle as optional parameter in each widget cstr

2010-01-04 Thread dflorey
On Jan 4, 4:04 pm, BobV b...@google.com wrote:
 On Sun, Jan 3, 2010 at 6:10 AM, dflorey daniel.flo...@gmail.com wrote:
  It would be great if the new ClientBundle would be used to style all
  gwt widgets.

 I think John probably has some ideas here.

  (btw: Why is it called ClientBundle and not ResourceBundle as it
  bundles up different resources...)

 To avoid the conflict with java.util.ResourceBundle.

:-)


 --
 Bob Vawter
 Google Web Toolkit Team

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


[gwt-contrib] Re: TabLayoutPanel not working on IE8

2010-01-04 Thread dflorey
Very strange. I've added float:left to each tab explicitly and now it
is working.
I guess it may be useful to provide a working default style.
If you are interested I can post my funky rounded-border animated
webkit/firefox style ;-)

On Jan 4, 4:37 pm, Joel Webber j...@google.com wrote:
 I assume we're talking about the TabLayoutPanel issue, where the individual
 tabs are expanding to full width, and stacking up vertically. This appears
 to be happening in both IE8 and IE7 modes.

 This doesn't seem to happen normally -- the code in TabLayoutPanel uses
 float:left to cause the tabs to stack up horizontally. This style property
 seems to be intact in your app, so something else must be interfering with
 it. Would you mind looking at it to see if perhaps there's another property
 that might be confusing IE? If we can figure out what it is, there may be a
 way to prevent it in the future.



 On Sun, Jan 3, 2010 at 12:47 PM, dflorey daniel.flo...@gmail.com wrote:
  Yes. You can have a look at my current testpage at
 http://www.floreysoft.net
  It's just a bunch of new LayoutPanel with css styles only.

  On Jan 3, 6:30 pm, John Tamplin j...@google.com wrote:
   On Sun, Jan 3, 2010 at 5:56 AM, dflorey daniel.flo...@gmail.com wrote:
- TabLayoutPanel is working fine on Chrome and Firefox but on IE8
(didn't try other IE's) it is completely broken

   Are you in standards mode?  Quirks mode is not supported with the new
  layout
   panels on IE.

   --
   John A. Tamplin
   Software Engineer (GWT), Google

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

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


[gwt-contrib] Re: StackLayoutPanel has no styles at all??

2010-01-04 Thread dflorey
Correct me if I'm wrong but I found it quite hard to apply a
selected style to the selected stack panel header.
I came up with a workaround like this:

StackLayoutPanel danielStackPanel = new StackLayoutPanel
(Style.Unit.PX) {
@Override
public void showWidget(Widget widget) {
// Find associated header (mapwidget,header) and apply selected
style to header
// Remove selected style from all other header widgets
}
}
But for some reason that I don't remember (I tried that out
yesterday...) it did not work. I guess the style order was interfering
somehow...

I really would prefer if some of the useful styles would be set by
default.

On Jan 4, 4:47 pm, Joel Webber j...@google.com wrote:
 Coming up with a general structure for stack header widgets (a la
 TabLayoutPanel tabs), such that you could achieve whatever style you like,
 proved very difficult in practice. I basically punted and just allowed you
 to add an arbitrary widget, which you can style however you like.

 I'm quite open to alternative structures that work more like tabs. The
 problem I ran into is that you typically want a stack header to extend
 vertically to cover the entire space between stacks. The layout system does
 this automatically, but it is rather difficult to place the content of a
 header wherever you want it.



 On Sun, Jan 3, 2010 at 1:41 PM, dflorey daniel.flo...@gmail.com wrote:
  Maybe I'm dumb but I do not find any styles associated with the new
  StackLayoutPanel...
  And no methods to add click listeners etc.
  I'd expect the same styles as on StackPanel:

  CSS Style Rules

  .gwt-StackPanel { the panel itself }
  .gwt-StackPanel .gwt-StackPanelItem { unselected items }
  .gwt-StackPanel .gwt-StackPanelItem-selected { selected items }
  .gwt-StackPanel .gwt-StackPanelContent { the wrapper around the
  contents of the item }

  I tried to set the primary name but no effect.

  Any ideas?

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

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


[gwt-contrib] Re: Please add ClientBundle as optional parameter in each widget cstr

2010-01-04 Thread dflorey
If you are interested I've already done this for my table branch in
the incubator. It's a little bit outdated - I need to port the branch
to 2.0... :-(
The only show stopper I see right is that Messages/Contacts are not
yet part of the ClientBundle, so I came up with something like this
(copypaste from branch source):

  /**
   * An {...@link ImageBundle} that provides images for {...@link
AbstractScrollTable}
   * .
   */
  public static interface Css extends CssResource {
/**
 * Widget style name.
 *
 * @return the widget's style name
 */
@ClassName(gwt-ScrollTable)
String defaultStyleName();

String headerTable();

String dataTable();

String footerTable();

String headerWrapper();

String dataWrapper();

String footerWrapper();
  }

  /**
   * Resources used.
   */
  public interface ScrollTableStyle extends ClientBundle {
/**
 * The css file.
 */
@Source(com/google/gwt/gen2/widgetbase/public/ScrollTable.css)
@NotStrict
Css css();

/**
 * An image used to fill the available width.
 *
 * @return an image resource of this image
 */
@Source(scrollTableFillWidth.gif)
ImageResource scrollTableFillWidth();

/**
 * An image indicating that a column is sorted in ascending order.
 *
 * @return an image resource of this image
 */
@Source(scrollTableAscending.gif)
ImageResource scrollTableAscending();

/**
 * An image indicating a column is sorted in descending order.
 *
 * @return an image resource of this image
 */
@Source(scrollTableDescending.gif)
ImageResource scrollTableDescending();

@Source(headerBackground.png)
@ImageOptions(repeatStyle = RepeatStyle.Horizontal)
ImageResource headerBackground();
  }

  public interface ScrollTableMessages extends Messages {
@DefaultMessage(Shrink/Expand to fill visible area)
String shrinkExpandTooltip();

@DefaultMessage(Shows only dates that are equal)
String dateOperatorEqualTooltip();

@DefaultMessage(Shows only dates that not equal)
String dateOperatorUnequalTooltip();

@DefaultMessage(Show only dates before the given date)
String dateOperatorBeforeTooltip();

@DefaultMessage(Show only dates after the given date)
String dateOperatorAfterTooltip();

@DefaultMessage(Show only dates between the given dates)
String dateOperatorBetweenTooltip();
  }

  public interface ScrollTableResources {
ScrollTableStyle getStyle();

ScrollTableMessages getMessages();
  }


On Jan 4, 4:28 pm, Joel Webber j...@google.com wrote:
 What John said. There are a few difficult design problems in doing this
 properly -- i.e., with no overhead for those just using plain CSS, nor for
 those using CssResource/ClientBundle themes. I am confident the problem is
 soluble, though.



 On Mon, Jan 4, 2010 at 10:21 AM, John LaBanca jlaba...@google.com wrote:
  We definitely plan to use ClientBundles to provide default stylings for all
  widgets, but we haven't really talked about how to go about doing that yet.
   Ideally, we want to use ClientBundles without breaking apps that are
  already using the existing CSS style themes.

  We could add ClientBundles to all widgets to serve as a default style, and
  we can also provide a DeferredBinding to an Unstyled ClientBundle for each
  widget.  If a user inherits one of the existing CSS style themes, the
  Standard/Chrome/Dark.gwt.xml files will inherit the Unstyled deferred
  binding, thus disabling the ClientBundles for backway compatibility.

  Thanks,
  John LaBanca
  jlaba...@google.com

  On Mon, Jan 4, 2010 at 10:04 AM, BobV b...@google.com wrote:

  On Sun, Jan 3, 2010 at 6:10 AM, dflorey daniel.flo...@gmail.com wrote:
   It would be great if the new ClientBundle would be used to style all
   gwt widgets.

  I think John probably has some ideas here.

   (btw: Why is it called ClientBundle and not ResourceBundle as it
   bundles up different resources...)

  To avoid the conflict with java.util.ResourceBundle.

  --
  Bob Vawter
  Google Web Toolkit Team

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


[gwt-contrib] Please add ClientBundle as optional parameter in each widget cstr

2010-01-03 Thread dflorey
It would be great if the new ClientBundle would be used to style all
gwt widgets.
(btw: Why is it called ClientBundle and not ResourceBundle as it
bundles up different resources...)

So let each widget define an interface containing all resources used
to style the widget (messages, images, css-styles, sounds etc.) and
provide some default impls that will be used if no bundle is passed in
to cstr when creating the widget.
The default impl could be provided by the theme module.
Is there a plan to move the constants / messages to ClientBundle as
well? This would help to package all widget resources in one place.

I've posted some more thoughts on this some months/years ago but
cannot find the thread ...

Cheers+thanks for the great work on 2.0!!

Daniel

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


[gwt-contrib] Re: TabLayoutPanel not working on IE8

2010-01-03 Thread dflorey
Yes. You can have a look at my current testpage at
http://www.floreysoft.net
It's just a bunch of new LayoutPanel with css styles only.

On Jan 3, 6:30 pm, John Tamplin j...@google.com wrote:
 On Sun, Jan 3, 2010 at 5:56 AM, dflorey daniel.flo...@gmail.com wrote:
  - TabLayoutPanel is working fine on Chrome and Firefox but on IE8
  (didn't try other IE's) it is completely broken

 Are you in standards mode?  Quirks mode is not supported with the new layout
 panels on IE.

 --
 John A. Tamplin
 Software Engineer (GWT), Google

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


[gwt-contrib] Dev-Mode is not starting up, GWT compile works fine

2010-01-03 Thread dflorey
For some reason I get this error when launching oophm devmode:

18:48:49.359 [ERROR] [website] Unable to load module entry point
class

com.floreysoft.website.client.Website (see associated exception for
details)

java.lang.NoSuchMethodError: java.lang.String.equals(Ljava/lang/
String;)Z
at com.floreysoft.website.client.Website.onModuleLoad(Website.java:
50)

GWT-Compile works just fine (both eclipse). Any ideas?

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


[gwt-contrib] Re: Dev-Mode is not starting up, GWT compile works fine

2010-01-03 Thread dflorey
I had to remove all gwt dependencies from the run configuration and
restore the defaults to get rid of this error.
Just in case someone else struggles...

On Jan 3, 6:50 pm, dflorey daniel.flo...@gmail.com wrote:
 For some reason I get this error when launching oophm devmode:

 18:48:49.359 [ERROR] [website] Unable to load module entry point
 class

 com.floreysoft.website.client.Website (see associated exception for
 details)

 java.lang.NoSuchMethodError: java.lang.String.equals(Ljava/lang/
 String;)Z
     at com.floreysoft.website.client.Website.onModuleLoad(Website.java:
 50)

 GWT-Compile works just fine (both eclipse). Any ideas?

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


[gwt-contrib] StackLayoutPanel has no styles at all??

2010-01-03 Thread dflorey
Maybe I'm dumb but I do not find any styles associated with the new
StackLayoutPanel...
And no methods to add click listeners etc.
I'd expect the same styles as on StackPanel:

CSS Style Rules

.gwt-StackPanel { the panel itself }
.gwt-StackPanel .gwt-StackPanelItem { unselected items }
.gwt-StackPanel .gwt-StackPanelItem-selected { selected items }
.gwt-StackPanel .gwt-StackPanelContent { the wrapper around the
contents of the item }

I tried to set the primary name but no effect.

Any ideas?

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


[gwt-contrib] Re: Avira is showing warning when accessing gwt-generated files

2009-11-28 Thread dflorey
Thanks for your suggestion! I've uploaded a generated file and will
post the response to this thread.
I was wondering if all gwt-generated files will be classified as
malware by Avira or if it depends on some generated javascript
snippets.

On Nov 24, 4:58 pm, Matt Mastracci matt...@mastracci.com wrote:
 The best approach is probably to upload the file in question to  
 Avira's false-positive reporting page:

 http://analysis.avira.com/samples/index.php

 On 24-Nov-09, at 8:19 AM, dflorey wrote:



  Am I the only one with this issue?

  On 19 Nov., 17:29, dflorey daniel.flo...@gmail.com wrote:
  Hi,
  since a few weeksAviraAntiVir is generating warnings when accessing
  gwt-generated files:

  When accessing data from the URL, http://
  allcontacts.southpolecarbon.com/sharedcontacts/
  C7C22E75261E4D2C9C7FAF82B71C40B0.cache.html
  a virus or unwanted program 'HTML/Crypted.Gen' [virus] was found.
  Action taken: Ignored

  Any ideas how to get rid of these warnings?

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

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


[gwt-contrib] Re: Avira is showing warning when accessing gwt-generated files

2009-11-24 Thread dflorey
Am I the only one with this issue?

On 19 Nov., 17:29, dflorey daniel.flo...@gmail.com wrote:
 Hi,
 since a few weeksAviraAntiVir is generating warnings when accessing
 gwt-generated files:

 When accessing data from the URL, http://
 allcontacts.southpolecarbon.com/sharedcontacts/
 C7C22E75261E4D2C9C7FAF82B71C40B0.cache.html
 a virus or unwanted program 'HTML/Crypted.Gen' [virus] was found.
 Action taken: Ignored

 Any ideas how to get rid of these warnings?

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


[gwt-contrib] Avira is showing warning when accessing gwt-generated files

2009-11-19 Thread dflorey
Hi,
since a few weeks Avira AntiVir is generating warnings when accessing
gwt-generated files:

When accessing data from the URL, http://
allcontacts.southpolecarbon.com/sharedcontacts/
C7C22E75261E4D2C9C7FAF82B71C40B0.cache.html
a virus or unwanted program 'HTML/Crypted.Gen' [virus] was found.
Action taken: Ignored

Any ideas how to get rid of these warnings?

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


[gwt-contrib] GWT app on App Engine not working since today

2009-10-13 Thread dflorey

I've a big problem. My GWT app is not working any more since today.
This is what I see from the logs:
Let's say my app module is renamed to modulename and I want to
access the app on myapp.appspot.com I have to specify /modulename/
index.html as welcome page in order to load the app.
This worked fine until today as now the page is accessed properly, but
all gwt resources will not be loaded anymore as they of course reside
in /modulename/... but the gwt loader tries to load them from /...
I don't know if this is because of the upcoming app engine 1.2.6
release handling
this in a different way or if the gwt-2.x behavior of loading
resources has changed.
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: GWT app on App Engine not working since today

2009-10-13 Thread dflorey

Ok, I double checked with my app on several customers domains. All
apps running on the new 1.2.6 app engine backend are broken.
So gwt is definitely working, but it's not working in conjunction with
the new 1.2.6 backend.
While 1.2.5 was serving the welcome-page using a real redirect, the
new version seems to serve just the content of the welcome page so
that all subsequent requests from the gwt locale detection are broken
(they go to / instead of /modulename/).
My workaround is to implement a RedirectServlet simulating the real
redirect to the entry point html page. But this makes all url's look
ugly and all of my customers will have to redeploy the app to their
Google Apps domains :-(

On 13 Okt., 11:42, dflorey daniel.flo...@gmail.com wrote:
 I've a big problem. My GWT app is not working any more since today.
 This is what I see from the logs:
 Let's say my app module is renamed to modulename and I want to
 access the app on myapp.appspot.com I have to specify /modulename/
 index.html as welcome page in order to load the app.
 This worked fine until today as now the page is accessed properly, but
 all gwt resources will not be loaded anymore as they of course reside
 in /modulename/... but the gwt loader tries to load them from /...
 I don't know if this is because of the upcoming app engine 1.2.6
 release handling
 this in a different way or if the gwt-2.x behavior of loading
 resources has changed.
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Table framework

2009-10-10 Thread dflorey

Any news on the scroll table framework?
I've not looked into the gwt incubator for a long time as I was busy
with other stuff, but to me it looks as if not much happened on the
tables in the meantime.
If Google looks for a way to waste money I would be happy to build
this stuff for you ;-)
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Locking Columns in PagingScrollTable

2009-07-28 Thread dflorey

I'm not sure about the current status of when things will proceed and
move to trunk, but I'd like to see this feature in the core table
framework!
If you have some patches, I can of course add them to my branch as
I've already added some functionality to the tables and at least try
to merge back the incubator trunk into my branch from time to time.
This is how I'd implement this feature (just brainstorming):
Add another table to the ScrollTable (copypaste the code from
creating the header table). The width of the header table columns has
to be kept in sync manually when the content of the data table
changes. So you should grab the same events and sync the height of the
rows of your fixedColumnTable.
It would be cool if there would be a way to define the fixed
property in the CoumnDefinition. The is already a bunch of classes for
each column property so it does not harm to introduce another one ;-)
Check for the fixed property when constructing the table and add
additional tables for fixed columns not next to each other and recalc
the column index to populate the proper tables when populating data.
Finally we would end up with a dynamic number of data tables (think of
a table with a fixed first and last column = 3 data tables) that all
have to be kept in sync regarding row height.

On Jul 28, 7:35 am, jay jay.gin...@gmail.com wrote:
 I'm about to embark on coming up with a way to lock 1 or more of the
 left-most columns. E.g., the locked columns will not scroll
 horizontally as the other columns are scrolled.

 I've googled around, and not found any other work towards this, so I'm
 hoping it's not impossible.

 Currently, I'm using the PagingScrollTable... My first thought is that
 I would create a wrapper that would internally separate the TableModel
 into two, and create two separate PagingScrollTable instances, smushed
 side-by-side.

 However, if I do this, one thing I really am unsure of is how to keep
 the height of each row in sync?

 I appreciate any  hints, tips, and/or tricks!

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



[gwt-contrib] Re: Locking Columns in PagingScrollTable

2009-07-28 Thread dflorey

You can find my branch here:

http://code.google.com/p/google-web-toolkit-incubator/source/browse/#svn/branches/dflorey/tableAddons

Description of some addons:

http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable

Cheers,
Daniel

On 28 Jul., 19:43, jay jay.gin...@gmail.com wrote:
 What branch and what functionality have you already added?

 jay

 On Jul 28, 1:44 am, dflorey daniel.flo...@gmail.com wrote:



  I'm not sure about the current status of when things will proceed and
  move to trunk, but I'd like to see this feature in the core table
  framework!
  If you have some patches, I can of course add them to my branch as
  I've already added some functionality to the tables and at least try
  to merge back the incubator trunk into my branch from time to time.
  This is how I'd implement this feature (just brainstorming):
  Add another table to the ScrollTable (copypaste the code from
  creating the header table). The width of the header table columns has
  to be kept in sync manually when the content of the data table
  changes. So you should grab the same events and sync the height of the
  rows of your fixedColumnTable.
  It would be cool if there would be a way to define the fixed
  property in the CoumnDefinition. The is already a bunch of classes for
  each column property so it does not harm to introduce another one ;-)
  Check for the fixed property when constructing the table and add
  additional tables for fixed columns not next to each other and recalc
  the column index to populate the proper tables when populating data.
  Finally we would end up with a dynamic number of data tables (think of
  a table with a fixed first and last column = 3 data tables) that all
  have to be kept in sync regarding row height.

  On Jul 28, 7:35 am, jay jay.gin...@gmail.com wrote:

   I'm about to embark on coming up with a way to lock 1 or more of the
   left-most columns. E.g., the locked columns will not scroll
   horizontally as the other columns are scrolled.

   I've googled around, and not found any other work towards this, so I'm
   hoping it's not impossible.

   Currently, I'm using the PagingScrollTable... My first thought is that
   I would create a wrapper that would internally separate the TableModel
   into two, and create two separate PagingScrollTable instances, smushed
   side-by-side.

   However, if I do this, one thing I really am unsure of is how to keep
   the height of each row in sync?

   I appreciate any  hints, tips, and/or tricks!

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



[gwt-contrib] Problems after upgrading to trunk

2009-07-22 Thread dflorey

After upgrading to trunk my app stopped working. In hosted mode in
don't get any error msg, but the hosted mode browser stays empty. When
compiling I get this error:

[ERROR] Unexpected
java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
(JdtCompiler.java:208)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
(JdtCompiler.java:94)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
253)
at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:338)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:247)
at com.google.gwt.dev.javac.CompilationState.init
(CompilationState.java:116)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:285)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:455)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:395)
at com.google.gwt.dev.Compiler.run(Compiler.java:193)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:144)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:151)

Any ideas?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Problems after upgrading to trunk

2009-07-22 Thread dflorey

I get this error when gwt-compiling my app. gwt trunk compiles just
fine.

On Jul 22, 4:13 pm, Scott Blum sco...@google.com wrote:
 This is after ant clean?



 On Wed, Jul 22, 2009 at 5:14 AM, dflorey daniel.flo...@gmail.com wrote:

  After upgrading to trunk my app stopped working. In hosted mode in
  don't get any error msg, but the hosted mode browser stays empty. When
  compiling I get this error:

  [ERROR] Unexpected
  java.lang.NoSuchFieldError:
  reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
         at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
  (JdtCompiler.java:208)
         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
  (JdtCompiler.java:94)
         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
  253)
         at com.google.gwt.dev.javac.CompilationState.compile
  (CompilationState.java:338)
         at com.google.gwt.dev.javac.CompilationState.refresh
  (CompilationState.java:247)
         at com.google.gwt.dev.javac.CompilationState.init
  (CompilationState.java:116)
         at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
  (ModuleDef.java:285)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:455)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:395)
         at com.google.gwt.dev.Compiler.run(Compiler.java:193)
         at com.google.gwt.dev.Compiler$1.run(Compiler.java:144)
         at
  com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
  88)
         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
  (CompileTaskRunner.java:82)
         at com.google.gwt.dev.Compiler.main(Compiler.java:151)

  Any ideas?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Problems after upgrading to trunk

2009-07-22 Thread dflorey

Update:
- When gwt-compiling using the Eclipse-plugin I get the error pasted
above.
- When starting hosted mode the browser page is empty with no errors
- When compiling from hosted mode browser everything works fine
- Launching compiled app in external browser works fine

On Jul 22, 5:27 pm, dflorey daniel.flo...@gmail.com wrote:
 I get this error when gwt-compiling my app. gwt trunk compiles just
 fine.

 On Jul 22, 4:13 pm, Scott Blum sco...@google.com wrote:



  This is after ant clean?

  On Wed, Jul 22, 2009 at 5:14 AM, dflorey daniel.flo...@gmail.com wrote:

   After upgrading to trunk my app stopped working. In hosted mode in
   don't get any error msg, but the hosted mode browser stays empty. When
   compiling I get this error:

   [ERROR] Unexpected
   java.lang.NoSuchFieldError:
   reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
          at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
   (JdtCompiler.java:208)
          at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
   (JdtCompiler.java:94)
          at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
   253)
          at com.google.gwt.dev.javac.CompilationState.compile
   (CompilationState.java:338)
          at com.google.gwt.dev.javac.CompilationState.refresh
   (CompilationState.java:247)
          at com.google.gwt.dev.javac.CompilationState.init
   (CompilationState.java:116)
          at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
   (ModuleDef.java:285)
          at com.google.gwt.dev.Precompile.precompile(Precompile.java:455)
          at com.google.gwt.dev.Precompile.precompile(Precompile.java:395)
          at com.google.gwt.dev.Compiler.run(Compiler.java:193)
          at com.google.gwt.dev.Compiler$1.run(Compiler.java:144)
          at
   com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
   88)
          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
   (CompileTaskRunner.java:82)
          at com.google.gwt.dev.Compiler.main(Compiler.java:151)

   Any ideas?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: GWT emulation of HTML5/CSS3 features

2009-07-22 Thread dflorey

I think it is helpful if we distinguish between optional and mandatory
features.
If GWT would come with a set of widgets or library components that
behave slightly different on different browsers this might not be bad
in general. I'm aware that the general approach of GWT is to write
software once and run it almost everywhere with identical results.
But I can imagine several areas where it may be appropriate to have
e.g. widgets that look even better when the rendering engine supports
3d animations etc. If the developer can use the widget as is and will
get a default behavior on all browsers and an extended behavior on
top on some of them, this would be beneficial IMO.
Think of a TabPanel widget that takes advantage of the new funky 3D
animation and transition feature on WebKit and provides a working
default implementation for browsers not supporting CSS3 looking a
little bit more boring.
When it comes to libraries like Database storage it would be helpful
to have a dummy implementation that will do nothing in case when no
persistence is available and to provide some isAvailable() method
for each additional feature.

On Jul 22, 5:00 pm, Arthur Kalmenson arthur.k...@gmail.com wrote:
 This would definitely be a killer feature.

 A common API for something like Web Workers and App Cache (maybe
 wrapper forhttp://code.google.com/p/webstorageportabilitylayer/) that
 can seamlessly switch talk to Gears or native HTML 5 implementation
 would be very nice. I think it's a lot easier to convince a company to
 install Gears then installing and using a completely new browser, so
 at least for enterprise settings some common API would be very useful.

 Regards,
 --
 Arthur Kalmenson



 On Mon, Jun 29, 2009 at 10:24 AM, dfloreydaniel.flo...@gmail.com wrote:

  Hi,
  I've been wondering how GWT should deal with upcoming new features in
  HTML5/CSS3.
  There are several areas where functionality that has been implemented
  in GWT is now also available in the upcoming rendering engines.

  GWT is creating highly optimized JavaScript and the JavaScript-engines
  are getting better and better... but: My guess is that for example
  animations will be smoother when using CSS3 animations instead of
  JavaScript based animations.
  Same about rounded corners/shadows and stuff alike. In GWT you'll
  typically use DecoratedPanel to implement rounded corners with
  shadows. But Firefox3.5 and the latest Safari and Chrome releases also
  support css-based rounded borders and shadows.

  So my proposal would be to use deferred binding to emulate these
  features on browsers that do not support the latest features (IE8...)
  and to use a lightweight css based impl on WebKit/Firefox 3.5.

  In my example of DecoratedPanel the 9x9 approach should be kept for IE
  and a null impl with css based rounded corners should be available for
  Firefox (css have to match the given theme).
  Animations that come with the standard widgets should also be able to
  fallback to css based animations when available.

  I've been also reading some posts about the new datagrid html
  extension and thought it might be clever to have a look at the spec
  when moving the tables from incubator to trunk to see how far the
  concepts match. Would be very cool to have a native table
  implementation on WebKit browsers while other fallback to gwt impls.

  What do you think?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Problems after upgrading to trunk

2009-07-22 Thread dflorey

Hmmm, very strange. After deleting all the *.jdt.prefs* files in
my .settings directory everything works fine again.
No idea, never created these files but they seem to be harmful under
certain circumstances ;-)

On Jul 22, 5:37 pm, dflorey daniel.flo...@gmail.com wrote:
 Update:
 - When gwt-compiling using the Eclipse-plugin I get the error pasted
 above.
 - When starting hosted mode the browser page is empty with no errors
 - When compiling from hosted mode browser everything works fine
 - Launching compiled app in external browser works fine

 On Jul 22, 5:27 pm, dflorey daniel.flo...@gmail.com wrote:



  I get this error when gwt-compiling my app. gwt trunk compiles just
  fine.

  On Jul 22, 4:13 pm, Scott Blum sco...@google.com wrote:

   This is after ant clean?

   On Wed, Jul 22, 2009 at 5:14 AM, dflorey daniel.flo...@gmail.com wrote:

After upgrading to trunk my app stopped working. In hosted mode in
don't get any error msg, but the hosted mode browser stays empty. When
compiling I get this error:

[ERROR] Unexpected
java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
       at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
(JdtCompiler.java:208)
       at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
(JdtCompiler.java:94)
       at 
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
253)
       at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:338)
       at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:247)
       at com.google.gwt.dev.javac.CompilationState.init
(CompilationState.java:116)
       at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:285)
       at com.google.gwt.dev.Precompile.precompile(Precompile.java:455)
       at com.google.gwt.dev.Precompile.precompile(Precompile.java:395)
       at com.google.gwt.dev.Compiler.run(Compiler.java:193)
       at com.google.gwt.dev.Compiler$1.run(Compiler.java:144)
       at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
88)
       at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:82)
       at com.google.gwt.dev.Compiler.main(Compiler.java:151)

Any ideas?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Building OOPHM for Firefox

2009-06-28 Thread dflorey

It would be very cool if you could post a wiki page / posting how to
build OOPHM for Firefox 3.5 from trunk (branch?).

On Jun 8, 3:46 pm, John Tamplin j...@google.com wrote:
 On Sun, Jun 7, 2009 at 6:39 PM, Sam Gross colesb...@gmail.com wrote:
  The makefile in oophm-plugins-trunk references tools/gecko-sdks, but
  that directory isn't in the SVN repo.  Is there a plan to put it in
  tools?  It would be nice if we all used the same gecko sdks.  I
  assembled a version of 1.9.1 gecko sdk and would like to share it.

 There was varying opinions of where they should ultimately live, so for now
 they were just left in the OOPHM branch (and the changes I made to get it
 working on FC10/11 don't live anywhere in svn right now).

 In the early part of Q3 we will be working on productizing OOPHM and doing
 away with legacy hosted mode, so it will be cleaned up then.

 --
 John A. Tamplin
 Software Engineer (GWT), Google
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: DockLayoutPanel

2009-06-26 Thread dflorey

That sounds really great. I've spent many hours to get this done but
ended up with the WindowResizeListener approach.
Do you delegate the size to child panels in case of resize? I've had
trouble nesting stack panels and gwt-maps inside resizable panels (HSP/
VSP).

On Jun 15, 9:11 pm, Joel Webber j...@google.com wrote:
 Yes, and yes. I've got it working, though I'm still not 100% happy with the
 API, as I mentioned earlier. Now I'm trying to actually back into a design
 document :)
 As a small teaser, the basic approach is to take advantage of the simple
 constraint system (probably accidentally) created by CSS like this:

 .rule {
   position: absolute;
   left: 0; right: 0;
   top: 0; bottom: 0;

 }

 You can create various constraints by mixing pairs of values, like {left,
 right}, {left, width}, and {right, width}. You can also use any units you
 want, which is great for dealing with font-size changes and the like. It's
 actually not too far from what you get from the mac's InterfaceBuilder.

 There's a bit more magic to make it deal properly with arbitrary margin,
 border, and padding, and IE6 support is really hard, but does finally work.



 On Mon, Jun 15, 2009 at 3:02 PM, Ray Cromwell cromwell...@gmail.com wrote:

  Joel,
   Does this support arbitrary composition (dockpanels containing
  dockpanels?) and does it work correctly with scrolling inside the
  panels?

  -Ray

  On Mon, Jun 15, 2009 at 11:53 AM, Joel Webberj...@google.com wrote:
   I'm still not 100% done with the API design, and a few edge-cases, but
  will
   announce on the lists as soon as I have something ready for everyone to
  try
   out. It uses a similar approach to the code in
   Wave, but is rather more general, and supports IE6 (which Wave doesn't).

   On Thu, Jun 11, 2009 at 5:41 PM, Bruce Johnson br...@google.com wrote:

   No, it's not checked in yet, but I think Joel might started a branch to
   land it before t long.

   It isn't literally the same code as in Wave, but it's logically
   equivalent. Joel can say a lot more about it than me.

   On Thu, Jun 11, 2009 at 5:36 PM, dflorey daniel.flo...@gmail.com
  wrote:

   Is the DockLayoutPanel presented at Google IO already in svn? The one
   that is being used by the wave client?
   I've not been able to find it...
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] DockLayoutPanel

2009-06-11 Thread dflorey

Is the DockLayoutPanel presented at Google IO already in svn? The one
that is being used by the wave client?
I've not been able to find it...
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Moving PagingScrollTable Friends to Trunk

2009-06-10 Thread dflorey

Hi,
I'd like to support this effort and would be glad if some of my
changes would make it into trunk:
- filters
- column types for most frequently used column types
(numbers,dates,text) including proper filtering, editing and sorting
capabilities
- simplified table generation ( see 
http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable
)

(TreeTable is not ready for prime time yet)

Daniel

On 10 Jun., 05:34, jay jay.gin...@gmail.com wrote:
 I saw the initial commit of these classes into your branch, but I
 haven't seen any additional commits. I'd love to take a look at the
 current direction, and see what other input I can provide.

 jay

 On Jun 9, 7:12 am, John LaBanca jlaba...@google.com wrote:



  We'll definitely keep these things in mind when moving stuff over to GWT
  trunk.  We've also found a lot of general usability problems, such as the
  fact the the table doesn't layout naturally, which means apps require active
  layout.  During the transfer, we'll refactor quite a few things to make them
  more usable.  Specifically, we'd like to provide a version that allows you
  to bulk renderer the header and footer into the same table element,
  eliminated the three separate tables and fixed layout.  You would lose the
  scrolling feature, but you would not have to use active layout.

  When we start moving stuff into trunk or while its in my branch (as in right
  now), thats a good time to point out specific problems or requests.  Its
  much harder to change the API after we make an official release.

  Thanks,
  John LaBanca
  jlaba...@google.com

  On Tue, Jun 9, 2009 at 5:01 AM, David david.no...@gmail.com wrote:

   Jay,

   We are experiencing the same ideas here. We store column ordering and
   widths on the server but we have no way of getting events in the UI to
   know when changes have been complete.

   wouldn't it be nice that the dnd was included as well, I could really
   use the DND of columns! Was it hard to implement ? We did not yet
   bother to investigate since we have to focus on getting functionality
   complete first.

   David

   On Tue, Jun 9, 2009 at 10:00 AM, jayjay.gin...@gmail.com wrote:

As I see that this has begun (yeah), I'd like to throw out a few
requests:

 * Please, please, please -- ensure that this is as extensible as
possible. Here's just one example--I've integrated the gwt-dnd library
to allow drag-n-drop re-ordering of columns. There are a couple of
funny corner cases, though, because I have no way of knowing when a
column resize has completed. Obviously, if you're resizing the column,
you're not interested in dragging it to a new location. I strongly
encourage you to think three, four, five times about making a method
private or package protected. Liberal use of JavaDoc with strongly
worded warnings to those of us who need to customize the widgets. I
know this cuts down on your ability to make under-the-cover changes
from release to release, but it makes it so that folks like me don't
have to resort to things like JSNI trickery or copying the entire
class or set of classes into our own code base.

 * As a direct follow up to #1, fire some more events. For example,
fire an event when a column resize starts and when it ends.

 * Flexibility is great, but often I'm just interested in the simple
cases...simple. My example here is the multiple-row header stuff. It's
GREAT! I LOVE it! (And better yet, our customers have been screaming
for this!) But, I don't always need/want it. And, it can make things
more complex. One idea would be to overload methods like getHeader()
on AbstractColumnDefinition...add a version that doesn't take a 'row'
parameter, and so just assumes there's only 1 row.

 * More use of generics, less casting (for me). Some examples:
   o AbstractColumnDefinition returns Object for the getHeader()
method. Why not declare this as class
AbstractColumnDefinitionRowType, ColType, HeaderType?
   o Rather than: public TableDefinitionRowType getTableDefinition
(), how about adding a TABLE_DEFINITION type to the class (e.g.,
class PagingScrollTableTABLE_DEFINITION extends
TableDefinitionRowType, so that the method could be declared as
public TABLE_DEFINITION getTableDefinition()?

I apologize if I'm being overly simplistic or if I'm asking too much.
I definitely apologize for not following up my suggestions with
proposed patches. And I sincerely hope that my suggestions are taken
only as the most positive form of feedback possible. I LOVE GWT. We've
bet our company on the fact that GWT is *the* best way for writing the
kind of interactive and rich apps our users are demanding. I want to
do whatever I can (with my limited time outside of my job) to help
make this toolkit even better.

Thanks!

jay
--~--~-~--~~~---~--~~

[gwt-contrib] Re: ImmutableResourceBundle deprecated, move to ClientBundle

2009-04-14 Thread dflorey

Good news! Are there plans to consolidate ClientBundle and i18n
messages  constants?
It would be very nice to have a single bundle for all resources of a
widget to streamline the widget cusomization.

On 14 Apr., 01:55, BobV b...@google.com wrote:
 I've deprecated the public ImmutableResourceBundle interfaces in the
 incubator project to encourage users to migrate to the ClientBundle
 series of interfaces that are now part of GWT trunk.  The IRB code in
 the incubator project will not be removed for the foreseeable future,
 but all future development will take place in trunk.

 A summary of the user-visible changes is in the following wiki page:
  http://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Migrati...

 ClientBundle and IRB can be compiled into the same module, however the
 data-types are not generally interchangeable, nor will a hybrid
 approach necessarily yield optimal results.  If you have any
 significant difficulties migrating your code base from
 ImmutableResourceBundle to ClientBundle, let me know.

 --
 Bob Vawter
 Google Web Toolkit Team
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Code Review: ValueSpinner, inject style only once

2009-03-03 Thread dflorey

lgtm

As I'm not working on the incubator trunk it may take some time for me
to commit the patch. Anybody else?

Daniel

On 2 Mrz., 14:35, Uwe Maurer uwe.mau...@google.com wrote:
 Hi,

 I noticed that the ValueSpinner has code in the constructor which
 injects the style (default or user provided).
 This means it gets injected everytime a ValueSpinner is created.

 This patch changes this so that the default style only gets injected once.

 Also it changes from KeyboardListener to KeyPressHandler, and the new
 mouse handlers.

 Thanks,
 Uwe

  spinner.txt
 11KAnzeigenHerunterladen
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Why MenuBar widget do not have a setHorizontalAlignment or setVerticalAlignment method?

2009-01-20 Thread dflorey

It would be very nice if we could add widgets to MenuItems instead of
using setting html. This would make formatting of custom menu items a
lot easier.
I just tried to add menu items that display text + an aligned image
and it took some time to find out how to do that (nesting a table).


On Jan 20, 4:26 pm, John LaBanca jlaba...@google.com wrote:
 The fact that MenuBar uses a table to render itself is just an
 implementation detail, and sometimes we abstract away the DOM implementation
 of a widget.  Personally, I think adding a setHorizontal/VerticalAlignment()
 would be a little confusing because people might assume it would set the
 alignment of the widget itself (as in position to widget) as opposed to
 setting the alignment of the MenuItems in the cells.  There are other table
 based widgets that do not have these methods for the same reason, such as
 StackPanel.  Also, you can always set styles in code using the Element
 methods:

 myMenu.getElement().getStyle().setProperty(name, value);



 Still, I'll be interested to see what other contributors think.  Maybe there
 is a use case for this method in other widgets as well.

 Thanks,
 John LaBanca
 jlaba...@google.com



 On Mon, Jan 19, 2009 at 12:50 PM, jack.yang jackyang0...@gmail.com wrote:

  Since this widget is a Div which contains a Table, why it do not have
  a method to set its cell alignment? This is not the only widget which
  consists of a table but do not have a method to set alignment.

  I think this is not a good design. For some widget developers set
  alignment by code while for others they can only set alignment using
  CSS.
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Why do DateBox.Format.parse() and format() need DateBox?

2009-01-13 Thread dflorey

Seems to be a matter of taste ;-)
If parse() and format() should be capable of sophisticated error
handling (like triggering a popup to show the error or whatever) I'd
prefer to simply implement them as protected methods in DateBox +
passing DateTimeFormat to cstr instead of Format interface and let
user customize the behaviour by subclassing DateBox.
I just wanted to report that it looked strange to me at first sight
and as I'm totally average this also could confuse others...

On Jan 13, 5:36 pm, Ray Ryan rj...@google.com wrote:
 DateFormat isn't just a parser, nor even mainly a parser. It lets you
 customize the display of your datebox in response to bad input. And because
 we pass DateBox in as a parameter, your DateFormat can be a shared
 flyweight.
 rjrjr



 On Tue, Jan 13, 2009 at 8:08 AM, dflorey daniel.flo...@gmail.com wrote:

  Hi,
  I'm for the first time using the new 1.6 DateBox.Format feature and I
  wonder why I have to pass a DateBox to the format() and parse()
  methods.
  The DateBox is used in the parse method to display parsing errors.
  I would prefer to let parse() throw an IllegalArgumentException when
  parsing fails and catch this exception in the enclosing parseDate()
  method. This would clean up the DateBox.Format interface.

  If you agree I can provide a tiny patch...

  Cheers,
  Daniel
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Why do DateBox.Format.parse() and format() need DateBox?

2009-01-13 Thread dflorey

I know this is nitpicking, but some comments inline

On Jan 13, 6:53 pm, Emily Crutcher e...@google.com wrote:
 Daniel,

      You have some good points and what you are describing is almost exactly
 the date box we initially had in gwt-incubator.  We ran into a few
 significant problems  that made us change to the current design:

    1. DateTimeFormat represents a very sophisticated API,  it was difficult
    for users to replace the formatting/parsing of dates because, to do so they
    needed to understand the internals of the date time format class.

I don't see the difference. If we would get rid of the Format
interface we would end up with 3 cstrs:
DateBox() = same as now
DateBox(Date date) = same as above, but with initial date set
DateBox(DatePicker dp, Date date, DateTimeFormat format) = for
advanced users that want to specify the format

It's even simpler than it is now where I have to write
new DateBox(new DatePicker(), new Date(), new DefaultFormat
(DateTimeFormat.getShortDateFormat()) to change the format instead of
new DateBox(new DatePicker(), new Date(),
DateTimeFormat.getShortDateFormat())


    2. The most desirable default parsing behavior was a hybrid between a
    DateTimeFormat + a fall back to the browser's own parsing algorithms, this
    could not be cleanly modeled using just the DateTimeFormat.

Where can I find this browser's own parsing algorithms in the current
code?

    3. When we used a template method to allow users to override the error
    reporting for date box, we still got a lot of people not finding it, as the
    typical users looked for a setter of some flavor.


I guess for 99% of usecases the default behaviour of applying an error
style to the date box is sufficient. The 1% of usecases that want to
do more sophisticated error handling should be able to override the
parse() method and catch the exception.
If I want to do my own error handling right now I have to:
Implement my own Formatter or subclass DefaultFormat anyway and
implement/override the parse method and I don't see why this is any
better than just subclassing DateBox.





 On Tue, Jan 13, 2009 at 11:49 AM, dflorey daniel.flo...@gmail.com wrote:

  Seems to be a matter of taste ;-)
  If parse() and format() should be capable of sophisticated error
  handling (like triggering a popup to show the error or whatever) I'd
  prefer to simply implement them as protected methods in DateBox +
  passing DateTimeFormat to cstr instead of Format interface and let
  user customize the behaviour by subclassing DateBox.
  I just wanted to report that it looked strange to me at first sight
  and as I'm totally average this also could confuse others...

  On Jan 13, 5:36 pm, Ray Ryan rj...@google.com wrote:
   DateFormat isn't just a parser, nor even mainly a parser. It lets you
   customize the display of your datebox in response to bad input. And
  because
   we pass DateBox in as a parameter, your DateFormat can be a shared
   flyweight.
   rjrjr

   On Tue, Jan 13, 2009 at 8:08 AM, dflorey daniel.flo...@gmail.com
  wrote:

Hi,
I'm for the first time using the new 1.6 DateBox.Format feature and I
wonder why I have to pass a DateBox to the format() and parse()
methods.
The DateBox is used in the parse method to display parsing errors.
I would prefer to let parse() throw an IllegalArgumentException when
parsing fails and catch this exception in the enclosing parseDate()
method. This would clean up the DateBox.Format interface.

If you agree I can provide a tiny patch...

Cheers,
Daniel

 --
 There are only 10 types of people in the world: Those who understand
 binary, and those who don't
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Code review request, Creating gen2 versions of Time and Date Spinner to use the new 1.6 datepicker and event system

2009-01-05 Thread dflorey

btw: Why is the datepicker in a separate package and why is this
package not located under user/client/ui?
It looks very strange to me that the datepicker package is currently
on the same level as server, theme and tools...

On 4 Jan., 18:37, dflorey daniel.flo...@gmail.com wrote:
 Hi Emily,
 Happy new year to all of you! I've been suffering from a real-world
 virus but hope to fully recover soon...
 I just upgraded my branch to the latest revision and tried to have a
 look at your port. The actual TimePicker looks good to me, but when
 testing the new 1.6 DateBox I struggled to add a ValueChangeHandler.
 The onValueChange method is never called. As far as I can see all
 the events fired by the DatePicker and the TextBox are consumed by the
 DateBoxHandler, but they will not fire a valueChangeEvent on the
 DateBox as the setValue method will be called with fireEvent=false.
 Once this is fixed I'd like to implement a TimeBox similar to DateBox
 but using a more usefull TimePicker 
 (seehttp://code.google.com/p/google-web-toolkit-incubator/issues/detail?i...
 )

 Cheers,
 Daniel

 On 30 Dez. 2008, 18:33, Emily Crutcher e...@google.com wrote:

  Dear Daniel,
      I hope you are having a great holiday. I've added a gen2 version of
  TimePicker and DatePickerPicker in a new com.google.gwt.gen2.picker package.
   It now depends upon the gwt 1.6 date picker and event system.  If you could
  review my changes and make any more you deem appropriate, that would be
  great!
          Thanks,

                  Emily

  Change 
  link:http://code.google.com/p/google-web-toolkit-incubator/source/detail?r...

  There are only 10 types of people in the world: Those who understand
  binary, and those who don't
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: gen2 tables: Create TableDefinition based on annotations

2008-12-11 Thread dflorey

Any ideas why this is not working in compiled mode?
I'm aware that my approach may be violating the generator approach but
it would be interesting to know why it fails.
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: gen2 tables: Create TableDefinition based on annotations

2008-11-28 Thread dflorey

Uuups, only working in hosted mode :-(

On 27 Nov., 13:07, dflorey [EMAIL PROTECTED] wrote:
 Hi,
 I've used that Generator stuff in gwt for the first time and I've to
 admit that it is really cool!
 I've been using it to simplify the creation of model based gen2-
 tables. Instead of defining the TableDefinition programmatically you
 now have the alternative to do it with annotations in your domain
 class.
 Example:

 public static class Ancestor extends AbstractTreeTableItem implements
 RowValue {
   private String firstName, lastName;
   private double iq;
   private Date dateOfBirth;

    public Ancestor(String firstName, String lastName, int iq, Date
 dateOfBirth) {
     this.firstName = firstName;
     this.lastName = lastName;
     this.iq = iq;
     this.dateOfBirth = dateOfBirth;
   }

   @ColumnDefinition(column = 0, header = First name, filterable =
 false)
   public String getFirstName() {
     return firstName;
   }

   @ColumnDefinition(column = 1, header = Last name)
   public String getLastName() {
     return lastName;
   }

   @ColumnDefinition(column = 2, header = IQ, numberFormat =
 NumberColumnFormat.SCIENTIFIC_FORMAT)
   public double getIq() {
     return iq;
   }

   @ColumnDefinition(column = 3, header = Date of birth,
 dateTimeFormat = DateColumnFormat.SHORT_DATE_FORMAT)
   public Date getDateOfBirth() {
     return dateOfBirth;
   }

   @Override
   public String getDisplayName() {
     return firstName +   + lastName;
   }

   @Override
   public String getId() {
     return firstName + lastName + dateOfBirth;
   }

 }

 Note that you have to implement the RowValue marker interface. Now you
 are ready to create your TableDefinition like this:

 TableDefinitionAncestor tableDefinition = GWT.create
 (Ancestor.class);

 Very cool! Thanks for this brilliant toolkit!!
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: gen2 TreeTable demo online

2008-11-26 Thread dflorey

Hi,
try it like this:
1. Collapse the tree (=close all tree nodes with the button in the
left bottom corner)
2. enter value inti iq-filter
3. select operator (=, !=,  ,  etc.)

In tree view the filter applies only to the root elements.

If you want to filter all items switch to table view.

Hope this helps,

Daniel

On 25 Nov., 14:57, ANDRES BRUN [EMAIL PROTECTED] wrote:
 Hi Daniel
 I was testing the filters but, IQ Don't works, I put it on the field, the
 117 number and nothing happened, all fields are blanking.

 how works?

 Please, sorry if don't work like that, and let me know the way.

 Thanks.



 On Tue, Nov 25, 2008 at 8:33 AM, dflorey [EMAIL PROTECTED] wrote:

  Hi Bruce,
  have you seen that you can easily navigate to the parent node by
  clicking on one of the dotted lines (links) on the left hand side of
  the leaf?
  My major issue concerning usability is the filtering... Should we only
  filter top level items (as it is implemented right now) or shall the
  filter be applied to children. And if yes, how to display the result?

  On 25 Nov., 14:10, Bruce Johnson [EMAIL PROTECTED] wrote:
   Looks cool, Daniel. I do have a question about its basic usability,
  though.
   It seems that the combination of tree + paging is a recipe for end-user
   confusion. When you open a tree item with lots of children then advance
  to
   the next page, you see the children, but lose context on what its parents
   are.
   Anyone have thoughts on how we could address that?

   On Mon, Nov 24, 2008 at 7:09 AM, dflorey [EMAIL PROTECTED]
  wrote:

Hi,
I've put together a live demo for the TreeTable stuff in my branch.
You can find the demo link in the wiki page that I've created
containing a minimalistic tutorial:

   http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable

As you can see from the demo I've simplified the table creation by
adding header information to the column definitions, providing typed
column definitions with proper filtering, sorting and editing.
The tables can now handle implicit data and header table creation, so
creating a TreeTable is now as simple as can be.
I've migrated the ImageBundles to ImmutableResourceBundle, localized
the strings by using i18n Messages and used CssResource for styling.
I've moved all classes required both on client and server side to the
share subpackage and added an ant task to create the gwt-incubator-
servlet.jar containing these classes.

Any feedback is welcome!

 --
 Un Saludo

 ANDRES BRUN
 -
 WebSite Andres Brunhttp://www.andresbrun.tk
 Blog -http://doyan2007.blogspot.com/
 WebSitehttp://prolinetsystems.tk
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: gen2 TreeTable demo online

2008-11-25 Thread dflorey

Yep, this seems to be a good idea! I'll add this as an option to the
tree.
As I still would like to keep the number of items per page limited I'd
propse to present the child when expanded like this (pagesize=5):
- Numbers - Integers ...
- ...more (click to collapse)
- 56
- 57
- 58
- ...more



On 25 Nov., 15:57, Bruce Johnson [EMAIL PROTECTED] wrote:
 On Tue, Nov 25, 2008 at 8:33 AM, dflorey [EMAIL PROTECTED] wrote:

  Hi Bruce,
  have you seen that you can easily navigate to the parent node by
  clicking on one of the dotted lines (links) on the left hand side of
  the leaf?

 I see that it works, but it still doesn't really address the general
 question of giving the user a clear sense of context.

 It seems like this would be better as an infinite scroll to achieve the
 effect of on-demand loading without forcibly breaking things across pages.
 If there happened to be a really large number of children for a tree item,
 perhaps we could introduce a notion of an ellipsis in the child list, like
 this:

 - Numbers
 --- Integers
 - 1
 - 2
 - ... (click to show all)
 - 99
 - 100

 That way, you could keep the hierarchical context for easy skimming of the
 overall structure, yet the user can drill down explicitly when they have
 enough of an idea about where they want to look. It's sort of like cold
 folding in IDE.
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] gen2 TreeTable demo online

2008-11-24 Thread dflorey

Hi,
I've put together a live demo for the TreeTable stuff in my branch.
You can find the demo link in the wiki page that I've created
containing a minimalistic tutorial:

http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable

As you can see from the demo I've simplified the table creation by
adding header information to the column definitions, providing typed
column definitions with proper filtering, sorting and editing.
The tables can now handle implicit data and header table creation, so
creating a TreeTable is now as simple as can be.
I've migrated the ImageBundles to ImmutableResourceBundle, localized
the strings by using i18n Messages and used CssResource for styling.
I've moved all classes required both on client and server side to the
share subpackage and added an ant task to create the gwt-incubator-
servlet.jar containing these classes.

Any feedback is welcome!
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: gen2 TreeTable demo online

2008-11-24 Thread dflorey

BTW: Right now the filters are only applied to the top level elements.
I've tried other approaches but with confusing results for the user.
Any suggestions how to apply the filters to children are welcome!
I had the idea to add a chainsaw icon to the TreeController that will
flatten the tree to a normal ScrollTable. Filtering could be applied
to the flattened result and when switching back to tree view the
selection could be kept. But this is not very intuitive...


On 24 Nov., 13:09, dflorey [EMAIL PROTECTED] wrote:
 Hi,
 I've put together a live demo for the TreeTable stuff in my branch.
 You can find the demo link in the wiki page that I've created
 containing a minimalistic tutorial:

 http://code.google.com/p/google-web-toolkit-incubator/wiki/TreeTable

 As you can see from the demo I've simplified the table creation by
 adding header information to the column definitions, providing typed
 column definitions with proper filtering, sorting and editing.
 The tables can now handle implicit data and header table creation, so
 creating a TreeTable is now as simple as can be.
 I've migrated the ImageBundles to ImmutableResourceBundle, localized
 the strings by using i18n Messages and used CssResource for styling.
 I've moved all classes required both on client and server side to the
 share subpackage and added an ant task to create the gwt-incubator-
 servlet.jar containing these classes.

 Any feedback is welcome!
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: When to use Serializbale / IsSerializable

2008-11-21 Thread dflorey

So is it an option to let IsSerializable extend the Serializable
marker interface?

On 21 Nov., 16:16, John LaBanca [EMAIL PROTECTED] wrote:
 That's a good question, and I has to ask around myself.  Here is the best
 explanation:

 In early versions of GWT, IsSerializable was the *only* way you could mark
 a class as serializable by the RPC subsystem. The theory was that Java's
 Serializable interface implied semantics that GWT simply couldn't implement
 (readObject(), writeObject(), etc), so it was better to be absolutely clear
 that it wasn't precisely the same as Java Serializable. We were eventually
 convinced otherwise by many people who had existing POJOs that implemented
 Serializable and *didn't* require these specialized semantics, and really
 wanted it to work out of the box. So we added support for both.

 So based on this, IsSerializable may be deprecated at some point in favor of
 Serializable.  In the meantime, we run into these unfortunate cases where
 you want a class to extent either IsSerializable or Serializable, but there
 is no way to specify that in Java.

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]

 On Thu, Nov 20, 2008 at 6:34 AM, dflorey [EMAIL PROTECTED] wrote:

  I don't know if it's the only place where this question comes up, but
  right now the SerializableResponse from the table model requires its
  wrapped row values to implement the IsSerializable interface.
  So every row value object that implement Serializable (and as such can
  be serialized) cannot be used in SerializableResponse as long as it
  will not extend the IsSerializable interface.
  When using Serializable instead the same problem will arise with
  classes implementing IsSerializable.
  Any ideas?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: CssResource question on nested styles

2008-11-21 Thread dflorey

It was me ;-)

On 21 Nov., 20:03, dflorey [EMAIL PROTECTED] wrote:
 I'm currently struggeling to apply a simple rule (just an example)
 like the following using CssResource:

 .headerTable td {
  font-size: 10px;

 }

 Before spending more time on this I'd like to know if the style name
 obfuscating might be the reason why this is not working properly (or
 is it me??) ?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] CssResource question on nested styles

2008-11-21 Thread dflorey

I'm currently struggeling to apply a simple rule (just an example)
like the following using CssResource:

.headerTable td {
 font-size: 10px;
}

Before spending more time on this I'd like to know if the style name
obfuscating might be the reason why this is not working properly (or
is it me??) ?


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



[gwt-contrib] Re: Code review on date picker branch to date

2008-11-20 Thread dflorey

Comment on DateBox:
Would be cool if there would be a way to get the value of the DateBox.
Right now I struggle to find a way to listen to value changes and get
the value afterwards.
I tried to listen to DatePicker and TextBox changes, but it's very
complicated to find the proper value there.
Proposal: Add ChangeListener support and add a Date getValue()
method.

On 20 Nov., 04:26, Ray Ryan [EMAIL PROTECTED] wrote:
 General comments

 It seems like there is a lot of overlap between DatePicker and CalendarView.
 Should the methods in DatePicker that are redundant with CalendarView
 methods be stricken, given DatePicker#getCalendarView? Or, should
 getCalendarView perhaps go away, or become protected or package--is it
 really useful/safe for clients to talk to it directly?

 ElementMapper.java

 We need ElementMapperTest

 The param type MappedType should be a single letter, perhaps U

 What's going on Iterator#remove? This class claims to work on UIObjects, but
 here you are casting to Widget and asserting that parent is an HTMLTable.

 CalendarModel.java

 We need CalendarModelTest

 So this class has the notion of the current date shared by the various
 moving parts, and it does formatting, yes? Could punch up its javadoc to
 that effect.

 What is that no-op refresh() method there for?

 DatePicker.java

 1. It's confusing that there is a CalendarView named calendar, and a
 CalendarModel named model. I'd expect the view to be named view, and the
 model to be named calendar.

 2. It seems like many fields here could be final.

 3. The Css interface is protected, but I though we were going to make it
 private, or at least package protected. It is also featured in a ton of
 public methods and constructors. That's no good.

 If it does wind up staying visible, having a public static setDefaultCss
 method is a bad idea. Allowing it to be overridden per instance is plenty.

 4. getDateShown() is implemented as getModel().getCurrentMonth(). Isn't that
 a bug? If not, shouldn't the method be called getMonthShown()?

 5. It seems like these methods:

   public final void addStyleToVisibleDate(Date visibleDate, String
 styleName) {
     calendar.addStyleToDate(visibleDate, styleName);
   }

   public final void addStyleToVisibleDates(IterableDate visibleDates,
       String styleName) {
     getCalendarView().addStyleToDates(visibleDates, styleName);
   }

 could instead be

   public final void addStyleToVisibleDates(String styleName, Date...
 visibleDates) {
     addStyleToVisibleDates(styleName, Arrays.asList(visibleDates));
   }

   public final void addStyleToVisibleDates(String styleName, IterableDate
 visibleDates) {
     getCalendarView().addStyleToDates(visibleDates, styleName);
   }

 Even if not, why is one using calendar and the other using
 getCalendarView()?

 And note that the remove method is not parallel to these--there is only one.

 6. getHighlightedDate() javadoc should explain diff between selected and
 highlighted. class doc should probably do the same.

 7.  getGlobalStyleOfDate() What is a global style? Is this a GWT wide
 concept? If not, needs explicating.

 8. showDate() Need to explain how this differs from setValue(), and link
 between the two methods.

 9. What is the package private setModel(CalendarModel) needed for?

 10. Some methods are final, and some aren't. It seems very arbitrary. And we
 should be documenting final methods to explain why.

 11. This seems harsh (the assert, I mean):

   public final void setEnabledOnVisibleDate(Date date, boolean enabled) {

     assert isDateVisible(date) : date

         +  cannot be enabled or disabled as it is not visible;

     getCalendarView().setDateEnabled(date, enabled);

   }

 What happens if they disable a date, the user scrolls it away, and then
 scrolls it back? Do they have to listen for these scroll events and then
 reapply the disables? Is this a method people actually asked for, can we get
 rid of it?

 12. setAllowableDates says it is not yet implemented for the default case.
 Why is it here, then?

 DateBox.java

 1. Constitutent fields (box, picker, popup) should be final

 DefaultMonthSelector.java

 JavaDoc says that it is not part of the public API. If it's a public class
 and can be used as an arg to a protected constructor, it's public, let's be
 honest here. Perhaps you meant not extensible? As for please feel to copy
 it..., that's a pretty severe mixed message.

 I don't really see what we're gaining by encouraging people to copy it and
 then claiming that it's not public and subject to change. If they copy it,
 we will break them. We're providing a protected constructor that accepts
 this. That's public api. We need to make up our minds--providing your own
 CalendarView and MonthSelector is supported, or it isn't.

 MonthSelector.java

 More of the same. This class contributes basically nothing. We're trying to
 allow custom MonthSelector and at the same time trying to avoid it. We need
 to make up our minds.

[gwt-contrib] Re: Proposal: Extracting gwt-incubator-servlet.jar

2008-11-20 Thread dflorey

I'd like to put the classes wrapped into TableModelHelper into the new
shared package as they are required both on client and server side.

On 19 Nov., 19:20, John LaBanca [EMAIL PROTECTED] wrote:
 TableModelHelper is a temporary class that works around an eclipse compiler
 bug that has been fixed but isn't in an official eclipse release yet.  The
 bug shows up in our RPC generator when you try to pass a Request or Response
 object over RPC.  We'll combine TableModelHelper back into TableModel once
 the next Eclipse version is officially released and people have time to
 switch to it.

 GWT issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=2731

 Eclipse issue:https://bugs.eclipse.org/bugs/show_bug.cgi?id=243820

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]

 On Wed, Nov 19, 2008 at 11:22 AM, dflorey [EMAIL PROTECTED] wrote:

  While I've been moving TableModelHelper to shared I was wondering why
  this class is needed.
  From my point of view it is only a container for all rpc relevant
  classes.
  I'm a big fan of not producing too many classes but I'd prefer to make
  the nested classes top level classes.
  Eclipse fails to organize imports with these nested classes, but that
  is just one reasone behind it.
  What do you think?
  I'll move them to top level in my branch to see what happens...

  On 19 Nov., 17:00, Emily Crutcher [EMAIL PROTECTED] wrote:
   Thanks!

   On Wed, Nov 19, 2008 at 10:39 AM, dflorey [EMAIL PROTECTED]
  wrote:

I've just seen that there are already server and shared packages in
the logging lib.
So we need a shared package for the tables containing:
Request, Reponse, SerializableResponse, ColumnSortInfo,
ColumnSortInfoList (and maybe some others I've missed).
I'll create an ant task in my branch to see if I manage to strip down
a gwt-incubator-servlet.jar

On 19 Nov., 15:28, Emily Crutcher [EMAIL PROTECTED] wrote:
 That sounds like a great idea.  Could you create a list of classes
  you
think
 should be either
   a) moved to the new gwt-incubator-servlet.jar
   b) copied to the new gwt-incubator-servlet.jar

 and send it out to the group?

 On Wed, Nov 19, 2008 at 5:49 AM, dflorey [EMAIL PROTECTED]
wrote:

  Hi,
  some of the incubator classes are required on the server side
  (especially the table request  response, sort info classes etc.)
  I've read somewhere that these classes should be placed in a
  shared
  package.
  No clue if it causes trouble to move the serializable classes to
  such
  a package (as they are right now in the TableModelHelper class
  because
  of eclise compiler issues) but if possible I'd vote for extracting
  these classes into a gwt-incubator-servlet.jar.

 --
 There are only 10 types of people in the world: Those who understand
 binary, and those who don't

   --
   There are only 10 types of people in the world: Those who understand
   binary, and those who don't
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Proposal: Add Constants and Message resources to ImmutableResourceBundle

2008-11-20 Thread dflorey

It would be cool if someone (bobv) could implement the following ;-)

ImmutableResourceBundle right now offers all that is needed to bundle
the required resources for a widget - except localized constants and
messages.
It would be perfect it the functionality currently provided in the
i18n module would be available in the ImmutableResourceBundle.

Ok, this is only imagination based on the user perspective, but this
is how it could look like:


  /**
   * All resources used by tree table
   */

@DefaultLocale(en_US)
public interface TreeTableResources extends ImmutableResourceBundle {
  /**
   * The css file.
   */
  @Resource(com/google/gwt/gen2/widgetbase/public/TreeTable.css)
  Css css();

  @Resource(treeClosed.gif)
  ImageResource treeClosed();

  @Resource(treeOpen.gif)
  ImageResource treeOpen();

  @Resource(filename)
  StringResource hello();

  @Resource(filename)
  @DefaultText(You have {0} widgets)
  @PluralText({one, You have one widget)
  StringResource widgetCount(@PluralCount int count);
}

A StringBundleBuilder needs to collect all the defined StringResources
and grab the content from a propertyfile to generate the appropriate
class.

No idea if this is possible to implement as I've never touched the
generator part of gwt, but from a users perspective this would be
cool.
We could simple pass an instance of this ImmutableResourceBundle to a
widget to completely customize its appearance.
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Proposal: Add Constants and Message resources to ImmutableResourceBundle

2008-11-20 Thread dflorey

StringResource interface could be just toString()
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Proposal: Add Constants and Message resources to ImmutableResourceBundle

2008-11-20 Thread dflorey

BTW: Does ImmutableResourceBundle i18n work for ImageResources?

On 20 Nov., 20:35, dflorey [EMAIL PROTECTED] wrote:
 StringResource interface could be just toString()
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Proposal: Add Constants and Message resources to ImmutableResourceBundle

2008-11-20 Thread dflorey

On 20 Nov., 20:48, BobV [EMAIL PROTECTED] wrote:
   Adding new resource types is done by defining a new interface that
 derives from ResourcePrototype and annotating that new resource with
 an @ResourceGeneratorType annotation.  Take a look at TextResource as
 an example of a simple resource type.

   In the simplest case, you could define a new resource type that just
 returns an instance of a Messages or Constants.

 @ResourceGenerator(MessageResourceGenerator.class)
 interface MessageResourceT extends Messages extends ResourcePrototype {
   public T get();

 }

But how do I get all the annotation magic from the i18n Message or
Constant generation?
Once I have time I'll dig into all of this.

 On Thu, Nov 20, 2008 at 2:38 PM, dflorey [EMAIL PROTECTED] wrote:
  BTW: Does ImmutableResourceBundle i18n work for ImageResources?

 It should.  If it doesn't, that's a bug.

 --
 Bob Vawter
 Google Web Toolkit Team
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



  1   2   >