Do Google Web Toolkit's touch events support Windows tablets?

2020-07-27 Thread Andy Langer
Hi all. Currently working on a webapp using GWT. I currently have a feature 
working with touch events on a Canvas. The feature itself works perfectly 
fine on every device but windows tablets (surface pro). Is there something 
special I have to do for this, or does GWT have no way of doing this?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/940db851-82c2-4f1a-99b8-8ef653d1dadao%40googlegroups.com.


Re: GWT 2.9.0 release

2020-05-13 Thread Andy Stevko
Congratulations!

On Wed, May 13, 2020 at 8:40 PM Colin Alworth  wrote:

> Today we are pleased to announce the next release of GWT, version 2.9.0.
> Some highlights of this release:
>  * GWT supports Java 9, 10, 11 language features.
>  * The elemental2 1.0.0 release is supported, along with
> jsinterop-annotations 2.0.0 (except @JsAsync, which requires dropping
> support for older browsers, and @JsEnum, which assumes closure-compiler
> semantics, so isn't appropriate for GWT2), bringing GWT2 in line with J2CL.
> Since this is now an official stable release of elemental2, the JSNI-based
> elemental that is included with GWT is deprecated, and will be removed in a
> future release.
>  * The release was tested on a variety of operating systems, on Java 8,
> 11, and 14. Java 7 is no longer officially supported, and future builds
> will be compiled for Java 8 as the minimum required version.
>
>
> Starting shortly after this release, we're going to be changing the
> release process slightly - there will be more frequent dated releases
> (something like 2.9-20200701) that occur every few months, and minor/bug
> fix releases that happen intermittently to signify that a more lengthy
> manual testing and acceptance process has taken place. The idea is that
> with more frequent releases, changes will make their way faster to the
> developers that want them, while for others, more heavily tested releases
> for maintenance-mode projects will still be available.
>
> We'll also be talking soon on the contributors list about the upcoming
> releases of individual projects that represent the various modules found in
> gwt-user.jar, updated and tested for use in either GWT2 or J2CL.
>
> We're experiencing some issues in updating the gwtproject.org website,
> but to get this release out while that is managed, find the zip download
> and the release notes below. Maven/Gradle/Ivy users, just update the GWT
> SDK versions to 2.9.0 - the various plugins will be updated as needed in
> the coming days.
>
> GWT SDK zip download:
> https://storage.googleapis.com/gwt-releases/gwt-2.9.0.zip
>
> 
>
> Release Notes for 2.9.0:
>
> Highlights
>
>- Able to compile projects with jsinterop-base 1.0.0, elemental2
>1.0.0, and jsinterop-annotations 2.0.0. With the exception of @JsAsync and
>@JsEnum, this brings GWT2 to be compatible across these tools with J2CL.
>- Added support for Java language levels 9, 10, and 11.
>- Officially, support is dropped for running the GWT compiler or
>server-side tooling on Java 7. The GWT distribution is still compiled to
>run on Java 7 for this release, but no guarantees are made about whether or
>not this will work. Future versions will compile bytecode for Java 8+. The
>release was tested and found to work cross platform when run with Java 8,
>11, and 14.
>
>
> Deprecations
>
>- Elemental has been officially deprecated - it is still included in
>this release, but may not appear in future releases. Instead, we encourage
>the use of the Elemental2 libraries, which are compatible with both GWT2
>and J2CL.
>- Removed NoSuchMethodException emulation.
>
>
> Bug fixes
>
>- Fixes Arrays.binarySearch semantics for float[] and double[]
>- Adds Support multi-line messages in errors/exceptions
>- Adds shutdown hook in DiskCache to clean up temp files
>- Cache Gecko version to lower CPU usage on FireFox
>- Do not assume that "this" is always non null.
>- Updates globals for Firefox version 60.0.2, Chrome 66.0.3359.45
>- Fixes String.regionMatches.
>- Native JsMethods allowed to coexist with implementations with the
>same name.
>- Make sure lambdas box, unbox and insert erasure casts when necessary.
>- Negative zero treated properly in Double/Float.compare()
>
>
> Miscellaneous
>
>- Updates CLDR to version 34.
>- Arrays now implement Cloneable
>- Link backing errors together with a cause attribute, start tracking
>suppressed errors in addition to the cause in underlying error object.
>- Add AtomicReference to gwt/emul.
>- Propagate script nonces via ScriptInjector
>- Add partial emulation for ExecutorService and
>ScheduledExecutorService
>- Emulate java.util.concurrent.Flow
>- Emulate javax.annotation{,.processing}.Generated
>- Make sure "goog.global" is $wnd if not defined.
>- Add when-linker-added element definition
>- Add Reader and StringReader emulation.
>- Remove GWT version check.
>- Do not show "unusable-by-js" warning for synthetic methods.
>- Update unmodifiableList to throw on Java8 methods.
>- Disable DataflowOptimizer by default and emit a warning when used
>
> For more detail, see the commit log
> .
>
>
> 
>
> Finally, if you haven't already done so, please join the very active GWT
> discussions happening at https://gitter.im/gwtproject/gwt!
>
> --
> You received this 

Re: Debugging question

2017-06-29 Thread Andy Stevko
name_0_g$ has the signature of an object member variable. Sounds like you
have an initialization problem with one of your classes.



On Jun 29, 2017 7:55 AM, "Harry Wagner"  wrote:

Some progress. The unresponsiveness is due to a breakpoint being taken due
to an umbrella exception. I found this on the debugger tab of Safari's
developer tools.

Exception with thrown value: Error:
com.google.web.bindery.event.shared.UmbrellaException:
Exception caught: (TypeError) : undefined is not an object (evaluating
'name_0_g$')

I've no idea what is causing the exception and am still looking for a stack
trace.


On Thursday, June 29, 2017 at 7:46:12 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Thursday, June 29, 2017 at 1:41:08 PM UTC+2, Harry Wagner wrote:
>>
>> I mean that the SplitLayoutPanel's splitter no longer works, nor the
>> page's HTML links. It works if I comment-out the code that displays the
>> dialog box.
>>
>
> It might be that there's a transparent element that covers them/everything
> and "eats" the mouse events. You'd have to chase where it comes from and
> why it doesn't go away (hopefully the div's attributes –e.g. class=""– will
> hint in the right direction).
>
-- 
You received this message because you are subscribed to the Google Groups
"GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

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


Re: what is xml 'is' attribute

2016-04-04 Thread Andy Stevko
TY :)

On Mon, Apr 4, 2016 at 1:45 PM, Jens  wrote:

> Its not an UiBinder construct because within a HTMLPanel (which the
> example uses as root) everything is treated as HTML unless its a UiBinder
> tag. So what you are seeing in the example is plain HTML with Polymer
> extensions like the "is" attribute.
>
> You can read that up at:
> https://www.polymer-project.org/1.0/docs/devguide/registering-elements.html
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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: Are there any currently developed GWT Widget Libraries?

2016-01-20 Thread Andy Stevko
FWIW, Sencha GXT has an open source edition
https://www.sencha.com/legal/GPL/

You cannot include Sencha Ext JS or Sencha GXT in a closed source
distribution under this license.

On Wed, Jan 20, 2016 at 9:23 AM, Thomas Broyer  wrote:

>
>
> On Wednesday, January 20, 2016 at 5:59:30 PM UTC+1, N Troncoso wrote:
>>
>>  I started using GWT Polymer for my Web App a few weeks ago. I had to get
>> over some difficult hurdles, but I think it's really paying off. The UI is
>> sleek and responsive and just overall works very well.
>>
>> It's more or less the same as GWT Material from what I can tell (they are
>> both designed around Google's Material spec). GWT Polymer is really just a
>> wrapper, though, for their javascript library, so it requires jsInterop.
>>
>
> Well, the real difference is that GWT Polymer uses Web Components, whereas
> GWT Material uses "plain old HTML" elements (and as a result should
> probably work on more browsers than GWT Polymer; though now that Microsoft
> killed all old IEs it might not be a problem anymore)
>
> --
> 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.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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: Possible to set a custom (non bindAddress) server IP in sourceMappingURL ?

2015-03-17 Thread Andy Dale
I solved it different way as I would not be allowed to switch to bridged 
(the network admin would not be too amused). 

In the end I set the bindAddress to 0.0.0.0, this means that the superdev 
mode is bound to my virtual machines host name, I then added a rule in the 
windows hosts file.

the source maps are now available ;-)


On Tuesday, 17 March 2015 13:36:33 UTC+1, Jens wrote:

 I don't think that you can change it for now. Maybe via a custom linker, 
 not sure, but that would be a bit more work anyways.

 As a workaround you can reconfigure your VM so you can directly access it 
 without forwarding, e.g. use a bridge instead of NAT. 

 -- J.


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


Possible to set a custom (non bindAddress) server IP in sourceMappingURL ?

2015-03-17 Thread Andy Dale
Hi,

I am developing a gwt (2.7.0) application but I am experiencing a major 
issue when trying to get the soucemaps working in super dev mode.

My development environment is as follows: 

   - developing on a linux virtual machine (virtual box) running on Windows 
   7
   - virtual machine is using NAT for the network
   - using chrome in Windows to test the app with port forwarding
   - port forwarding is setup for all the correct ports
   
I have to start super dev mode with the -bindAddress set the linux vm eth0 
address (10.0.2.15).  With the port forwarding I can access the website 
with 127.0.0.1:9090/webapp within windows, as it forwards 127.0.0.1:9090 to 
10.0.2.15:9090. 

The problem comes with the source maps, as the sourceMappingURL is set to 
http://10.0.2.15:9876/sourcemaps/..., this address is not accessible 
from within my windows machine. The source maps are working as they are 
accessible on the following urls:


   - http://127.0.0.1:9876/sourcemaps/..
   - http://localhost:9876/sourcemaps/..
   - http://hostname:9876/sourcemaps/..

Is there any way to change the server used in the sourceMappingURL so that 
it is not hard configured/coded to the bindAddress as set in the super dev 
mode 

Any help/advice would be greatly appreciated.

Cheers,

Andy

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


request factory and pure js client

2014-11-25 Thread Andy Stevko
I have a successful GWT/AppEngine/Objectify application that communicates
via RequestFactory. I've seen some nice things with jsinterop integrating
js modules into GWT.
Is there a way to package the request factory client code so that it can be
called from a javascript client? It would be nice to reuse the server side
code rather than rewriting it.


-- 
-- Andy Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: How to setup a GWT project in Plesk on a virtual machine?

2014-09-25 Thread Andy Stevko
#1  - yes, need to hook your servlets  to uris
#2 - I do it all the time...
#3 - apache is a web server - not a java servlet container. apache is fine
for serving html/js. tomcat is fine for serving html/js and servlets.
#4 - it seems that the plesk power pack has tomcat which should be enough
to deploy your gwt/servlet war file.
http://stackoverflow.com/questions/21660059/install-and-enable-tomcat-7-on-plesk-11-5
#5 - not normally a problem when serving html  js from the same server as
your servlet container.

Install tomcat on a different port from apache, create and deploy a war
file containing your client  server code, and things should fall into
place for you.



On Thu, Sep 25, 2014 at 11:03 AM, Jens jens.nehlme...@gmail.com wrote:

 Well it kind of depends on what exactly you want to achieve. If you just
 want to run your GWT app and you don't really care about the URL then just
 install any Java server (Jetty, Tomcat, Glassfish, Wildfly, ...), deploy
 your *.war file on it and access it through your server IP address and the
 default port of your Java server which, in most cases, is 8080.

 But if you want something like http://app.example.com and example.com is
 managed by Plesk + Apache then you have to read about Apache + reverse
 proxy because Apache needs to proxy requests to your java server of choice.

 -- J.

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: GWT and TimeZone

2014-09-17 Thread Andy
Issues with Dates in GWT have been covered many times in this forum. I blogged 
about our approach a few years ago 
http://traction.tractionsoftware.com/traction/permalink/Blog1986and our 
code is available on GitHub 
http://tractionsoftware.github.io/gwt-traction/ if you want to use or 
copy it.

Good luck!
-Andy

On Friday, September 12, 2014 10:55:40 AM UTC-4, Gioacchino Del Prete wrote:

 Hello everybody.

 I have a question, 

 if I have a Date in any TimeZone and I want to convert this Date in a Date 
 with TimeZone GMT + 00 (London), how can I do?

 Thank you for the reply

 Best regards.


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


Re: GWT 2.2.0 does not serialize/deserialize basic Java types if not referenced explicitly

2014-09-15 Thread Andy Stevko
I gotten around the problems with using Object in my async apis by defining
a api that declares the possible types (native  custom) as parameters so
that they get included within the serialization policy.
Without that policy, anybody can pass any type in the response and it will
be de-serialized - a huge security attack vector.

On Mon, Sep 15, 2014 at 8:04 AM, Joseph Lust lifeofl...@gmail.com wrote:

 Curious, is there a way to enable compiler logging to note just how many
 types you're RPC serializers are being compiled to handle? I think that
 might provide clarity into these blackbox situations and draw attention to
 the RPC type explosion problem from folks that would otherwise miss it.

 Joe

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: GWT 2.2.0 does not serialize/deserialize basic Java types if not referenced explicitly

2014-09-15 Thread Andy Stevko
P.S. Thomas is correct - you will be better off upgrading to Super Dev Mode
rather than re-tooling to a Dev Mode which is reaching end of life.


On Mon, Sep 15, 2014 at 9:11 AM, Andy Stevko andy.ste...@gmail.com wrote:

 I gotten around the problems with using Object in my async apis by
 defining a api that declares the possible types (native  custom) as
 parameters so that they get included within the serialization policy.
 Without that policy, anybody can pass any type in the response and it will
 be de-serialized - a huge security attack vector.

 On Mon, Sep 15, 2014 at 8:04 AM, Joseph Lust lifeofl...@gmail.com wrote:

 Curious, is there a way to enable compiler logging to note just how many
 types you're RPC serializers are being compiled to handle? I think that
 might provide clarity into these blackbox situations and draw attention to
 the RPC type explosion problem from folks that would otherwise miss it.

 Joe

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




 --
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough.
 M. Andretti







-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: [gwt-contrib] GWT 2.7 requiring Java7 for development - Action needed

2014-09-11 Thread Andy Stevko
+1 on moving to java 7
On Sep 11, 2014 10:50 AM, 'Daniel Kurka' via GWT Contributors 
google-web-toolkit-contributors@googlegroups.com wrote:

 Hi all,

 while bringing GSS support into GWT, I discovered that the closure
 styleheets compiler actually requires Java7.
 This means that we either have to do a back port of the compiler (I
 haven't looked at it seriously) or require Java7 for development with GWT
 (probably only if you are using CssResource).

 I really like your input on this and if I do not hear any strong
 objections, I will go ahead with using the Java7 version of closure
 stylesheets and thus we will require Java7 for GWT development.

 Note: This does not impact deployment of any GWT apps. You can still run a
 GWT app on a Java6 container, this will only affect developers on their
 machines.

 -Daniel

 --
 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/CALLujip-hsvuE7-NghZGJ0HL007yjCaE5mMX2126Gag4KUJ7Ug%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALLujip-hsvuE7-NghZGJ0HL007yjCaE5mMX2126Gag4KUJ7Ug%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CANKsVVkcWHKMuCBkAcqAAWj1DU0AfkHp3PGn%2B7atR4XG5yqKQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: DateBox incorrect time past certain dates

2014-07-22 Thread Andy
We found that the best approach is to pick all dates at midnight UTC and 
convert them as necessary on the server. You can read about it here:

http://traction.tractionsoftware.com/traction/permalink/Blog1986

Cheers,
Andy

On Wednesday, July 16, 2014 3:29:04 PM UTC-4, William Davis wrote:

 I have run across a rather annoying issue, I have been looking for others 
 with similar problems but cannot seem to narrow it down to a solution that 
 will work for me. The following problem has to do with getting the date 
 from a DateBox. First of all, I always get the right date and timezone 
 offset in dev mode, and I am only doing things on the client side. So when 
 I am running a compiled version this is what happens:

 Lets take the scenario of picking a date pre November 1974 for a client in 
 the New Zealand time zone. What is interesting about this date is that 
 before this time there was no daylight savings time for this area. So if I 
 pick a date it shows the time zone offset being +13:00 which it should be 
 +12:00 but it is adding the hour for DST even though DST hasn't been 
 established yet. What is interesting is that when I run in Dev Mode, it 
 knows this and gives the correct offset of +12:00. 

 Same goes for choosing dates in the USA before 1918 which is when DST was 
 established there. 

 I can only assume that there must be a difference in the way the compiled 
 javascript handles the timezone offset.

 If anyone has found a good solution to account for this issue, or would 
 like to enlighten me on the precise details of why this happens and what 
 can be done about it, I would be most grateful.

 Just as a reference I am getting the date and format as follows:
 DateTimeFormat dateFormat = 
 DateTimeFormat.getFormat(-MM-dd'T'HH:mm:ssZZZ);
 String dateString = dateFormat.format(dateBox.getValue());

 Thanks,
 Will


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


Re: The First-Time loading issue of a deployed GWT app?

2014-07-16 Thread Andy Stevko
Tom,
you can design a static page index.html that will give your users enough
info to want to wait for the dynamic pages to load and  replace it.

Advanced JSers often put the script tag at the end of the body for exactly
your scenario.

Code splitting may help with your initial app load delay.

I think you need to profile your scenario in depth to understand where and
what to optimize.
-- Andy stevko
On Jul 14, 2014 8:34 PM, Tom henry...@gmail.com wrote:

 I deployed my app and I got this issue.

 The first time the app got loaded, it will show a blank white page for 5-7
 second which is pretty long for a good user-experience. But after that, the
 page show really really fast since it got cached.

 The problem is that when i advertised my site in Adword. When many people
 will visit my site for the first time, they could be impatient if it shows
 a blank page for a long period time like that.

 I think the solution is to make an loading indicator to indicate user that
 the page is loading.

 Actually I did do the indicator loading at the onModuleLoad method

 public class MyProject implements EntryPoint {

 private final ClientGinjector ginjector = GWT.create(ClientGinjector.class);

 @Override
 public void onModuleLoad() {
 // This is required for Gwt-Platform proxy's generator
 DelayedBindRegistry.bind(ginjector);

 ginjector.getPlaceManager().revealCurrentPlace();
 DOM.removeChild(RootPanel.getBodyElement(), 
 DOM.getElementById(loading));

 }

 }

 In MyProject.html

 html
  head../head
  body
 div id=loading
LoadingBR/
img src=../images/loading.gif /
 /div
 iframe.../iframe
   ..
   /body
 /html

 However, the div id=loading only works after all javascript files got
 loaded. It doesn't work right at the beginning user visits the site  that
 is why user will see a blank page for a pretty long time.

 *I am not sure GWT app is good for advertising in Google*. But my page
 passed the Ad review from Adword people, so it means the page must be
 finally visible, otherwise Adword people will reject my page.

 Can u figure out a solution for this?


 http://stackoverflow.com/questions/24749396/the-first-time-loading-issue-of-a-deployed-gwt-app

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


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


Re: How to make SuggestBox display scroll properly?

2014-07-15 Thread Andy
This is a common problem when trying to extend and modify GWT widgets. The 
easiest way to work around the use of private is to use JSNI.

Here is an example 
https://github.com/tractionsoftware/gwt-traction/blob/master/src/main/java/com/tractionsoftware/gwt/user/client/ui/TractionDialogBox.java#L196-L213
 
from our gwt-traction library 
http://tractionsoftware.github.io/gwt-traction/.

-Andy

On Monday, July 14, 2014 1:40:06 PM UTC-4, chris-x...@db.com wrote:

 I'm working with a SuggestBox that produces a very large number of 
 suggestions on the first one or two chanracters.  I don't want an ugly list 
 that disappears off the bottom of the screen, so I've made the selection 
 display scroll by adding height and overflow to the CSS for 
 .gwt-SuggestBoxPopup .suggestPopupContent.

 It all works fine until I try to move through the selection list using the 
 keyboard.  The selected element does not scroll into view.  This is 
 obviously not going to pass any UX tests.

 I've subclassed SuggestBox.DefaultSuggestionDisplay in the hope of being 
 able to scroll the selected element into view as part of the 
 moveSelectionDown() and moveSelectionUp() methods.  But it seems that to 
 get to the Element selected I need access to the suggestionMenu field, and 
 that, for some reason, is private, so the subclass can't see it.

 Oh well, I guess I can copy the code from 
 SuggestBox.DefaultSuggestionDisplay and implement my own version.  This 
 sort of cut-n-paste inheritance goes against decent Java principles, but 
 it's only 280 lines or so.  No luck - SuggestBox.DefaultSuggestionDisplay 
 has a dependence on the private class SuggestBox.SuggestionMenu.

 At this point the only solution I can think of is to search the DOM for an 
 element with with a CSS class of item-selected.  

 Does anyone know of a better solution?  I would be delighted to hear it.

 Chris


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


Re: How to make SuggestBox display scroll properly?

2014-07-15 Thread Andy
To be more specific, once you provide access to the MenuBar in your 
subclass via something like:

public native MenuBar getPrivateMenuBar() /*-{
return ... ;
}-*/;

you should be able to do:

getPrivateMenuBar().getSelectedItem().getElement().scrollIntoView();

Oh, but getSelectedItem() is protected! In that case I would just chain 
them both in a native method. So in your subclass add:

public native MenuItem getSuperSecretSelectedMenuItem() /*-{

}-*/;

Anyone know the rationale behind making getItems() and getSelectedItem() 
protected in MenuBar?

-Andy

On Tuesday, July 15, 2014 12:15:45 PM UTC-4, Andy wrote:

 This is a common problem when trying to extend and modify GWT widgets. The 
 easiest way to work around the use of private is to use JSNI.

 Here is an example 
 https://github.com/tractionsoftware/gwt-traction/blob/master/src/main/java/com/tractionsoftware/gwt/user/client/ui/TractionDialogBox.java#L196-L213
  
 from our gwt-traction library 
 http://tractionsoftware.github.io/gwt-traction/.

 -Andy

 On Monday, July 14, 2014 1:40:06 PM UTC-4, chris-x...@db.com wrote:

 I'm working with a SuggestBox that produces a very large number of 
 suggestions on the first one or two chanracters.  I don't want an ugly list 
 that disappears off the bottom of the screen, so I've made the selection 
 display scroll by adding height and overflow to the CSS for 
 .gwt-SuggestBoxPopup .suggestPopupContent.

 It all works fine until I try to move through the selection list using 
 the keyboard.  The selected element does not scroll into view.  This is 
 obviously not going to pass any UX tests.

 I've subclassed SuggestBox.DefaultSuggestionDisplay in the hope of being 
 able to scroll the selected element into view as part of the 
 moveSelectionDown() and moveSelectionUp() methods.  But it seems that to 
 get to the Element selected I need access to the suggestionMenu field, and 
 that, for some reason, is private, so the subclass can't see it.

 Oh well, I guess I can copy the code from 
 SuggestBox.DefaultSuggestionDisplay and implement my own version.  This 
 sort of cut-n-paste inheritance goes against decent Java principles, but 
 it's only 280 lines or so.  No luck - SuggestBox.DefaultSuggestionDisplay 
 has a dependence on the private class SuggestBox.SuggestionMenu.

 At this point the only solution I can think of is to search the DOM for 
 an element with with a CSS class of item-selected.  

 Does anyone know of a better solution?  I would be delighted to hear it.

 Chris



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


Re: reuse of private static variable

2014-06-29 Thread Andy Stevko
Make as many image instances as necessary. The browser will cache and reuse
the src if it is identical.
On Jun 28, 2014 5:33 AM, 'Leung' via Google Web Toolkit 
google-web-toolkit@googlegroups.com wrote:

 Then, if I need to use one copy of the image a few times or the same
 widget a few places, then what should I do?


   On Friday, June 27, 2014 11:34 AM, Jens jens.nehlme...@gmail.com
 wrote:


  Is there any technical name to describe this feature?


 The DOM acts like a tree with each node having exactly one parent node
 (except the root node which has no parent).

 http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/introduction.html


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


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


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


Re: Reload client automatically on server side code update

2014-04-22 Thread Andy
Are you getting a IncompatibleRemoteServiceException?

In our case, we catch that exception and offer a simple Window.confirm 
dialog and, if confirmed, reload the page using Window.Location.reload().

I describe our client-side exception handling pattern on Stack Overflow: 
http://stackoverflow.com/questions/4193373/best-practices-for-gwt-services-exceptions-logging/4725052#4725052

-Andy

On Tuesday, April 22, 2014 7:10:19 AM UTC-4, Varun Jain wrote:

 Hi,
Whenever a new client side patch update happens with update to GWT 
 classes, the generated javascript incompatible causing a client side 
 exception which is resolve when the client reloads the webapp. How can this 
 be handled?

 Thanks,
 Varun


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


Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?

2014-03-07 Thread Andy Stevko
Tom,
Are you using dev mode in eclipse? If so, it does the recompiling for you
on the fly.
To show what your web app looks like without on the fly compiling, do a
full compile using the menu item GWT Compile Project... and then
stripping the ?gwt.codesvr= from the url.



On Fri, Mar 7, 2014 at 5:16 AM, Tom henry...@gmail.com wrote:

 Hello Thomas, I have just tested in eclipse. I started my webapp  just
 let the server run. When I clicked the button 1st time it used this text 
 User455 pls views order.

 Now I just let the server to continue to run without stopping it. Then, I
 changed User to Customer  then I clicked the button again. This time,
 it showed  Customer455 pls views order.

 I don't understand what u mean?

 On Friday, March 7, 2014 8:30:50 PM UTC+11, Thomas Broyer wrote:



 On Friday, March 7, 2014 9:33:26 AM UTC+1, Tom wrote:

 Messages  Constants (com.google.gwt.i18n.client.Constants 
 com.google.gwt.i18n.client.Messages) in GWT allow us to put all
 Messages  Constants into properties files so that we can change these
 messages  constants at any time we want without the need to recompile the
 whole webapp when we need to change them.

 Wrong assumption. You'll have to recompile your app whenever you change
 anything related to client-side code.


 Ex: you have a message call User451 pls views order in
 myMessages.properties

 userViewOrder=User''{0}'' pls views order

  in the MyMessages.java

 public interface MyMessages extends Messages{
 String userViewOrder(String userID);}

 At a later time, the bos wants to change the message to Customer451
 pls views order then we don't need to recompile the whole project but
 just need to modify the myMessages.properties file

 userViewOrder=Customer''{0}'' pls views order

 So my question is, can we achieve the similar thing at the server level?

 For example, in server, after inserting order data successfully into DB
 we need to send a private message to the customer immediately right at the
 server. Ex:

 public boolean isertOrder(String data, String userID){
 String sql=insert query here;
 . more code 
 int resultCode=prepareStmt.executeUpdate();
 if (resultCode==1){
//insert a notification into Message table
String msg=Congratulation user +userID+, You ordered 
 successfully!; // how to manage this message without needing to 
 recompiling the whole project

String sql=insert into Message values (.)
///do the inserting here
 }}

 can we manage Messages  Constants (i18n) at Server as we manage at
 Client?

 You have to know the locale you want to load, and then:
 http://docs.oracle.com/javase/7/docs/api/java/util/
 ResourceBundle.html#getBundle(java.lang.String, java.util.Locale)
 Note that you'll have to make sure that your *.properties files are
 US-ASCII, as GWT expects them in UTF-8 and ResourceBundle as ISO-8859-1.
 You can use a custom ResourceBundle.Control to load them as UTF-8.
 And then use 
 MessageFormathttp://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.htmlfor
  replacing placeholders (for the case of c.g.g.i18n.client.Messages).

 That said, there also are existing GWT-like solutions, such as
 https://github.com/dbaeli/ez18n (see http://fr.slideshare.net/
 gdigugli/con11234-baeli-diguglielmo)
 There are also a few projects that directly try to use your GWT
 interfaces on server-side; and it's also a planned feature of GWT proper
 (no ETA yet).

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: GWT+Hibernate

2014-03-06 Thread Andy Stevko
Move the classes that are referenced both on the client  server (like DTO)
into the shared package.
Strip down SavePersonne() to almost nothing to see what is causing the
Initialization exception.
Perhaps your web.xml is misconfigured?

This tutorial runs through all the steps to setting up RPC
http://www.gwtproject.org/doc/latest/tutorial/RPC.html


On Wed, Mar 5, 2014 at 2:27 PM, Amir kessentini
kessentini.a...@gmail.comwrote:


 Hey again :)
 i have read GWT homepage article and i'm developping an example which i
 have a user interface and i want to save the informations on database using
 postgres as SGBD.
 i follow the steps but i got a problem that i couldn't resolve.

 com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
 abstract void
 com.example.test.client.services.PersonneService.savePersonne(com.example.test.client.dto.PersonneDTO)'
 threw an unexpected exception: java.lang.ExceptionInInitializerError

 Sorry for my bad english because i'm arabic
 thanks a lot

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: MenuBar: How to open MenuItem in new tab/window?

2014-01-30 Thread Andy Stevko
defined the function to call Window.open( ... )
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/Window.html#open(java.lang.String,
java.lang.String, java.lang.String)



On Thu, Jan 30, 2014 at 7:32 AM, kibu Kuhn gernot.ve...@gmx.de wrote:

 hi,

 as MenuItem does not render a html link but just peforms a function call
 when you click onto an item, you can't open the new page in a new tab or
 window (A menu item here does not perform a place change but just opens a
 new page from the server). How can I achieve this?

 TIA
 kibu


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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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


Re: render() - a better way?

2014-01-11 Thread Andy Stevko
Yes, gwt widgets make immediate changes to the dom (post onAttach())
whereas the v2 GXT's rendering model only modified the DOM when render()
was called. It was impossible to guarantee the layout with mixed framework
widgets. This was all changed with the v3 rewrite.

Perhaps I misunderstand when/where you propose to defer component
rendering.

Most of my views forward events to the presenter to alter state and then
have a single refresh method to hide/enable/disable/set text/etc widgets
based on the presenter's state. This seems to be the best place to work a
shadow dom then publish the rendered dom to the display.

Widgets on the other hand tend to interact with each other in jostling for
display space. Deferring the rendering of only one widget forces the other
widgets to either re-render or defer until the page canvas state is stable
(this is the coupling I referred to). It sucks to re-run the rendering
engine every time a style is altered but the sizing/placement needs to be
discrete.



On Jan 10, 2014 11:18 AM, Joel j...@harpsoft.com wrote:

 When you say two rendering methods you mean GWT vs GXT?

 How would it be any more tightly coupled? Same component, just different
 rendering logic.
 It should be at least as responsive, if just the diff from the
 before/after is calculated and applied. (See ReactJS).

 J

 On Friday, January 10, 2014 12:30:03 PM UTC-6, Stevko wrote:

 What you are describing is how gxt v2 worked. It was a nightmare to
 reconcile the two rendering methods.
 Also tightly coupling the various widgets and views into a single render
 call makes the whole less responsive.  When I are attach something to the
 Dom, I expect it to render.


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


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


Re: render() - a better way?

2014-01-10 Thread Andy Stevko
What you are describing is how gxt v2 worked. It was a nightmare to
reconcile the two rendering methods.
Also tightly coupling the various widgets and views into a single render
call makes the whole less responsive.  When I are attach something to the
Dom, I expect it to render.

On Jan 10, 2014 10:12 AM, Joel j...@harpsoft.com wrote:


 Yeah, I didn't know how shadow dom would work and how to get the diffs,
and write the changes... basically how the guts of gwt works.

 Maybe the benefit is less than it sounds.


 On Friday, January 10, 2014 11:24:26 AM UTC-6, Thomas Broyer wrote:

 You're basically asking about a ReactGWT ;-)
 http://facebook.github.io/react/

 Feasible, but a bit of work.

 On Friday, January 10, 2014 4:06:07 PM UTC+1, Joel wrote:


 I've been thinking about how I can apply a more functional approach
to GWT development.

 Currently, the view classes change the DOM based on events, for
example, change the style of this thing, clear and add children to this
other thing, hide/show another thing. However, what if I could move all the
rendering to one method (as done in desktop apps). That way I change the
state and call render (usually this would be deferred thru a refresh()
method). The reason being is that you can avoid reasoning about state...
How did this widget get looking like this? and have to trace the events
leading up that situation. Instead you are simply drawing what the
current/complete state is.

 A naiive implementation (in GWT), would be to have a render() method
that refreshes everything, however, it would also need to reset stuff as
well, when state changes, you'd call render(). Of course, this wouldn't be
efficient, possibly flickery. Facebook React works this way, however,
they calculate the differences in a shadow DOM, and then only write
differences to the browser DOM, and its very efficient.

 Would this kind of approach be feasible in GWT? IMO, it would simplify
things.
 Thomas weighing in on this would be great.

 Joel

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

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


Re: gwt-rawhistory on github

2013-11-12 Thread Andy
No, I haven't. Thanks for the link!

From a quick glance at the code, it's use of location.hash and 
encode/decode will likely still cause issues for us. Over the next few 
days, I'll try to create a version of my demo that uses the new code.

It could be that my expectations are wrong, but I spent a long time back in 
June 2010 trying to work around the issues we encountered. The example I 
posted gives you a good idea of the challenge.

A link for:

fun/()(amp;)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85

becomes:

fun/()(amp;)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅

%25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.

I'm admittedly not an expert in proper hash encode/decode, but the above 
result seems wrong. I suspect it's something subtle in the combination of 
HTML decode of the href= attribute and URL decode of that value.

-Andy

On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:

 Have you seen https://gwt-review.googlesource.com/5356 ?

 On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:

 For a while I've been planning to move our gwt-traction library over to 
 github. Over the weekend, I decided to start with RawHistory.

 RawHistory is a module that I suspect few people are using. It used to 
 have a note at the bottom saying that someday I'd explain exactly what it 
 did. As part of moving it to github, I implemented a demo.

 https://github.com/andykellr/gwt-rawhistory

 I'd appreciate any feedback, particularly if you've also run into history 
 token encode/decode issues.

 -Andy

 https://code.google.com/p/gwt-traction/



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


Re: gwt-rawhistory on github

2013-11-12 Thread Andy
That's a great reference. It doesn't really explain what I'm seeing, but 
it's well written.

On Tuesday, November 12, 2013 8:18:10 AM UTC-5, Juan Pablo Gardella wrote:

 FYI URL encoding: 
 http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-
 url-encoding


 2013/11/12 Andy pul...@gmail.com javascript:

 No, I haven't. Thanks for the link!

 From a quick glance at the code, it's use of location.hash and 
 encode/decode will likely still cause issues for us. Over the next few 
 days, I'll try to create a version of my demo that uses the new code.

 It could be that my expectations are wrong, but I spent a long time back 
 in June 2010 trying to work around the issues we encountered. The example I 
 posted gives you a good idea of the challenge.

 A link for:

 fun/()(amp;)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85

 becomes:

 fun/()(amp;)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅

 %25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.

 I'm admittedly not an expert in proper hash encode/decode, but the above 
 result seems wrong. I suspect it's something subtle in the combination of 
 HTML decode of the href= attribute and URL decode of that value.

 -Andy


 On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:

 Have you seen https://gwt-review.googlesource.com/5356 ?

 On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:

 For a while I've been planning to move our gwt-traction library over to 
 github. Over the weekend, I decided to start with RawHistory.

 RawHistory is a module that I suspect few people are using. It used to 
 have a note at the bottom saying that someday I'd explain exactly what it 
 did. As part of moving it to github, I implemented a demo.

 https://github.com/andykellr/gwt-rawhistory

 I'd appreciate any feedback, particularly if you've also run into 
 history token encode/decode issues.

 -Andy

 https://code.google.com/p/gwt-traction/

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




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


Re: gwt-rawhistory on github

2013-11-12 Thread Andy
I should have mentioned that the example I showed above was for Safari. 
Firefox does something different:

A link for:

fun/()(amp;)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85

becomes:

Safari/Chrome: fun/()(amp;)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅
Firefox: fun/()(amp;)()(%26)/(#)/(+)(+)( )(%2B)(%20)/禅

So if you use GWT Anchors or generate links server-side, the value of 
History.getToken() depends on the browser.

-Andy

On Tuesday, November 12, 2013 8:10:31 AM UTC-5, Andy wrote:

 No, I haven't. Thanks for the link!

 From a quick glance at the code, it's use of location.hash and 
 encode/decode will likely still cause issues for us. Over the next few 
 days, I'll try to create a version of my demo that uses the new code.

 It could be that my expectations are wrong, but I spent a long time back 
 in June 2010 trying to work around the issues we encountered. The example I 
 posted gives you a good idea of the challenge.

 A link for:

 fun/()(amp;)(%26)(%2526)/(%23)/(+)(%2B)(%20)(%252B)(%2520)/%E7%A6%85

 becomes:

 fun/()(amp;)(%26)(%26)/(#)/(+)(%2B)( )(%2B)(%20)/禅

 %25 %23 %20 and the utf8 char are decoded, but + %26 and %2B are not.

 I'm admittedly not an expert in proper hash encode/decode, but the above 
 result seems wrong. I suspect it's something subtle in the combination of 
 HTML decode of the href= attribute and URL decode of that value.

 -Andy

 On Tuesday, November 12, 2013 4:38:25 AM UTC-5, Thomas Broyer wrote:

 Have you seen https://gwt-review.googlesource.com/5356 ?

 On Monday, November 11, 2013 5:25:26 PM UTC+1, Andy wrote:

 For a while I've been planning to move our gwt-traction library over to 
 github. Over the weekend, I decided to start with RawHistory.

 RawHistory is a module that I suspect few people are using. It used to 
 have a note at the bottom saying that someday I'd explain exactly what it 
 did. As part of moving it to github, I implemented a demo.

 https://github.com/andykellr/gwt-rawhistory

 I'd appreciate any feedback, particularly if you've also run into 
 history token encode/decode issues.

 -Andy

 https://code.google.com/p/gwt-traction/



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


gwt-rawhistory on github

2013-11-11 Thread Andy
For a while I've been planning to move our gwt-traction library over to 
github. Over the weekend, I decided to start with RawHistory.

RawHistory is a module that I suspect few people are using. It used to have 
a note at the bottom saying that someday I'd explain exactly what it did. 
As part of moving it to github, I implemented a demo.

https://github.com/andykellr/gwt-rawhistory

I'd appreciate any feedback, particularly if you've also run into history 
token encode/decode issues.

-Andy

https://code.google.com/p/gwt-traction/

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


Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-25 Thread Andy
I just read through the notes from the GWT steering 
committeehttps://groups.google.com/d/msg/gwt-steering/ldyo7OXUnHQ/ogtT-kPFoaoJand
 would like to share our perspective. I know you have a lot of survey 
results and we're just 1 company, but here's some more info based on our 
needs.

*Java 8 only*

I would encourage and support this move. I've been writing a ton of 
Javascript for the past few weeks and really miss the functional style when 
I come back to Java. Lambdas in Java 8 are going to be powerful and fun and 
they should be used liberally throughout the GWT 3.0 APIs. We won't be able 
to move our backend to Java 8 for a while, but since we only ship the JS 
output of the GWT compiler, I'm happy to use Java 8 for front-end 
development.

*Dropping IE 8/9*
*
*
We just decided on Tuesday to drop IE7 with our next release. We got tired 
of working around hasLayout bugs, etc. We have several major customers that 
still have users with XP/IE7, but after consulting with them, we decided we 
could go ahead with dropping support. Unfortunately, many of our customers 
are using IE8 and we won't be able to drop IE 8/9 anytime soon. As a 
developer this is extremely frustrating, but it's the sad reality of the 
enterprise.

So Java 8 would be awesome, but dropping support for IE 8/9 would prevent 
us from being about to use GWT 3.0 until our enterprise customers upgrade 
their browsers.

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


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-25 Thread Andy
Thanks for your input. It sounds like we're in the identical situation.

Regarding onFailure, do you use an abstract implementation of 
AsyncCallback, like I mention in this post?

http://stackoverflow.com/a/4725052/497700

-Andy

On Friday, October 25, 2013 11:47:43 AM UTC-4, stuckagain wrote:

 IE8/IE9 I agree, we are in the same situation. Our customers only just 
 migrated to IE8, so that will take at least 2 years before they will move 
 on.
 We could wait longer to move on to GWT 3.0, but the problem is that other 
 customers are already asking for IE11 support. 

 About Java8 support on the client, I am looking forward to lambdas instead 
 of asynccallbacks, it would make my code a lot more compact! I only have 
 one onFailure implementation so it would be great if the APIs would 
 decouple these and allow for a default implementation.

 But the gwt-servlet.jar will still need to be compiled for Java 7 
 compatibility or we will be really in big problems. A lot of customers are 
 still running Java 6 on the server side.
 Java 7 is about to become mandatory for us, but Java 8 that will take ages.

 David



 On Fri, Oct 25, 2013 at 4:50 PM, Andy pul...@gmail.com javascript:wrote:

 I just read through the notes from the GWT steering 
 committeehttps://groups.google.com/d/msg/gwt-steering/ldyo7OXUnHQ/ogtT-kPFoaoJand
  would like to share our perspective. I know you have a lot of survey 
 results and we're just 1 company, but here's some more info based on our 
 needs.

 *Java 8 only*

 I would encourage and support this move. I've been writing a ton of 
 Javascript for the past few weeks and really miss the functional style when 
 I come back to Java. Lambdas in Java 8 are going to be powerful and fun and 
 they should be used liberally throughout the GWT 3.0 APIs. We won't be able 
 to move our backend to Java 8 for a while, but since we only ship the JS 
 output of the GWT compiler, I'm happy to use Java 8 for front-end 
 development.

 *Dropping IE 8/9*
 *
 *
 We just decided on Tuesday to drop IE7 with our next release. We got 
 tired of working around hasLayout bugs, etc. We have several major 
 customers that still have users with XP/IE7, but after consulting with 
 them, we decided we could go ahead with dropping support. Unfortunately, 
 many of our customers are using IE8 and we won't be able to drop IE 8/9 
 anytime soon. As a developer this is extremely frustrating, but it's the 
 sad reality of the enterprise.

 So Java 8 would be awesome, but dropping support for IE 8/9 would prevent 
 us from being about to use GWT 3.0 until our enterprise customers upgrade 
 their browsers.

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




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


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-25 Thread Andy
Thanks Ray, I appreciate the detailed response.

We do most of our rendering server-side and use very few widgets, so it 
sounds like we'll be fine. We don't use any panels other than FlowPanel and 
we use simple widgets like Hyperlink and CheckBox with a few cases of 
SuggestBox and our own wrapper around a 
DateBoxhttp://gwt-traction.googlecode.com/hg/demo/com.tractionsoftware.gwt.demo.utcdatebox.UTCDateBoxDemo/UTCDateBoxDemo.html.
 
We started using GWT with 1.5 and so have never used UiBinder and all of 
our CSS is done with SASS on the server-side.

That said, we have over 150k lines of GWT (including whitespace, comments, 
etc) and are pretty committed to it. We may be a bit unique, but we use GWT 
mostly as a (much, much) better version of coffeescript and rely heavily on 
the DOM/event abstractions, deferred binding, code optimization, JSNI, and 
RPC, and of course the ability to use Java for all of this.

Thanks for all of the great work you guys have done over the years. I'm 
really looking forward to 3.0.

-Andy

On Friday, October 25, 2013 1:21:22 PM UTC-4, Ray Cromwell wrote:


 I think what we're really thinking about doing is preserving IE8 for the 
 existing gwt widget stuff, but any features (APIs) we add going forward are 
 going to leverage modern browser stuff, and we are not going to design 
 (poorly performing, hacky) fallback/polyfill workarounds. 

 For GWT 3.0, we are looking at making a new, parallel way of writing Web 
 UIs that is based on the emerging Web Components standard, and we will lean 
 heavily on modern browser layout engines, e.g. flexible box model.  We're 
 not going to break your existing apps, but we're not going to make these 
 new models work on old browsers. For example, to make data-binding working 
 efficiently in Web Components, you need mutation observers, Node.bind, 
 Object.observe(), etc. 

 We are not going to require Java7 or Java8 to run servlet code or even 
 invoke the compiler, but we will support compiling Java8 code to JS, and 
 we'll have super-sourced versions of java.util.function/java.util.stream.

 Basically, the future is easier interop with the browser APIs, external 
 libraries, and web components, and less reliance on heavy weight widgets 
 that run lots of JS and shield the browser. This is a vision more in tune 
 with the fact that mobile is increasingly becoming a bigger and bigger 
 chunk of the web, and the original GWT metaphor of a Desktop-like 
 AWT/Swing-like UI library with layout done by executing code is less 
 efficient on mobile and is suboptimal for fast browser jank-free execution. 
  We don't want to break existing applications, and we don't want to hamper 
 designs for the future by requiring them to work on ancient browsers.



 On Friday, October 25, 2013 8:59:28 AM UTC-7, Andy wrote:

 Thanks for your input. It sounds like we're in the identical situation.

 Regarding onFailure, do you use an abstract implementation of 
 AsyncCallback, like I mention in this post?

 http://stackoverflow.com/a/4725052/497700

 -Andy

 On Friday, October 25, 2013 11:47:43 AM UTC-4, stuckagain wrote:

 IE8/IE9 I agree, we are in the same situation. Our customers only just 
 migrated to IE8, so that will take at least 2 years before they will move 
 on.
 We could wait longer to move on to GWT 3.0, but the problem is that 
 other customers are already asking for IE11 support. 

 About Java8 support on the client, I am looking forward to lambdas 
 instead of asynccallbacks, it would make my code a lot more compact! I only 
 have one onFailure implementation so it would be great if the APIs would 
 decouple these and allow for a default implementation.

 But the gwt-servlet.jar will still need to be compiled for Java 7 
 compatibility or we will be really in big problems. A lot of customers are 
 still running Java 6 on the server side.
 Java 7 is about to become mandatory for us, but Java 8 that will take 
 ages.

 David



 On Fri, Oct 25, 2013 at 4:50 PM, Andy pul...@gmail.com wrote:

 I just read through the notes from the GWT steering 
 committeehttps://groups.google.com/d/msg/gwt-steering/ldyo7OXUnHQ/ogtT-kPFoaoJand
  would like to share our perspective. I know you have a lot of survey 
 results and we're just 1 company, but here's some more info based on our 
 needs.

 *Java 8 only*

 I would encourage and support this move. I've been writing a ton of 
 Javascript for the past few weeks and really miss the functional style 
 when 
 I come back to Java. Lambdas in Java 8 are going to be powerful and fun 
 and 
 they should be used liberally throughout the GWT 3.0 APIs. We won't be 
 able 
 to move our backend to Java 8 for a while, but since we only ship the JS 
 output of the GWT compiler, I'm happy to use Java 8 for front-end 
 development.

 *Dropping IE 8/9*
 *
 *
 We just decided on Tuesday to drop IE7 with our next release. We got 
 tired of working around hasLayout bugs, etc. We have several major 
 customers that still have

Re: making async call(kind of recursive) inside onsuccess()

2013-09-17 Thread Andy
If you need to do this in a few places, I would create a class like this:

public abstract class RepeatingAsyncMethodT implements AsyncCallbackT {

public abstract void sendAsyncRequest();
public abstract boolean shouldRepeat(T result);
public abstract void onComplete(T lastResult);

@Override
public void onSuccess(T result) {
if (shouldRepeat(result)) { 
sendAsyncRequest();
}
else {
onComplete(result);
}
}
}

and then make an implementation that calls whatever RPC method you need to 
call in sendAsyncRequest, passing this as the callback. Then you can 
implement shouldRepeat to determine whether or not you should repeat.

If you have parameters you need to pass to your RPC, you could put them in 
the constructor of your subclass and send them each time in 
sendAsyncRequest.


On Tuesday, September 17, 2013 9:32:07 AM UTC-4, Anu wrote:

 I have a method that makes async call and Onsuccess(), it should make this 
 async call again with new set of data and it should continue till the 
 application is alive. Kindly suggest me few options. Also, do we need Timer 
 to achieve this?


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


Re: making async call(kind of recursive) inside onsuccess()

2013-09-17 Thread Andy
Sorry, I just noticed that you said you need to pass new data each time. If 
the new data is based on the old data, you'll need to pass result to 
sendAsyncRequest. If the new data comes from something else, make that 
available to your implementation of sendAsyncRequest.


On Tuesday, September 17, 2013 9:32:07 AM UTC-4, Anu wrote:

 I have a method that makes async call and Onsuccess(), it should make this 
 async call again with new set of data and it should continue till the 
 application is alive. Kindly suggest me few options. Also, do we need Timer 
 to achieve this?


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


Re: chrome upgrade scrolling issues

2013-08-26 Thread Andy King
I have Chrome version 29.0.1547.57 m on Windows 7 and the scrolling 
appears to work correctly, that is, when I go to one of the other places 
the scrollbar is at the top of the panel.

On Monday, August 26, 2013 9:27:10 AM UTC-7, EMan wrote:

 my computer (mac) just upgraded to the latest version of chrome.  It seems 
 now my site has an odd issue with scrolling.  When I scroll down a page and 
 then click a link to a new place, it stays scrolled in the old position.

 You can see this at www.sorave.com.  scroll to the middle of the page, 
 then click on the header connect,  you can see it stays scrolled in the 
 middle of the page, even though it is a new place.

 This only happens on chrome, and only after I applied the latest chrome 
 update.
 Version 29.0.1547.57

 anyone else have this issue?

 Thanks.



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


Re: GWT compilation performance

2013-08-15 Thread Andy Stevko
Using maven will not give you the performance gains you desire. Have you
tried Super Dev Mode?

Also you may get a better response rate if you limit the browser to Firefox
and a single language... ie 1 permutation.
On Aug 15, 2013 7:33 AM, David lexisnexis5...@gmail.com wrote:

 I have a huge GWT project. I use GWT eclipse plugin for all. it takes a
 few minutes to load the first page. If I made some change on one screen, I
 have to refresh that page and it also takes a few minutes. If I switch to
 Maven in Eclipse, can I reduce GWT compilation time? I have already used
 some technologies such as one locale, one permutation, draftCompile, Xmx.


 Thanks.

 David

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


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


Changing the Displayed Value in a DataGrid

2013-07-17 Thread Andy King
I am trying to modify the value that is displayed in a DataGrid cell after 
the user has entered or modified the existing value.  For example, if the 
user enters 5/6/12 I want the cell to display 05/06/2012 when the user 
exits the cell.  Here is the code that creates the column:

final TextInputCell fosterDateStartCell = new TextInputCell();
final ColumnIFosterHistoryProxy, String fosterDateStartColumn;
fosterDateStartColumn = new ColumnIFosterHistoryProxy, 
String(fosterDateStartCell) {
@Override
public String getValue(final IFosterHistoryProxy fosterHistory) {
final String date = fosterHistory.getFosterDateStart();
if (GLGWTUtil.isEmpty(date)) {
return ;
}
return date.substring(4, 6) + / + date.substring(6, 8) + / + 
date.substring(0, 4);
}
};
fosterDateStartColumn.setFieldUpdater(new FieldUpdaterIFosterHistoryProxy, 
String() {
@Override
public void update(final int index, final IFosterHistoryProxy 
fosterHistory, final String value) {
final String[] dateParts = value.split(/);
if (dateParts.length != 3) {
return;
}
final int month = Integer.valueOf(dateParts[0]);
final int day = Integer.valueOf(dateParts[1]);
final int year = Integer.valueOf(dateParts[2]);
final String date = (year  100 ? 2000 + year : year) + (month  10 
? 0 : ) + month +
(day  10 ? 0 : ) + day;
getEditDTO(fosterHistory, 
ECacheUpdateType.Update).setFosterDateStart(date);
final ViewData viewData = new ViewData(date.substring(4, 6) + / + 
date.substring(6, 8) +
   / + date.substring(0, 4));
fosterDateStartCell.setViewData(fosterHistory.getFosterHistoryId(), 
viewData);
fosterHistoryGrid.redraw();
}
});
fosterDateStartColumn.setSortable(true);
fosterHistoryGrid.addColumn(fosterDateStartColumn, Start Date);
fosterHistoryGrid.setColumnWidth(fosterDateStartColumn, 10ex);


The getValue() method is working well ... if the value in the proxy object 
is 20120506 then I see 05/06/2012 in the cell.  But the update() method 
is not showing the correct value ... if the user enters 5/6/12 then I do 
not see 05/06/2012 (the value in the cell is still 5/6/12 after the 
update() method has executed).  Note that the setFosterDateStart() method 
does not cause the update to be sent to the server; it simply sets the 
value in the editable proxy object.  Also note that the 
getFosterHistoryId() method returns the stable identifier value for the 
IFosterHistoryProxy object, and that the key provider for the selection 
model associated with the DataGrid is using that identifier.

Many thanks for any help!

Andy

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




Re: How to Pass Config vars from server to client

2013-07-09 Thread Andy

I attached the class that we use. It's basically the approach Thomas 
suggested and is most similar to the Dictionary class method mentioned in 
the link he provided. Our class does some namespacing and handles any JSON 
values like Objects, Arrays, ints, booleans, etc. and provides a defaulting 
mechanism.

For initialization variables, we use the static get() and get(String) 
methods. Soon after we created this class we added constructors to wrap any 
JavaScriptObject or JSONObject because we found the whole isNumber, 
isBoolean, etc API of JSONValue a bit cumbersome. Then we added the static 
parse and parseStrict methods to avoid using the JSON APIs anywhere in our 
code.

It is definitely best practice to provide these values in the host HTML 
page as embedded Javascript.

If there's interest, I can include this in 
our http://code.google.com/p/gwt-traction/ project so other people can just 
use it as-is.

-Andy

On Monday, July 8, 2013 4:02:00 AM UTC-4, Thomas Broyer wrote:



 On Monday, July 8, 2013 3:58:29 AM UTC+2, Joel Malchiondo wrote:

 I would like to be able to pass a bunch of values from the server to the 
 client and store them on the client side inside global vars. I tried doing 
 this by creating a properties from a properties file on the server side and 
 returning this in an rpc call. but when i do this i get an error No source 
 code is available for type java.util.Properties; did you forget to inherit 
 a required module?. I have tried googling around but i cant seem to find a 
 solution to this error. Does anyone have any ideas of how to fix the error 
 or how to pass the variables to the client a better way?


 IMO, a better way is to pass the values through the HTML host page: 
 http://www.gwtproject.org/articles/dynamic_host_page.html 


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


/

  Traction Software, Inc. Confidential and Proprietary Information

  Copyright (c) 1996-2013 Traction Software, Inc.
  All rights reserved.

/

// PLEASE DO NOT DELETE THIS LINE -- make copyright depends on it.
package com.traction.gwt.traction.client;

import java.util.Set;

import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONBoolean;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.json.client.JSONValue;

/**
 * Options are just a wrapper around a JSONObject with a standard
 * layout.
 *
 * Currently we don't check for JSONNull which means that we can't
 * specify null to override a default. I don't think we need to do
 * that anyway, but I'll add it when needed. [ajm 16.Apr.2009]
 *
 * NOTE: Options.get() and Options.get(name) will never return null,
 * even if there are no options specified in the view.
 *
 * --- Render in an HTML Script tag ---
 *
 * var gwtOptions = {};
 *
 * gwtOptions.Global = {
 *proj: foo
 * };
 *
 * gwtOptions.AddPrincipal = {
 *isAclEditor: false
 * };
 *
 *
 * --- Access from GWT ---
 *
 * From anywhere:
 * Options globalOptions = Options.get();
 * Options options = Options.get(AddPrincipal.class);
 *
 * In AddPrincipal:
 * Options options = Options.get(this);
 *
 *
 */
public final class Options {

// --
// static access to options

/**
 * Returns the set of options for a specified object.
 */
public static final Options get(Object obj) {
	return get(obj.getClass());
}

/**
 * Returns the set of options for a specified object.
 */
public static final Options get(Class? cls) {
	final String clsname = cls.getName();
	final int period = clsname.lastIndexOf('.');
	return get((period = 0) ? clsname.substring(period+1) : clsname);
}

/**
 * Returns the set of options with a specified name.
 */
public static final Options get(String name) {
	init();
	return root_.getOptions(name);
}

/**
 * Returns the global options, where common properties like
 * proj are specified.
 */
public static final Options get() {
	init();
	return global_;
}

// --
// static initializer

private static final native JavaScriptObject getRoot

Re: Gwt Time picker widget

2013-06-24 Thread Andy
Hi Jonas, I'm glad you like them. We're not Maven users, so I haven't 
bothered. That said, I'm happy to do it.

Do you have an example that you can point me to? My ant build is mostly 
based on the one used by an older version of GQuery combined with some old 
incubator build stuff. I assume building with Maven will make it easier to 
publish but I could just keep it an ant build with a separate publish.

Do GWT projects indicate a dependency on GWT or is that implied and ignored?

AutoSizingTextArea is currently dependent on gwtquery (for getComputedStyle 
using GQuery.$(e).css(name, true)). Should that be a separate artifact?

Cheers,
Andy

On Thursday, June 20, 2013 3:50:42 AM UTC-4, Jonas wrote:

 This is great!

 I really like the GroupedListBox and UTCTimeBox, which really should have 
 been provided in GWT Core.
 Any chance to see a publication to maven central for these widgets?


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




Re: GWT and memory leaks

2013-06-19 Thread Andy Stevko
I prefer to head off managing the handler memory leaks by holding the
registrations in a View data member that gets automatically released as the
view is garbage collected.

The sencha gxt library makes it easy to capture and track registrations
using the GroupingHandlerRegistration. It should be straightforward to
rewrap this functionality in a custom container.


 class MyView extends Composite {
/**
 * prevent leaks from handlers
 */
protected GroupingHandlerRegistration handlerRegistrations = new
GroupingHandlerRegistration();

  public initWidget() {
  // always capture handler regs as they are created.
  handlerRegistrations.add(this.myButton
.addSelectHandler();

  }
}


On Wed, Jun 19, 2013 at 8:37 AM, Nicholas nicholasfle...@gmail.com wrote:

 Hi !

 We are encountering some memory leaks issues (mainly in IE of course) in
 our application that is based on the MVP pattern. After a deep code
 analysis we discovered that:

  - We forgot to remove some handlers (using removeHandler() method from
 HandlerRegistration) on some custom widget we have created.

  - Some of the core GWT widget we use (such as DateBox or DialogBox) have
 some handler registrations that are never removed using the previous method.

  - Some of the handlers added in the bind() method of some presenters were
 also never removed, from the global EventBus or even on some widgets

  After reading some interesting documentation and other developpers
 experiences such as
 https://developers.google.com/web-toolkit/articles/dom_events_memory_leaks_and_youor
 http://www.draconianoverlord.com/2010/11/23/gwt-handlers.html it seems
 that removing handlers in the onUnload() method of a Widget seems to be
 pointless in most cases, as GWT already manage to do that ...  and that
 would explain why some of the core GWT widgets don't even care to remove
 those handlers ...

 Does it worth going through each component on which we didn't unregistered
 some handlers in the onUnload method and unregister those handlers or is it
 just pointless, meaning that we should rather focus on the application part
 (EventBus, Presenters etc ...)?

 In a more general way, is there a way to detect (unit tests or integration
 tests) that all listeners of an event source are actually removed when they
 should have ?

 Thanks !

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: Gwt Time picker widget

2013-06-19 Thread Andy
Hi Kedar, We made a widget that sounds like what you need. It's called 
UTCTimeBox and you can get it from:

http://code.google.com/p/gwt-traction/

There's more info in this blog post:

http://traction.tractionsoftware.com/traction/permalink/Blog1986

Cheers,
Andy

On Wednesday, June 19, 2013 2:53:39 AM UTC-4, kedar vyawahare wrote:


 Hi,
 I am looking for a widget in GWT that allows the user to choose a specific 
 time. I am using the GWT Date Picker to choose the date but I am not able 
 to find a suitable Time Picker. I have had a look at a couple of 
 suggestions  that emulate the jQuery Time Picker as well as GWT Incubator 
 Demo but none match my requirement. I am looking for a space-efficient 
 widget maybe like a textbox that allows to enter suitable time values.
 Thanks in advance

 -- 

 Thanks  regards ,

 Kedar  

  
  

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




Re: Timezone difference issue

2013-05-29 Thread Andy
There are many threads about these issues. We solved this problem by 
wrapping the DateBox with a class called UTCDateBox that you can get 
here: http://code.google.com/p/gwt-traction/

I wrote about it 
here: http://traction.tractionsoftware.com/traction/permalink/Blog1986

Cheers,
Andy

On Wednesday, May 29, 2013 9:05:03 AM UTC-4, kedar vyawahare wrote:

 Hi all,

  I am using a date picker in  date box  and  storing the date in 
 database.But database is remotely hosted  which is in different timezone.

 So the date get changed as there is timezone difference. 

 Please suggest some way out.

 -- 

 Thanks  regards ,

 Kedar  

  
  

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




Re: Timezone difference issue

2013-05-29 Thread Andy

A java.util.Date will always have a time component because it is 
represented as the number of seconds since 1970.

The UTCDateBox normalizes that time component to midnight in GMT so that it 
will work in all timezones.

The DateBox does not normalize the time component so the Date in the 
DateBox will depend on the timezone. As I understood, this is his problem 
and this is the reason we created the UTCDateBox.

On Wednesday, May 29, 2013 10:34:10 AM UTC-4, Satyarao Kambapu wrote:

 Hello Andy, 
   As per my experience the difference between DateBox and UTCDateBox is 
 Time Component. The UTCDateBox returns the date with specific time, where 
 as DateBox is not.
  I think, the problem of  Kedar Vyawahare is not this one.



 On Wed, May 29, 2013 at 7:52 PM, Andy pul...@gmail.com javascript:wrote:

 There are many threads about these issues. We solved this problem by 
 wrapping the DateBox with a class called UTCDateBox that you can get here: 
 http://code.google.com/p/gwt-traction/

 I wrote about it here: 
 http://traction.tractionsoftware.com/traction/permalink/Blog1986

 Cheers,
 Andy

 On Wednesday, May 29, 2013 9:05:03 AM UTC-4, kedar vyawahare wrote:

 Hi all,

  I am using a date picker in  date box  and  storing the date in 
 database.But database is remotely hosted  which is in different timezone.

 So the date get changed as there is timezone difference. 

 Please suggest some way out.

 -- 

 Thanks  regards ,

 Kedar  

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




 -- 
 Satya
  

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




Re: Timezone difference issue

2013-05-29 Thread Andy
Hi David,

I can't tell if you're asking me or the OP, but I'll tell you what we're 
doing it and I believe it is what Kedar should be doing.

The UTCDateBox implements HasValueLong and we pass a Long over RPC and 
store a Long on the server. This number always represents midnight in GMT 
on a selected date.


On Wednesday, May 29, 2013 10:59:47 AM UTC-4, stuckagain wrote:

 Hi,

 How are you sending the date over RPC ? as a Date ? And how are you 
 storing it ? as a string ?
 The Date object does not allow you to change the timezone, it is always 
 using the local one since it does not store it with the Date object.

 AFAIK the Date object behaves correctly in GWT, it can sometimes be a bit 
 strange if you don't include the timezone or when sometimes you convert it 
 to a string in the browser vs on the server side and those machines are in 
 a different timezone.

 David

 On Wed, May 29, 2013 at 3:05 PM, Kedar Vyawahare 
 kedar.vya...@gmail.comjavascript:
  wrote:

 Hi all,

  I am using a date picker in  date box  and  storing the date in 
 database.But database is remotely hosted  which is in different timezone.

 So the date get changed as there is timezone difference. 

 Please suggest some way out.

 -- 

 Thanks  regards ,

 Kedar  

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




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




Re: Problem with DateBox

2013-04-23 Thread Andy
What time zone are you in? It sounds to me like you're running into 
timezone issues.

The DateBox returns a Date representing a specific instant in time, not a 
day even though most people are using it to select a day. Worse, 
depending on how you set the date when you reload the form, you can easily 
get off-by-one errors as you describe. We had a similar issue when adding 
due dates to tasks and supporting all day events in our software.

I would recommend you check out our UTCDateBox at 
http://code.google.com/p/gwt-traction/. I would have made the same 
recommendation to Jens in that original discussion.

-Andy

http://code.google.com/p/gwt-traction/
http://tractionsoftware.com

On Tuesday, April 23, 2013 1:33:23 AM UTC-4, Dominic Warzok wrote:

 Thanks I will read it maybe I find a solution there ;) 

 On Friday, April 19, 2013 12:19:08 PM UTC+2, Jens wrote:


 Maybe there is a problem with winter and summer time?


 That could be, especially for older dates. We also had problems with it, 
 take a look at: 
 https://groups.google.com/d/topic/google-web-toolkit/e7IqbcJIzTY/discussion

 -- J. 



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




Re: Working with Dates/Timezones

2013-04-23 Thread Andy
A bit late, but I would recommend you check out our UTCDateBox at 
http://code.google.com/p/gwt-traction/

I'm justing leaving this comment here so that people discovering this 
thread later have an easy solution.

-Andy

On Sunday, August 5, 2012 2:52:58 PM UTC-4, Jens wrote:

 Here is the TZ script from my hobby running site. It is a tad hackish 
 (from 4 years ago), set to update a hidden select menu in forms. I have not 
 yet had any complaints about it's output, but I don't promise anything 
 either. Hopefully you might find it helpful and can make a JSNI derivative 
 if it meets your needs.


 Thanks! I'll take a look at it.

 -- J.


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




Re: Unable to find '.gwt.xml' on your classpath (again)

2013-04-10 Thread Andy King
Well, I found a solution, although I don't know why the original project 
doesn't work. The fact that the project ran with no problem on one machine, 
but had problems on the other machine, seemed to point to a difference in 
configuration. I renamed the .html file, TimeToPlay.html, to 
TimeToPlay2.html, and changed the run configuration to point to it. This 
was successful, and the application now runs. If I change the name (an run 
configuration) back to TimeToPlay.html then it appears that a different 
html file is being picked up ... I just can't figure out where it's coming 
from.

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




Unable to find '.gwt.xml' on your classpath (again)

2013-04-08 Thread Andy King
I am at my wits end with this problem ... I've looked at suggested 
solutions, but none have worked.  Here is the (all-too-familiar) error that 
I see in the GWT Development Mode window:

[DEBUG] [fosterapet] - Loading inherited module 'fosterapet'
[ERROR] [fosterapet] - Unable to find 'fosterapet.gwt.xml' on your 
classpath; could be a typo, or maybe you forgot to include a classpath 
entry for source?
[ERROR] [fosterapet] - Failed to load module 'fosterapet' from user agent 
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) 
Chrome/26.0.1410.43 Safari/537.31' at 127.0.0.1:51716

The project that is referenced in this error, fosterapet, is unrelated to 
the project that I'm working on ... I don't want to inherit the gwt.xml 
file from the fosterapet project.  I have the new project on two machines, 
and it works without a problem on one of the machines.  On the machine that 
gives the above error I have even deleted the entire project (deleting the 
contents on disk), deleted the run configuration for the project, and 
imported the project from SVN.  I then right-clicked on the project (in 
Eclipse) and selected Run As - Web Application, and get the same error. 
 I just don't know where the reference to the fosterapet project is 
coming from.  I've searched all files under the project directory using 
grep, and there doesn't appear to be any mention of fosterapet.  Note 
that there is no gwt-unitCache directory when I try to run the project for 
the first time.  Perhaps there's something in the browser (Chrome) that is 
cached?

I am so sorry to ask what seems to be a question that has been answered 
many times before.  The only difference that I see in my situation is that 
the referenced file is not something that I even want in this project.  I 
really appreciate any help that is offered!

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




Re: Need some help with Totoe and XML

2013-03-27 Thread Andy King
Where is this XML located?  Are you receiving on the client machine 
somehow?  I realize that Totoe is a client-side parser and helper, but it 
would be useful to have some context for why you're doing.  Also, what have 
you tried already?

On Wednesday, March 27, 2013 8:01:14 AM UTC-7, skippy wrote:

 I have this XML: 
 I need to get at Group Name=ACCT00305” and at all the children and 
 values like this: 
 ACCT000   31MEB0009 
 NAME055  Miss Taylor R Williams 



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




Re: if you start a new project...

2013-03-21 Thread Andy Stevko
HI Igor,
What matters most are the dependencies your common code requires.
Common patterns for objects that will be serialized or instantiated on both
the client and server are model domain DTOs (for GWT-RPC), business logic,
and validation.
To be supported on the client, these need to be free of unsupported library
references (like BigDecimal) and serialized instrumentation (like an ORM or
EJB might attach).
Using RequestFactory rather than RPC or roll your own, your DTOs are
defined as bean interfaces and any logic is packaged either in your model
or presenter layers
Validation is the best candidate for common code with the client supporting
JSR-303 Bean Validation.

My favorite package for creating clean DTOs usable in both the client and
server is Objectify for AppEngine.
--Andy Stevko


On Thu, Mar 21, 2013 at 12:52 AM, Igor Zubchenok i...@zubchenok.com wrote:

 Hi!

 If I start a new enterprise project from a scratch. The project will have
 both server and browser app with a lot of common code in java, would you
 recommend to use GWT for reusing the common code in browser app? Or may be
 another solution?

 Thank in advance,
 Igor

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: Facebook DIV not rendering on a GWT page

2013-03-21 Thread Andy Stevko
I assume you see it loading facebook's all.js because you see it being
fetched and into the script element facebook-jssdk.
I think the problem is that facebook's js library assumes the DOM is
statically built, scans the document and enhances the proper elements when
loaded.
I once ran into a problem with the facebook scripts needing to be
retriggered so that they would rescan the DOM and modify elements added
dynamically.

After you add your like-box to the DOM, try calling the FB parse method
from within a JSNI wrapper

public static native void reparse(String elementid) /*-{
  FB.XFBML.parse(document.getElementById(elementid));
}-*/;




On Thu, Mar 21, 2013 at 1:09 AM, Xybek xyb...@gmail.com wrote:

 I have this script which I put on top of the GWT nocache.js

 head
 script type=text/javascript language=javascript
 (function(d, s, id) {
   var js, fjs = d.getElementsByTagName(s)[0];
   if (d.getElementById(id)) return;
   js = d.createElement(s); js.id = id;
   js.src = 
 //connect.facebook.net/en_US/**all.js#xfbml=1http://connect.facebook.net/en_US/all.js#xfbml=1
 ;
   fjs.parentNode.insertBefore(**js, fjs);
 }(document, 'script', 'facebook-jssdk'));
 /script
 script type=text/javascript language=javascript
 src=app/app.nocache.js/**script
 /head
 body
 div id=fb-root/div
 div id=rootPanel/div
 /body

 And on one of the page of the my site (which I use Errai-UI)

 This is added on the gwt page:

 HTMLPanel likebox = new HTMLPanel(div class='fb-like-box'  datahref='
 http://www.facebook.**com/platform http://www.facebook.com/platform'
 data-width='595' data-show-faces='true' data-stream='true'
 data-header='true'/div);

 likepanel.add(likebox); // Add to the SimplePanel

 The problem I am facing is that in my GWT application, when the site lands
 on the page where this panel is injected, the Facebook like box doesn't
 get rendered, even if I look at the DOM, the `div class='like-box' ...`
 is there in the DOM tree.

 What works is that I need to do a full page refresh (in DevMode), on the
 currect page: example: `/mysite#PageWithFBDiv`

 Also, the page refresh trick only works in DevMode but fails to do the
 trick when compiled.

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





-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: if you start a new project...

2013-03-21 Thread Andy Stevko
Thanks for the correction Thomas, old wounds are hard to forget -
especially with enterprise projects that refuse to upgrade GWT versions.
Yes, BigDecimal support was added in v2.1. and Serializing Enhanced Classes
has greatly removed the pain associated with detaching/attaching persistent
classes.



On Thu, Mar 21, 2013 at 6:43 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Thursday, March 21, 2013 2:08:45 PM UTC+1, Stevko wrote:

 To be supported on the client, these need to be free of unsupported
 library references (like BigDecimal) and serialized instrumentation (like
 an ORM or EJB might attach).


 BigDecimal *is* emulated by GWT, and GWT-RPC *tries* to ignore JPA/JDO
 instrumentation (note that lazy-collections aren't supported though).

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: Facebook DIV not rendering on a GWT page

2013-03-21 Thread Andy Stevko
FB is defined within the facebook javascript library.
https://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/

Perhaps it is $FB as required by the JSNI coding basics guide
https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI?hl=de



On Thu, Mar 21, 2013 at 10:49 AM, Xybek xyb...@gmail.com wrote:

 On 03/21/2013 09:37 PM, Andy Stevko wrote:

 I assume you see it loading facebook's all.js because you see it being
 fetched and into the script element facebook-jssdk.
 I think the problem is that facebook's js library assumes the DOM is
 statically built, scans the document and enhances the proper elements
 when loaded.
 I once ran into a problem with the facebook scripts needing to be
 retriggered so that they would rescan the DOM and modify elements added
 dynamically.

 After you add your like-box to the DOM, try calling the FB parse method
 from within a JSNI wrapper

 public  static  native  void  reparse(String  elementid)  /*-{

FB.XFBML.parse(document.**getElementById(elementid));

 }-*/;




 On Thu, Mar 21, 2013 at 1:09 AM, Xybek
 xyb...@gmail.com
 mailto:xyb...@gmail.com wrote:

 I have this script which I put on top of the GWT nocache.js

  head
  script type=text/javascript language=javascript
  (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id http://js.id =
 id;
js.src =
 
 //connect.facebook.net/en_US/**__all.js#xfbml=1http://connect.facebook.net/en_US/__all.js#xfbml=1
 
 http://connect.facebook.net/**en_US/all.js#xfbml=1http://connect.facebook.net/en_US/all.js#xfbml=1
 ;
fjs.parentNode.insertBefore(__**js, fjs);

  }(document, 'script', 'facebook-jssdk'));
  /script
  script type=text/javascript language=javascript
 src=app/app.nocache.js/__**script

  /head
  body
  div id=fb-root/div
  div id=rootPanel/div
  /body

 And on one of the page of the my site (which I use Errai-UI)

 This is added on the gwt page:

 HTMLPanel likebox = new HTMLPanel(div class='fb-like-box'
   datahref='http://www.facebook.**__com/platform

 http://www.facebook.com/**platformhttp://www.facebook.com/platform'
 data-width='595'
 data-show-faces='true' data-stream='true' data-header='true'/div);

 likepanel.add(likebox); // Add to the SimplePanel

 The problem I am facing is that in my GWT application, when the site
 lands on the page where this panel is injected, the Facebook like
 box doesn't get rendered, even if I look at the DOM, the `div
 class='like-box' ...` is there in the DOM tree.

 What works is that I need to do a full page refresh (in DevMode), on
 the currect page: example: `/mysite#PageWithFBDiv`

 Also, the page refresh trick only works in DevMode but fails to do
 the trick when compiled.

 --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to
 
 google-web-toolkit+__**unsubscr...@googlegroups.comgoogle-web-toolkit%2b__unsubscr...@googlegroups.com
 
 mailto:google-web-toolkit%**2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 **.

 To post to this group, send email to
 google-web-toolkit@__googlegro**ups.com http://googlegroups.com
 
 mailto:google-web-toolkit@**googlegroups.comgoogle-web-toolkit@googlegroups.com
 .
 Visit this group at
 
 http://groups.google.com/__**group/google-web-toolkit?hl=enhttp://groups.google.com/__group/google-web-toolkit?hl=en
 
 http://groups.google.com/**group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en
 **__.
 For more options, visit 
 https://groups.google.com/__**groups/opt_outhttps://groups.google.com/__groups/opt_out
 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .






 --
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough.
 M. Andretti




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

Re: XMLParser Problems

2013-03-20 Thread Andy King


I don't know of any way to use XPath against the GWT XML library, but 
that's not to say that you can't do so.  In my work with it I just walk 
through the Document object and extract the elements and attributes into my 
own structure.  If you know the structure of your XML ahead of time then 
this is really very easy.

Andy

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




Re: XMLParser Problems

2013-03-17 Thread Andy King
First, it appears that your XML is invalid ... your last child element has 
a beginning tag of ACCT005 and an ending tag of vlst.  Assuming that 
this isn't your only problem, I think you are just not getting the child 
nodes of the item element, but instead you are getting the child nodes of 
the document (which would be the item element node).  This is how I'd 
fulfill your requirements:

  final Document doc = XMLParser.parse(item);
  final Element itemElement = 
(Element)doc.getElementsByTagName(item).item(0);
  Node node = itemElement.getFirstChild();
  while (node != null) {
if (node.getNodeType() == Node.ELEMENT_NODE) {
  // node is an account element
}
node = node.getNextSibling();
  }

Note that not all child nodes will necessarily be Element nodes ... hence 
the check for NodeType == Node.ELEMENT_NODE.

Andy

On Thursday, March 14, 2013 6:02:13 AM UTC-7, skippy wrote:

 I am trying to load this xml file into a hashmap or list using XMLParser.  
 What ever I try, I keep getting a node list of 1 with all the nodes in it.
  
 Here is an example of the xml file:
 ...


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




[gwt-contrib] Re: Maven-ization Status

2013-03-17 Thread Andy Stevko
A question concerning the partitioning of the code... Will this exercise
help allow for code splitting of the GWT libraries? Even with severe code
splitting, I am not able to reduce the initial load size to below a
megabyte which is prohibitive for a mobile device.


On Sun, Mar 17, 2013 at 5:06 AM, Thomas Broyer t.bro...@gmail.com wrote:

 [please follow-up to gwt-contrib]

 OK, another trap: Window (WindowImplIE) uses TextResources, Resources
 (ExternalTextResource) uses JsonpRequestBuilder, which needs Timer, which
 in turn needs Window (and specifically the thing that needs TextResources);
 the loop is closed.
 I'll have to cut the Jsonp dependency on Timer the same way I already cut
 the dependency between RequestBuilder and Timer, except that XHR generate
 an event themselves when the page unloads so it wasn't a problem, but I
 don't think there's an equivalent for json-p. The alternative would be to
 move ExternalTextResource to its own artifact, separate from gwt-resources;
 BTW, moving CssResource and ImageResource out of gwt-resources would also
 remove the dependency on i18n; not sure what's best…

 Sigh…


 On Fri, Mar 15, 2013 at 11:56 AM, Thomas Broyer t.bro...@gmail.comwrote:



 On Wednesday, March 13, 2013 5:31:25 PM UTC+1, Ray Cromwell wrote:


 Hey guys,
   Google I/O is almost upon us, and it's been a year since we started
 GWT steering. I feel like if there's one big thing we could announce this
 year that people would love, it would be the opening of the external
 commits combined with mavenization.


 +1


 It seems like we have a number of people interested in rolling up
 sleeves, and I think if we could finish dis-entanglement, then we could
 actually work in parallel in doing poms for many of the pieces of it and
 finish rather quickly.  I volunteer to spend some late nights helping out.

   Maybe someone could produce a quick status / overview of the current
 state and what the remaining problems are.


 My goal was to get gwt-junit so we can run the tests in other modules
 (create gwt-core-tests, gwt-rpc-tests, etc. and for the other modules not
 used *by* gwt-junit then simply depend on gwt-junit and run the tests in
 the module itself). I'm almost done but my working tree is a bit of a mess
 (with other things started but unfinished, etc.) Let me get to a clean
 state this week-end and push everything to my gwt-sandbox GitHub repo, then
 we can work in parallel on the remaining modules.
 Last I checked, the remaining issue was with gwt-i18n; there are
 intricate dependencies: i18n depends on safehtml, but the SafeHtmlTemplates
 generator uses a base generator that depends on GwtLocale (oh, and
 SafeHtmlUtils depends on c.g.g.http.client.URL, under a GWT.isClient()
 check). I had a discussion with John Tamplin about it back in December (Ray
 you were in copy, it was a private follow-up to the Disentangle module
 dependencies review) and he was proposing having I18N (and SafeHtml and
 RequestBuilder, or at least URL) in gwt-core. I'm not opposed to it and
 that would probably simplify a few things; what do you think?

 The next step will be the tools, samples and the SDK distrib (and of
 course continuous integration).
 One thing that can be done in parallel with my ongoing work right now is
 to deal with the external dependencies and possibly start deploying the
 missing ones to Central (or another Maven repo as a sandbox), so we can
 reconcile them with the current POMs that use scope=system dependencies.

 As a side-note, I have a new gwt-maven-plugin written from scratch that
 provides gwt-lib and gwt-app packaging with (what I hope are) sensible
 defaults for GWT projects. I would like to move it to GWT proper and use it
 for GWT's own modules *and* release it at the same time as GWT for global
 consumption.
 One feature I've added recently is a way to automatically generate a
 gwt.xml file from the Maven dependencies (based on a
 META-INF/gwt/mainModule found in these dependencies), with optional extra
 inherits (for those dependencies that don't have the mainModule file or
 that provide more than one module), rename-to and entry-point class. The
 remaining open question is where to put the rest of the module
 configuration: either have a src/main/module.gwt.xml and merge the
 inherits from dependencies in it (and remove the extra inherits and
 entry-point from the POM configuration; the short module name can still
 be useful for application packaging), or put everything in the POM. For now
 I generate a minimal gwt.xml, and if you want more you just disable the
 generation and provide the full module yourself (and lose the inherits
 from dependencies feature).
 You can check it out at https://github.com/tbroyer/gwt-maven-plugin and
 I intend to release an alpha this week-end so people can start evaluating
 it. The earlier we use it in GWT, the simpler the POMs will be, saving us a
 few hours of work (and we'll have an official Maven plugin, even if
 experimental in the 

Re: GWT comet in push server mode?

2013-02-12 Thread Andy Stevko
Many projects have used comet to push data from server to client. This
library seems stable although no changes in almost a year.
Appengine's channel api uses comet, works really well, and is easy to
implement.
IMO, web sockets are more desirable to comet in terms of resource
utilization.
WS does not have the same Single Origin limitations and provides a more
reliable connection.


On Tue, Feb 12, 2013 at 5:04 AM, Maria Garcia 
maria.garcia.aguirrego...@gmail.com wrote:

 Hi,

 I have used comet library
 http://code.google.com/p/gwt-comet/wiki/GettingStarted to create a
 application. I would like to use comet to server pushes data to my client.
 Is it possible?

 Regards,

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: What is the best way to create multiple versions a GWT application for Desktop / Tablet vs Cell phones?

2013-02-12 Thread Andy Stevko
If this is a MPV application, I would change the View to match the form
factor and keep the Model  Presenter the same.



On Tue, Feb 12, 2013 at 10:57 AM, thesilverham...@gmail.com wrote:

 This is going to be a very complex web application.  I can't get away with
 just changing things in a CSS file.  The entire GUI structure will be
 different between mobile and desktop.  IE: Rotten tomatoes viewed on a
 desktop looks and feels very different than the same web site on a cell
 phone.  It is not just a scaled down version.

 We want both modes to look and feel very good. I was planning on having
 a separate URL for each app, but Ill look into the single URL approach that
 re-directs or changes to the appropriate URL depending on the browsers size.

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: WebScokets GWT

2013-02-11 Thread Andy Stevko
I've had some success using the GWT/JMS/Stomp/WebSocket protocol stack
which is built on Web Sockets.
The Stomp WebSocket wrapper handles much of the complexity of streaming
data over web sockets and maintaining the connection.
http://code.google.com/p/gwt-stomp-jms/


On Mon, Feb 11, 2013 at 9:55 AM, Maria Garcia 
maria.garcia.aguirrego...@gmail.com wrote:

 Hi all,

 I want to implement a simple sample with websockets in GWT but I don't
 know the best solution.

 I have cheked Atmostphere but I think it's quite complex... moreover, I
 can't execute de gwt-example..

 Some advices will be helpful or a simple library...

 Regards,
 María

 PS. I also checked http://code.google.com/p/gwt-ws/ but I can't use it
 because of Jetty..

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: Go from one module to another module

2013-02-09 Thread Andy Stevko
The way you defined the demarcation lines is uncommon for a GWT
application. They don't usually (re)load the entry point as the user
navigates within the application. Passing data from html page to html page
via URL param is exposed publicly.  SessionStorage is could be the way to
go because the data is tied to the window although that makes it accessible
to any url loaded into that window (easy to XSS).

Changing your architecture slightly would greatly increase your security.
Wrap your modules into a single combined module that will own the page
document root. Use the new parent module to contain any session information
you want to share among the submodules. Navigate from module to module via
the parent wrapping the modules main panel. Done well, each submodule could
manifest as a kind of portlet. Code split the parent to download the Megs
of common libraries (GWT, GXT, etc) only once.




On Sat, Feb 9, 2013 at 10:18 AM, emurmur emur...@conceptuamath.com wrote:

 You can set values in localstorage in one page and they can be read in
 another, provided they are in the same domain.  Localstorage is not secure,
 so do not write sensitive data into localstorage.


 On Friday, February 8, 2013 3:50:39 AM UTC-8, Visruth CV wrote:

 Hai,
 I have many gwt modules in my project. Each module has an entry point,
 html and css page. I want to go from one module from another module and I
 should also be able to pass values with it. Consider, the first module
 contains a login page and the second contains account page. After
 authentication, how can I go to the second module (with passing some
 details like user Id user name etc to the second module). Can anybody help
 me please...Thanks in advance.

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: The Chrome 24 Animation bug and unstable APIs in general

2013-01-30 Thread Andy
It sounds like our situations are fairly similar and we'd both benefit from 
having the most stable foundation possible. I'm still happy with a switch 
defaulting to using experimental apis, but I'd love to have a switch there.

The release cycle of Chrome is much more frequent than the *effective* release 
cycle of our software. While we might release as or even more often as 
Chrome, what really matters is when that release is deployed and that 
lengthens the cycle. What this means is that the code we ship today needs 
to work with the next 6 versions of Chrome. There's nothing I can do--other 
than be careful about the apis I use and trust that Chrome will maintain 
backward compatibility--to test and prepare for the next 6 versions today. 
Experimental apis don't come with the promise of backward compatibility, so 
I consider them off limits unless absolutely necessary.

Thank you for your perspective and all of the work you do with gwt.

-Andy


On Wednesday, January 30, 2013 8:48:41 AM UTC-5, Thomas Broyer wrote:



 On Wednesday, January 30, 2013 4:11:41 AM UTC+1, Andy wrote:

 Thanks Thomas. Another great discussion, but I'm really surprised by all 
 of the enterprise software hate.

 Obviously, the core issue is that too many people don't get the Web, but 
 that's another debate.
 Of those people, who came complaining in the forum, some said they 
 couldn't even recompile their app with the workaround (i.e. we're not even 
 talking about updating to GWT 2.5 here, which would imply going through 
 non-regression tests, etc. just applying a small workaround, recompiling 
 and redeploying).


 As I said, we sell software that is compiled by GWT and deployed behind 
 firewalls within organizations. We can recompile and post patches, but it's 
 up to them to redeploy. They might not see that code for 6-12 months in 
 some cases depending on their policies. To give you a sense of the 
 challenge, many of them are still using IE7 as their primary browser, but 
 of course those people weren't affected.

 You might argue everything web should be SAAS, but many of our customers 
 aren't going there and have good reasons.


 That's not what I'm saying.

 In your case, you're an editor so you have the responsibility of testing 
 your app with beta/dev versions of browsers before they reach your 
 customers, and if you find an incompatibility then you tell your customers 
 to update their installs of your app with the version that contains the 
 fix/workaround. It is then the responsibility of your customers, if they'll 
 be affected by the issue, to deploy the new version or prevent their 
 browsers from updating: they chose to install/use a webapp, they should be 
 prepared to deploy such patched versions. As you said, it's up to them, 
 and they then have no reason to whine if they're not up-to-date: you gave 
 them a fix in due time (possibly even before they'd notice the issue).

 What I'm angry about is a bit different though: our customers ask us to 
 develop a webapp (we're not an editor, it's their app, they own it and are 
 responsible for its maintenance). Once deployed in production, they only 
 care about the server being up and running; they update their browsers but 
 don't plan for (preventive) maintenance of their apps (it holds for any 
 app, not only webapps, but webapps exacerbate the problem). Far too many 
 people don't even monitor their apps for security breaches: only a handful 
 of our customers ask us the list of 3rd-party products/tools/libs we've 
 used to build their app, and even less monitor them for vulnerabilities.
 It's no different from your customers not installing updates, except that 
 they probably pay you a license or other commercial support that includes 
 providing updates; in my case, once we deliver the app nobody does the 
 preventive maintenance. During the warranty period we fix those issues (we 
 might update vulnerable dependencies too, but it's not even part of the 
 deal), but once it's over it becomes our customer's responsibility, and 
 nobody does it (unless it's a LoB app, maybe). We have support contracts in 
 some cases, but it's only about fixing bugs (and sometimes adding 
 features); preventive maintenance is not part of the deal.

 You just can't let a piece of software live its own life, particularly 
 when it's a distributed app, even more if it's a webapp (because you have 
 even less control over the “client runtime environment”, i.e. the browser)


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




The Chrome 24 Animation bug and unstable APIs in general

2013-01-29 Thread Andy
I just wanted to share my thoughts about the recent chrome animation bug 
and how this could be avoided in the future. If I missed some follow-on 
discussion about this, please give me a link because I haven't seen 
anything. If you're not sure what I'm talking about, see these two links:

https://groups.google.com/d/topic/google-web-toolkit/UBWsvHYM4SE/discussion

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

The basic problem was 
that com/google/gwt/animation/client/AnimationSchedulerImplWebkit.java used 
prefixed javascript APIs (webkitRequestAnimationFrame 
and webkitCancelRequestAnimationFrame). Prefixed APIs are experimental and 
unstable. Chrome changed their implementation, which is their right, but 
this broke a bunch of deployed GWT applications and many people were 
frustrated. Chrome then reversed the implementation of their prefixed 
version, implementing the non-prefixed version to spec, and this issue 
should be resolved.

In this specific case, using the AnimationSchedulerImplTimer worked fine 
and is the workaround I suggested and some people have used. I would 
suspect that in most cases, there is never a requirement to use a prefixed 
API and a non-prefixed alternative could be provided, even if it might be 
less desirable.

Our application is used by 100s of customers and typically deployed behind 
their firewall. We release often, but some of our customers only update 
once or twice a year. If their browser is Chrome, their browser will be 
updated much more frequently and beyond our control.

Because of this, we would prefer not to use unstable APIs in our code.

*What I would like to see is an option, either a compile flag or a property 
in the .gwt.xml file, to toggle the use of unstable prefixed APIs.*

For certain applications, like implementing Quake in GWT (which is 
awesome http://www.youtube.com/watch?v=XhMN0wlITLk), it will be necessary 
to use some prefixed APIs.

For other applications like ours, stability is extremely important. We like 
using GWT because we can develop more solid code and have great tools. We 
see it mostly as a Java to Javascript compiler that neutralizes browser 
differences. We don't use uibinder, cells, activities/places, etc. Part of 
this is because we started using GWT at 1.5 and implemented our solutions 
for these things.

Based on the responses to the two threads I linked above, I think there are 
other people using GWT who would also prefer stability over using prefixed 
APIs. I'd appreciate hearing your thoughts.

Andy Keller
http://tractionsoftware.com
http://code.google.com/p/gwt-traction/

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




Re: The Chrome 24 Animation bug and unstable APIs in general

2013-01-29 Thread Andy
Thanks for the link. Good discussion. I was under the impression that there 
was other code that used prefixed js, but grepping the code just now I only 
find the animation impl.

I agree with your comments in that thread that it should be enabled by 
default and agree that 2.4 should have been officially patched to 2.4.1 as 
soon as the issue was known. As I've mentioned elsewhere, we're not using 
2.5 because there's nothing we particularly need and because of this issue:

https://groups.google.com/d/topic/google-web-toolkit/Snj52ylNSF4/discussion

In our particular case, we implemented an animation as a subclass of 
Animation that moves a dragged object back to its origin if it was dropped 
in an invalid location. It gives good user feedback that their drop failed 
(rather than just hiding the object being dragged) and if it is a little 
jerky because it is using a sub-optimal implementation, I'm ok with that. 
In our testing, it looked just fine with the Timer implementation.

Thanks,
Andy

On Tuesday, January 29, 2013 1:11:16 PM UTC-5, Jens wrote:

 Take a look at


 https://groups.google.com/d/topic/google-web-toolkit-contributors/Al-kyayYeQM/discussion

 -- J.


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




Re: The Chrome 24 Animation bug and unstable APIs in general

2013-01-29 Thread Andy
Thanks Thomas. Another great discussion, but I'm really surprised by all of 
the enterprise software hate.

Obviously, the core issue is that too many people don't get the Web, but 
 that's another debate.
 Of those people, who came complaining in the forum, some said they 
 couldn't even recompile their app with the workaround (i.e. we're not even 
 talking about updating to GWT 2.5 here, which would imply going through 
 non-regression tests, etc. just applying a small workaround, recompiling 
 and redeploying).


As I said, we sell software that is compiled by GWT and deployed behind 
firewalls within organizations. We can recompile and post patches, but it's 
up to them to redeploy. They might not see that code for 6-12 months in 
some cases depending on their policies. To give you a sense of the 
challenge, many of them are still using IE7 as their primary browser, but 
of course those people weren't affected.

You might argue everything web should be SAAS, but many of our customers 
aren't going there and have good reasons.

I hope you can appreciate my predicament.

On Tuesday, January 29, 2013 9:12:36 PM UTC-5, Thomas Broyer wrote:

 See also https://plus.google.com/114156500057804356924/posts/45D9ZfZkF28

 On Tuesday, January 29, 2013 7:11:16 PM UTC+1, Jens wrote:

 Take a look at


 https://groups.google.com/d/topic/google-web-toolkit-contributors/Al-kyayYeQM/discussion

 -- J.



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




Re: How to print a portion of the screen (like a view in AP) ?

2013-01-27 Thread Andy Stevko
This question was already answered in this thread
https://groups.google.com/d/topic/google-web-toolkit/7qSLr76O7WM/discussion



On Sun, Jan 27, 2013 at 12:37 PM, Celinio cel...@gmail.com wrote:

 Hi,
 I would like to ask if there is an easy way to print a portion of a screen
 in GWT.
 If a screen is composed of a header, a menu and a body and if i want to
 print the body only (with text and pictures eventually), how can i do that ?
 Is there a way to add a button PRINT that will only print the current
 content of the body ?

 I am guessing the best way to do it would be to open the body in a popup
 and then add a button PRINT so the entire content of the popup will be
 printed it out.
 We are using GWT 2.4 with Activities and Places.

 Thanks for helping.

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






-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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




Re: Eclipse, GWT, which class to use and how to call it via a hyperlink?

2013-01-16 Thread Andy King
Glyn, just my two cents ... please take it with a grain of salt if you 
don't like it! ... it appears that you have programming experience, and I 
am impressed that you have got as far as you have ... my recommendation is 
that you go through a Java book (e.g., Head First Java) and a GWT book 
(e.g., GWT In Action, 2nd Edition) before trying to proceed with a major 
project.  I don't think it will take you much time to get through the Java 
training, and when you start the GWT book you could just develop your 
application as you learn.

On Monday, January 14, 2013 3:34:32 PM UTC-7, Glyndwr Bartlett wrote:

 I am new to both java and GWT and am using Eclipse (Juno with the GWT 
 plugin) to develop an application for a volunteer organisation. I have 
 created a class called AwardTracker (in org.AwardTracker.client) which is 
 my entry point. This displays a standard login page. I followed a tutorial 
 for this and it is working. The next part I want to implement is to build a 
 page to create an account. For this I have a “Create an account” hyperlink 
 on the login page. I have created a new Package 
 (org.AwardTracker.client.CreateAccount) to hold this class. 

 To create the class I am selecting, at the top of the page, Create new 
 visual classes / GWT / GWT Java UI / Composite is this the correct one?

 Once I have created the page how do I call it with the following event 
 handler?

  Hyperlink hprlnkCreateAnAccount = *new* Hyperlink(Create an 
 account, *false*, newHistoryToken);

  hprlnkCreateAnAccount.addAttachHandler(*new* Handler() {

 *public* *void* onAttachOrDetach(AttachEvent event) {
 }
 Thanks,
 Glyn


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



Re: GWT Reflection

2013-01-11 Thread Andy Stevko
I create a Command instance and pass that into the event handler

On Jan 11, 2013 7:32 AM, Jens jens.nehlme...@gmail.com wrote:

 To mimic method invocation in GWT you need to generate code that handles
all possible methods for a given class. A typical example that exists in
GWT is ClientBundleWithLookup which will be generated by GWT and has a
method getResource(String name). The generated code of getResource(String
name) may look like:

 ResourcePrototype getResource(String functionName) {
   if(existingFunction1.equals(functionName)) {
 return this.functionName();
   }
   if(existingFunction2.equals(functionName)) {
  return this.functionName2();
   }
 }

 So basically it dispatches the method name and calls the method. I think
there are some libraries that provide limited reflection support for GWT,
but always keep in mind that they probably will generate lots of code that
GWT can not optimize away in most cases (like the function above can't be
optimized if the input is dynamically calculated).


 -- J.

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

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Chrome 24 and GWT

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

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

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



Re: Maintaining security in an additional servlet

2013-01-07 Thread Andy Stevko
If the content is highly sensitive, then using adobe's own method of
securing it would be the simplest method. Encrypting / Password protecting
a pdf file is pretty basic security that would stop the casual hacker.

Your service needs to prevent request record and replay attacks.
Viewing unprotected byte stream within the browser is pretty weak.
An unprotected byte stream response can be monitored and redirected.

For a reasonably vetted model of securing requests and responses, you might
look at how AWS SimpleDB, etc authenticates signed timestamped requests and
encrypted responses.




On Mon, Jan 7, 2013 at 11:23 AM, Flying-w simonjone...@googlemail.comwrote:

 Once again thanks for the suggestions.  Email won't work here however, as
 the GWT application is an interactive workflow management tool.  When a
 user wishes to see a PDF, they need to see it right now rather than wait
 for a link to be supplied via email.  If browser is the only way forward,
 how can I do this?

 Thanks
 Simon


 On Monday, January 7, 2013 4:47:56 PM UTC, jchimene wrote:

 On 01/07/2013 09:23 AM, Flying-w wrote:
  Thanks for the reply.  The PDF content is highly valuable, so each
  request must be authenticated and the pdf content must be delivered to
  the browser securely.
 
  Recommendations for other delivery methods?

 There is no reason to deliver the content specifically to the browser.
 Most folks will use Acrobat to read the PDF, so the browser acts as an
 intermediary and increases the attack surface. The content is valuable
 (i.e. there is sufficient economic interest to analyze your delivery
 method and dupe the server), attacks are possible and economically
 beneficial to the attacker.

 I'd use email. Deliver the PDF as an attachment. There might be issues
 w/ filters.

 You might also consider emailing a one-time key as the query string in a
 URL, then downloading the PDF in response to that GET. As the key is
 associated w/ the user, there is no secondary login required. Also, you
 know (i.e. implement in code) that the request can only happen once. It
 might also be appropriate to implement a time window in which the URL is
 valid.
 
  Perhaps the ideal solution is to have the PDF content delivered in the
  response
  to a GWT RPC method say as a byte array.  The problem is, I've no idea
  how to get that byte stream rendered in the browser.
 Security by obscurity? No.

 Cheers,
 jec

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

 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: How to integrate Jsoup in GWT

2013-01-04 Thread Andy King
It appears that Jsoup may be intended for use on the server-side of the 
application, and yet you are using it on the client side.  If you want to 
use it in the client then you'll have to make the source code available to 
the GWT compiler, and the source is in the 
jsoup-1.7.1-sources.jarhttp://jsoup.org/packages/jsoup-1.7.1-sources.jar 
file. 
 Are you sure you want to execute the Jsoup routines from the client?  I 
would probably run Jsoup on the server and communicate with it from the 
client using GWT RPC.

On Friday, January 4, 2013 4:20:51 AM UTC-7, Kaustav Mukherjee wrote:

 I am trying to develop a simple app with *Jsoup*. For that, I have 
 replaced the default code in the *StockWatcher.java* file from GWT with 
 my code, which requires *Jsoup*. I have downloaded the *Jsoup* *jar* file 
 from http://jsoup.org/download (the first link), and placed it in the *
 StockWatcher/war/WEB-INF/lib* folder. After this, the *Jsoup* classes are 
 imported into the class all right (there is no red colored cross sign on 
 those import lines), but while trying to run the app, I am getting an error 
 as shown in the figure. Can anyone give me a step by step help on what to 
 do now? I am new to GWT.




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



Re: ByteBuffer to String

2013-01-04 Thread Andy King
I don't think ByteBuffer is available in GWT ... can you use the first 
solution suggested here: 
http://stackoverflow.com/questions/88838/how-to-convert-strings-to-and-from-utf8-byte-arrays-in-java

On Thursday, January 3, 2013 8:17:11 AM UTC-7, Andres Q wrote:

 Hi!

 I have the following Java code

 import com.google.common.base.Charsets;
 import java.nio.ByteBuffer;

 ByteBuffer msg = ... // a ByteBuffer that contains a String
 String s = Charsets.UTF_8.decode(msg).toString();

 this works fine in Java, but when I try to compile it with GWT I get:

 The method decode(ByteBuffer) is undefined for the type Charset

 What's the proper way, in GWT, to obtain a String (encoded in UTF-8) 
 that's inside a ByteBuffer?

 Thanks!

 ps: this question has also been asked in 
 StackOverflowhttp://stackoverflow.com/questions/14141432/bytebuffer-to-string-in-gwt,
  
 if anyone wants to answer there and gain some rep


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



Re: How to extend GWT Widgets and use them with Ui-Binder?

2013-01-03 Thread Andy Stevko
First step - need to add an import declaration for your CustomTree package

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:my='urn:import:test.my.custom'

my:CustomTree .../



On Thu, Jan 3, 2013 at 4:18 AM, membersound kodyreco...@gmail.com wrote:

 I'm creating a custom Tree component which extends the GWT Tree.
 But how can I use my custom tree with ui:binder??

 I tried the following which did not work:

 my custom tree:
 public class CustomTree extends Tree {
 public CustomTree() {
 //...
 }
 }


 MyPanel.ui.xml:
 ui:UiBinder
 CustomTree ui:field=tree /
 /ui:UiBinder


 MyPanel.java:
 public class MyPanel extends Composite {
 @UiField
 CustomTree tree;

 public MyPanel() {
 initWidget(binder.createAndBindUi(this));
 //...
 }
 }

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: How to select an entry in a Tree (highlight)?

2013-01-03 Thread Andy Stevko
The css style  rules should allow you to set the background etc for a
selected tree item.

from
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/Tree.html
CSS Style Rules.gwt-Treethe tree itself.gwt-Tree .gwt-TreeItema tree
item.gwt-Tree
.gwt-TreeItem-selecteda selected tree item


On Thu, Jan 3, 2013 at 5:47 AM, membersound kodyreco...@gmail.com wrote:

 Hi,

 how can I add selection row highlighting to a tree widget? Or is this ever
 possible?

 Thanks

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: Center content of DockLayoutPanel North?

2013-01-03 Thread Andy Stevko
Perhaps apply  the style to the Label rather than the north element?


On Wed, Jan 2, 2013 at 4:47 AM, membersound kodyreco...@gmail.com wrote:

 How could I center everything that is placed eg in the north/east/west/south 
 segment of a docklayoutpanel?
 The following does not work...
 ui:style
   .align {
  float: center;
   }
 /ui:style

 g:DockLayoutPanel
   g:north styleName='{style.align}'g:LabelA/g:Label/g:north


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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: losing focus on the page when popup comes

2013-01-02 Thread Andy King
Is this for something like a login screen?  I've done this by creating a 
widget ... the UiBinder XML file is as follows (this is in 
LoginWidget.ui.xml):

ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  g:FlowPanel
g:LabelLogin is required/g:Label
g:TextBox ui:field='userIdTextBox'User ID/g:TextBox
g:PasswordTextBox 
ui:field='passwordTextBox'Password/g:PasswordTextBox
g:Button ui:field='okButton'OK/g:Button
  /g:FlowPanel
/ui:UiBinder

In the Java source file (LoginWidget.java) I create the UiBinder object in 
the LoginWidget constructor using:

ILoginWidgetBinder = GWT.create(ILoginWidgetBinder.class);
setWidget(binder.createAndBindUi(this));

When I want to display the login request screen I call the login() method:

public void login() {
  setGlassEnabled(true);
  show();
  center();
}

When the OK button is clicked and a response received from the server to 
the login credentials the onSuccess() method executes the hide() method 
to hide the login widget.

On Wednesday, January 2, 2013 7:50:03 AM UTC-7, sreenivas wrote:

 Hi,

 I want to make my complete page to loose focus when popup comes. I mean i 
 should not be able to click any widgets in the background when popup 
 appears. For now, I am able to get the pop up , but I am able to click the 
 buttons in the background page. How should i achieve this blur mechanism on 
 background when popup opens?


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



Re: The Future of GWT Report 2012 Published

2012-12-04 Thread Andy
I agree 100%. I will be sharing it internally, but I will not tweet/etc 
about a report that requires people to share their email with Vaadin to 
download a PDF.

That said, thank you Joonas for putting this together. I appreciate the 
work you guys do. I just disagree with how this is being delivered.

On Tuesday, December 4, 2012 10:30:11 AM UTC-5, AJ wrote:

 Thank you for releasing these results.

 However, I find it disconcerting and somewhat ominous that Vaadin is using 
 this survey as a marketing tool.
 It would have been preferable, in my opinion, if the report had been 
 released as a direct link in the notification email I received, instead of 
 sending me to a Vaadin marketing page with a form to request an email that 
 contains a link to download the report. The community is already concerned 
 about the future of GWT since it was released as open source. Linking it so 
 closely Vaadin does not quiet those concerns.

 On Tuesday, December 4, 2012 9:25:55 AM UTC-5, jchimene wrote:

  On 12/4/2012 4:19 AM, Joonas Lehtinen wrote:
  
 *The GWT community have been having many questions about the Future of 
 GWT. Questions like: Where is GWT going? How is GWT used today? What are 
 the challenges they are facing? What is the competition? Should I build my 
 next project with GWT?

 When joining the GWT steering committee and deciding to include a full 
 copy of GWT into Vaadin 7 we had the same questions. In the end we stepped 
 forward and asked the GWT community. Now after 2 months of asking and 
 receiving responses to the dozens of questions we had from over over 1300 
 GWT users, we compiled all of this together and are proud to present you 
 with some answers in for of 30 page long report. We would like to thank 
 everyone who participated: You - the very active GWT community who 
 answered, GWT steering committee members and other GWT experts who helped 
 create the questions and analyze the answers, Vaadin team and David Booth 
 who coordinated the effort.

 Enough talking, download your personal copy of The Future of GWT Report 
 at:* 
 *
 https://vaadin.com/gwt/report-2012
 *


 My friend, Marge Innovera, wishes you would mention her in the report.

 Cheers,
 jec
  


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



Re: The Future of GWT Report 2012 Published

2012-12-04 Thread Andy
Well, I agree with you as well. In short, branding/logo is ok. Hiding it 
behind an email collection page is less ok.

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



Re: The Future of GWT Report 2012 Published

2012-12-04 Thread Andy
I really don't care that much. I was just providing feedback. You have my 
name and email. May you generate many new leads!

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



Strange RPC regression in GWT 2.5

2012-11-30 Thread Andy
I'm not logging an issue yet because I don't have nearly enough information 
to attempt to document the issue. Instead, I wanted to share what I'm 
seeing and to see if anyone else has had a similar experience.

For some background, we have a mature GWT application and have been happily 
using GWT in production since around 1.5 and were experimenting with it a 
little before that. The code that is suddenly causing issues hasn't been 
touched in a while. The product is TeamPage at http://tractionsoftware.com

The issue is as follows:

* About 50% of the time when clicking and holding a hash style link and 
selecting Open in New Tab on iOS 6, part of the RPC response is not 
properly deserialized. It can also happen when clicking a link from an 
email message that opens in Safari in a new tab.

As you can imagine, we've been struggling to diagnose this. It only happens 
in iOS6 and only when opening in a new tab or a fresh view. We have not 
seen any similar issues in any other browsers.

I tried a GWT build from r11390 and it still happens. I reverted to GWT 2.4 
and the problem went away.

We have an RPC service method that looks like this:

public ViewData get(ViewRequest request) throws GwtTractionException;

The ViewData object returned looks like this:

public final class ViewData implements ViewContent, GetProperty2 {
private String name;
private HashMapString,String properties = new 
HashMapString,String();
private HashMapString,ArrayListViewContent content;
}

ViewContent is a simple marker interface for Objects that can be sent back 
as view content. Since ViewData implements ViewContent, we often have a 
recursive tree of ViewData, but a few other objects implement ViewContent 
as well.

public interface ViewContent extends IsSerializable {}

* The problem is that content comes back empty, when in fact it should have 
data. properties and name are properly deserialized and non-empty. content 
is undefined.

I've inspected with wireshark and the RPC payload is identical in cases 
that work and fail. As I mentioned, it only fails 50% of the time. When it 
fails, the value of content in javascript is undefined and a ViewContent 
implementation that we expect to be there causes an UmbrellaException with 
TypeError of 'null' is not an object.

So my questions are as follows:

1) Is anyone else seeing strange RPC issues from iOS 6 when opening links 
in new tabs?

2) Does anyone have a suggestion on where I should look in GWT src to 
investigate the issue?

Sorry this is so vague. I'm happy to provide any more information that 
might be helpful.

-Andy




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



Re: Strange RPC regression in GWT 2.5

2012-11-30 Thread Andy
Good suggestion, but we've addressed that issue (and it was also an issue 
with GWT 2.4 so backporting wouldn't have resolved it). iOS 6.0.1 also 
stopped caching posts. Thanks for the input!

On Friday, November 30, 2012 10:43:30 AM UTC-5, Joseph Lust wrote:

 A shot in the dark here, but have you seen the iOS6 Post Caching 
 issuehttps://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit/ios6/google-web-toolkit/CWkgCXLi8tA/fpOWNVQ0q3YJ?
  
 If your app was caching an earlier blank response, that could be the issue.


 Sincerely,
 Joseph


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



Re: Move gwt-traction to GitHub?

2012-11-21 Thread Andy
I appreciate the feedback and it's interesting to hear that you're 
splitting up gwt-user.

I'll probably keep most of it together, but RawHistory probably belongs in 
its own repo. As you mentioned AutoSizingTextArea could be on its own. It 
will be a great day when I can add a deferred binding rule for browsers 
that support auto-sizing textareas natively.

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



Re: The purpose of GWt

2012-11-21 Thread Andy King
You can try this: http://lmgtfy.com/?q=gwt+animation+examples

But seriously, there are so many examples available!  Even the GWT showcase 
has an example 
(http://gwt.google.com/samples/Showcase/Showcase.html#!CwAnimation).

On Wednesday, November 21, 2012 1:13:21 PM UTC-7, Goran Bojanic wrote:

 Hi everybody, I was reading little about gwt and I have not found that it 
 is possible to animate objects with gwt. What do i in fact want is to 
 animate shapes in my google site?
 Best regards, Goran


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



Another Request Factory Example (using MySQL)

2012-11-21 Thread Andy King
I have started to create another example/tutorial, this time using MySQL 
for the data (the first example just held the data in memory).  The example 
has some way to go before it is complete, but it may help others even in 
its current state.  The first part of the tutorial includes instructions 
for pulling the code from Google Code and for creating the database table. 
 Here's the link to the first part: GWT Request Factory  
MySQLhttp://greatlogic.com/?p=223. 
 If you didn't go through the first tutorial, which is here: A GWT Request 
Factory Journey http://greatlogic.com/?p=33, then that may be a good idea 
to do first.

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



Re: developers.google.com is down

2012-10-26 Thread Andy Stevko
Could this have anything to do with the appengine downtime currently in
progress??

On Fri, Oct 26, 2012 at 11:44 AM, Moshe Gorin evan.go...@gmail.com wrote:

 I also have not been able to reach https://developers.google.com/ since
 about 10:30am E.S.T.


 On Friday, October 26, 2012 10:39:45 AM UTC-4, Nicholas Smith wrote:

 Haven't been able to connect for the last 30 minutes, is there an
 outage?

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

 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: GWT 2.5 RC2 Is Here!

2012-10-05 Thread Andy Stevko
Has anyone tried the 2.5rc2 release with an app that uses the GAE Channel
api?

On production servers and version 2.4, my app has a stable inbound
messaging sink whereas on 2.5rc2 the very same software is getting
bombarded with repeated inbound messages.

-- Andy Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: Future of GWT survey

2012-09-28 Thread Andy Stevko
Am I reading too much into the fact that the GWT survey ends on the
Vaadin.com/gwt page?
With Google pushing GWT into the wild, is
https://developers.google.com/web-toolkit/ still the most central place for
GWT development?



-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: CSS 3 transition+ GWT

2012-09-17 Thread Andy
I would encourage you to create to classes and change the class to trigger 
the transition. For example, if you want to change the width, do this:

.narrow-animation {
width: 100px;
transition-property: width;
transition-duration: 1s;
}

.wide-animation {
width: 400px;
transition-property: width;
transition-duration: 2s;
}

Then, in GWT, use addStyleName and removeStyleName to add the appropriate 
class to trigger the animation.

For last year's Google I/O, I submitted a little project that used CSS 
transitions to animate a countdown timer. The code just changes the class 
on an element and the transition takes care of the animation.

You can see it here http://code.google.com/p/pulazzo-lastcall/ (in the 
demo, choose a date in the future to trigger the countdown).

-Andy

On Saturday, September 15, 2012 12:34:00 PM UTC-4, regnoult axel wrote:

 Hello,

 I do not succeed to use CSS3 transition with GWT...I do not understand how 
 to activate the transition without using :hover in the css file.

 W3C says that : 
 *The effect will start when the specified CSS property changes value. A 
 typical CSS property change would be when a user mouse-over an element...*
 *
 *
 So I have:
 focus{
*height*: 100px;
transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
 }

 focus:hover
 {
   *height*: 200px;
 }

 This works, but I do not succeed to activate the  transition  using :

 /* 
  */
 @UiHandler(focus) void mouse__Over(MouseOverEvent e)
 /* 
  */
 {
 // TODO - WHICH CODE TO INSERT HERE TO ACTIVATE THE TRANSITION (on 
 the focus panel) ?
 }

 If you could complete the TODO in order to activate the transition, it 
 would help me... 
 (I have tried focus.addStyleName(), focus.setHeight() but the transition 
 does not appear !)

 Thanks you,





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



Re: Date and time pickers in any timezone

2012-09-14 Thread Andy
Got it. I saw that file 
-- user/src/com/google/gwt/i18n/client/constants/TimeZoneConstants.properties 
-- and wasn't sure if that was the approach you were taking. Thanks.


On Friday, September 14, 2012 10:25:55 AM UTC-4, Andrei wrote:

 GWT has a file with JSON strings for all time zones they support (more 
 than enough). I copied it to my server resources.

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



Re: Date and time pickers in any timezone

2012-09-13 Thread Andy
My understanding is that you can do this on the client side if you only 
need to edit in the timezone of the browser. The problem I had was that my 
users have a timezone preference that can be different than the browser and 
the browser doesn't provide access to every timezone. Because the timezone 
offset varies based on the Date and daylight savings on that Date (e.g. EDT 
-0400 vs EST -0500), I wasn't able to ensure that I was using the right 
offset for a given Date in the user's preferred timezone.

If you dig through the implementation of the gwt DateTimeFormat, emul Date, 
JsDate, etc. Date.getTimezoneOffset is provided by the browser in the 
timezone of the browser. There's no way to ask for the timezone offset of a 
date in an arbitrary timezone. If I missed something, I'd love to be 
corrected.

On Thursday, September 13, 2012 7:48:38 AM UTC-4, Andrei wrote:

 You don't need a TimeZone for parsing dates, as you observed in your post. 
 I also had to implement my own box for parsing time, because I want my 
 users to be able to enter time in any format they like (2pm, 2:00 PM, 
 2:00p, 14:00). Then I adjust the raw time (in milliseconds) using time 
 zone's offset. And I do store all dates and times as Longs.

 Basically, this is the same idea, but adjustments are made on the client 
 side. I like your approach, though.


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



Re: Date and time pickers in any timezone

2012-09-13 Thread Andy
Got it. I considered that approach as well, but it seemed a bit more 
complicated. Where are you getting the JSON data to present to the client?

On Thursday, September 13, 2012 11:02:40 AM UTC-4, Andrei wrote:

 I am not using browser's time zone and its offset - it would not work, as 
 you correctly stated. I am using GWT's TimeZone object and its offset. I 
 build this TimeZone object using the time zone ID which a user specified in 
 his preferences. This requires me to pass the correct JSON string from a 
 server to the client, which is a drawback in my implementation (client-side 
 only) compared to yours (server-side adjustments).

 I am trying to think of a drawback in your implementation, but so far 
 nothing comes to mind :), apart from a minor inconvenience that you have to 
 reload data if a user changed his preference.


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



Re: Date and time pickers in any timezone

2012-09-11 Thread Andy
There is another point that I meant to make last night. You suggested 
providing a formatter that uses the DateTimeFormat overloads that take a 
TimeZone. There is a format(Date,TimeZone) but there isn't a 
parse(String,TimeZone).

I considered appending a timezone to the String in DateBox.Format.parse, 
e.g. convert Sept 10, 2012 to Sept 10, 2012 GMT and use a different 
DateTimeFormat that includes TimeZone, but I prefer the approach that I 
decided to take.

I also prefer dealing with the value as a Long instead of Date so I wrapped 
it in a Composite instead of subclassing the DateBox.

I think you'll agree that this implementation is pretty 
minimalhttp://code.google.com/p/gwt-traction/source/browse/src/com/tractionsoftware/gwt/user/client/ui/impl/UTCDateBoxImplHtml4.javaand
 accomplishes the goal of normalizing date selection. As a bonus, it uses 
deferred binding to use input type=date for 
iOShttp://code.google.com/p/gwt-traction/source/browse/src/com/tractionsoftware/gwt/user/client/ui/impl/UTCDateBoxImplHtml5.java
.

Cheers,
Andy

On Monday, September 10, 2012 6:47:50 PM UTC-4, Thomas Broyer wrote:



 On Tuesday, September 11, 2012 12:36:33 AM UTC+2, Andy wrote:

 In our application, TimeZone is a user preference. Regardless of where 
 they are in the world and how their computer and browser are configured, 
 our application renders using their preference.

 Basically, time zone A as you call it is authoritative and time zone 
 B is ignored. Our date and time controls, called UTCDateBox and 
 UTCTimeBox, are written to operate independently of the browser's TimeZone.

 For example, suppose a user is editing an event taking place at 7pm Sept 
 10th EDT (about 30 minutes from now as I type this). If their user 
 preference TimeZone is EDT, the server will tell the controls to render 
 7:00 PM and Sept 10th, 2012. If the user preference TimeZone is JST, 
 the server will tell the controls to render 8:00 AM and Sept 11, 2012. 
 The controls themselves don't care about TimeZone. When the values come 
 back to the server, the proper Java Date will be created that corresponds 
 to the proper time using the values from the controls with the user's 
 preferred TimeZone.


 UTCDateBox/UTCTimeBox names are misleading.
 To reuse the JodaTime (and JSR 310) vocabulary, what you're editing are 
 local dates and times (i.e. YMDHMS, not an instant in time), and the 
 server then associate the value back with a timezone to map it to an 
 Instant.
 That being said, I think you should be able to do it with the standard GWT 
 DateBox, providing a formatter that uses the DateTimeFormat overloads that 
 take a TimeZone.


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



Date and time pickers in any timezone

2012-09-10 Thread Andy
I recently needed to write a time picker and have made it available as part 
of gwt-traction http://code.google.com/p/gwt-traction/, the library of 
gwt widgets and utilities that we've made open source. It includes and 
auto-sizing textarea and some other goodies.

I have a blog entry about it here: Creating GWT Date / Time Pickers That 
Work in Any Time 
Zonehttp://traction.tractionsoftware.com/traction/permalink/Blog1986

It was a bit frustrating to get the timezone issues right and I hope other 
people will benefit from it.

Cheers,
Andy

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



Re: Date and time pickers in any timezone

2012-09-10 Thread Andy
In our application, TimeZone is a user preference. Regardless of where they 
are in the world and how their computer and browser are configured, our 
application renders using their preference.

Basically, time zone A as you call it is authoritative and time zone B 
is ignored. Our date and time controls, called UTCDateBox and UTCTimeBox, 
are written to operate independently of the browser's TimeZone.

For example, suppose a user is editing an event taking place at 7pm Sept 
10th EDT (about 30 minutes from now as I type this). If their user 
preference TimeZone is EDT, the server will tell the controls to render 
7:00 PM and Sept 10th, 2012. If the user preference TimeZone is JST, 
the server will tell the controls to render 8:00 AM and Sept 11, 2012. 
The controls themselves don't care about TimeZone. When the values come 
back to the server, the proper Java Date will be created that corresponds 
to the proper time using the values from the controls with the user's 
preferred TimeZone.

If that doesn't make sense, I'm happy to clarify further.

-Andy

On Monday, September 10, 2012 5:11:39 PM UTC-4, Andrei wrote:

 Andy,

 Great post. I just finished my own implementation of the same controls, 
 and I followed the same logic with one exception.

 You say that your server knows a user's time zone. How? A user may travel 
 and access your site from a different computer set to a different time 
 zone. So, what happens when a user has time zone A stored in his profile, 
 but he accesses your site from time zone B?

 I decided to implement a proper TimeZone object on the client, which 
 allows me to show dates and times (and to take dates and times) in any time 
 zone a user chooses, regardless on the browser time zone.

 I'd appreciate your thoughts.

 Andrei



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



Re: Date and time pickers in any timezone

2012-09-10 Thread Andy
I called it UTCDateBox because it always returns midnight in UTC on the 
date selected, independent of the TimeZone in which it was selected. To me, 
local date would suggest something in my local TimeZone and thus be 
different depending on how my computer/browser is configured or something 
lacking TimeZone information, but maybe I should read JSR 310 again.

In other words, you can normalize date editing by ignoring the TimeZone or 
by hardening the TimeZone. I chose to harden the TimeZone to UTC since the 
GWT DateBox that I wrap uses Date objects.

As I mentioned in my blog post, originally the UTCTimeBox was intended to 
return a value combined with the UTCDateBox (and always choose a time in 
UTC), but that proved impossible with the limited amount of TimeZone data 
available in the browser. Maybe UTCDateBox and LocalTimeBox would be better 
names.

On Monday, September 10, 2012 6:47:50 PM UTC-4, Thomas Broyer wrote:



 On Tuesday, September 11, 2012 12:36:33 AM UTC+2, Andy wrote:

 In our application, TimeZone is a user preference. Regardless of where 
 they are in the world and how their computer and browser are configured, 
 our application renders using their preference.

 Basically, time zone A as you call it is authoritative and time zone 
 B is ignored. Our date and time controls, called UTCDateBox and 
 UTCTimeBox, are written to operate independently of the browser's TimeZone.

 For example, suppose a user is editing an event taking place at 7pm Sept 
 10th EDT (about 30 minutes from now as I type this). If their user 
 preference TimeZone is EDT, the server will tell the controls to render 
 7:00 PM and Sept 10th, 2012. If the user preference TimeZone is JST, 
 the server will tell the controls to render 8:00 AM and Sept 11, 2012. 
 The controls themselves don't care about TimeZone. When the values come 
 back to the server, the proper Java Date will be created that corresponds 
 to the proper time using the values from the controls with the user's 
 preferred TimeZone.


 UTCDateBox/UTCTimeBox names are misleading.
 To reuse the JodaTime (and JSR 310) vocabulary, what you're editing are 
 local dates and times (i.e. YMDHMS, not an instant in time), and the 
 server then associate the value back with a timezone to map it to an 
 Instant.
 That being said, I think you should be able to do it with the standard GWT 
 DateBox, providing a formatter that uses the DateTimeFormat overloads that 
 take a TimeZone.


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



Re: GWT Compilation Time Performance Improvement

2012-09-06 Thread Andy Stevko
Have you considered using a SSD instead of a HD?
I've cut my compile times dramatically that way.

On Thu, Sep 6, 2012 at 12:08 PM, Chak Lai chaklam@gmail.com wrote:

 Instead of compiling one permutation at a time, there is an option to
 compile multiple permutations at the same time by mutli-process.

 Here is the parameter I used in the Ant build.xml file (sorry, I don't use
 maven), all you needed to add -localWorkers within gwtc target tag:

 target name=gwtc depends=javac description=GWT compile to JavaScript
 (production mode)
 java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
 classpath
 pathelement location=src /
 path refid=project.class.path /
 pathelement location=C:/gwt-2.5.0.rc1/validation-api-1.0.0.GA.jar /
 pathelement
 location=C:/gwt-2.5.0.rc1/validation-api-1.0.0.GA-sources.jar /
 /classpath
 !-- add jvmarg -Xss16M or similar if you see a StackOverflowError --
 !-- jvmarg value=-Xmx256M/ --
 jvmarg value=-Xmx1024M /
 arg line=-war /
 arg value=war /
 !-- Additional arguments like -style PRETTY or -logLevel DEBUG --
 arg line=${gwt.args} /

 !-- Number of process to compile --
 arg value=-localWorkers /
 arg value=2 /

 arg value=-optimize /
 arg value=9 /

 arg value=-strict /

 !-- arg value=-XenableClosureCompiler / --

 arg value=mta.itrac.Itrac /
 /java
 /target

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

 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: GWT Compilation Time Performance Improvement

2012-09-06 Thread Andy Stevko
Oh, and if you have to use an external device, use esata rather than usb.
 while usb has higher burst  speeds, esata has much higher sustained
transfer speeds.

On Thu, Sep 6, 2012 at 3:35 PM, Andy Stevko andy.ste...@gmail.com wrote:

 Have you considered using a SSD instead of a HD?
 I've cut my compile times dramatically that way.


 On Thu, Sep 6, 2012 at 12:08 PM, Chak Lai chaklam@gmail.com wrote:

 Instead of compiling one permutation at a time, there is an option to
 compile multiple permutations at the same time by mutli-process.

 Here is the parameter I used in the Ant build.xml file (sorry, I don't
 use maven), all you needed to add -localWorkers within gwtc target tag:

 target name=gwtc depends=javac description=GWT compile to
 JavaScript (production mode)
  java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
 classpath
  pathelement location=src /
 path refid=project.class.path /
 pathelement location=C:/gwt-2.5.0.rc1/validation-api-1.0.0.GA.jar /
  pathelement
 location=C:/gwt-2.5.0.rc1/validation-api-1.0.0.GA-sources.jar /
 /classpath
  !-- add jvmarg -Xss16M or similar if you see a StackOverflowError --
 !-- jvmarg value=-Xmx256M/ --
  jvmarg value=-Xmx1024M /
 arg line=-war /
 arg value=war /
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG --
 arg line=${gwt.args} /

 !-- Number of process to compile --
 arg value=-localWorkers /
 arg value=2 /

 arg value=-optimize /
 arg value=9 /

  arg value=-strict /

 !-- arg value=-XenableClosureCompiler / --

 arg value=mta.itrac.Itrac /
 /java
 /target

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

 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.




 --
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough.
 M. Andretti








-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: GWT future

2012-08-08 Thread Andy Stevko
David,
Its a BUY-long  on my list.
Seeing the huge line of peeps waiting for the history  future session
was a sure signal that there is a lot of interest (outside of google).
The volume of GWT recruiter hits on my LinkedIn profile means there is new
work being done,
Moving to an external F/OSS respository and master commiters will increase
the velocity of the framework rather than waiting months  years for google
to vet the commits to protect the stability of their internal systems.
 (see my signature for my philosophy)
Not to say its a sure bet. Growing up is hard to do...



On Wed, Aug 8, 2012 at 7:56 AM, David levy...@gmail.com wrote:

 Anyone have insight as to the future of gwt-platform?

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

 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: DevMode not working in Chrome after update

2012-07-25 Thread Andy
I never figured it out. I just switched to using DevMode in Firefox (using 
13.0.1 and afraid to update right now) and compiling when necessary to use 
Chrome.

On Wednesday, July 25, 2012 4:03:26 PM UTC-4, mdwarne wrote:

 I am having the same issue, 
 I have been able to install the plugin by dragging it into the extensions 
 window, but it still will not load
 Mac Lion with latest Chrome.

 Anybody figure out what is wrong yet?

 Thanks,
 Mike.

 On Tuesday, July 17, 2012 4:16:03 AM UTC-10, Andy wrote:

 I updated Chrome this morning and now when I try to use DevMode I get an 
 error Could not load GWT DevMode Plugin and an offer to Download the GWT 
 Developer Plugin. When I try to download it (it's already installed), it 
 says Extensions, apps, and user scripts can only be added from the Chrome 
 Web Store. and there's no GWT plugin in the store.



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



DevMode not working in Chrome after update

2012-07-17 Thread Andy
I updated Chrome this morning and now when I try to use DevMode I get an 
error Could not load GWT DevMode Plugin and an offer to Download the GWT 
Developer Plugin. When I try to download it (it's already installed), it 
says Extensions, apps, and user scripts can only be added from the Chrome 
Web Store. and there's no GWT plugin in the store.

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



Re: DevMode not working in Chrome after update

2012-07-17 Thread Andy
I still get the error Could not load GWT DevMode Plugin and the normal 
offer to download it (even though it was and is again installed).

On Tuesday, July 17, 2012 11:03:10 AM UTC-4, Thomas Broyer wrote:


 On Tuesday, July 17, 2012 4:16:03 PM UTC+2, Andy wrote:

 I updated Chrome this morning and now when I try to use DevMode I get an 
 error Could not load GWT DevMode Plugin and an offer to Download the GWT 
 Developer Plugin. When I try to download it (it's already installed), it 
 says Extensions, apps, and user scripts can only be added from the Chrome 
 Web Store. and there's no GWT plugin in the store.


 I believe I already answered this question in the past couple of days but 
 I can't find it back.
 See 
 http://techie-buzz.com/browsers/chrome-blocking-extension-apps-scripts-chrome-web-store.html
  


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



Re: create project component

2012-06-05 Thread Andy Stevko
Not exactly sure what you are looking for but I'll give it a shot.
You may be looking for how to create a gwt module which can be referenced
by another gwt project.
Here is one way of creating a module which consists of a reusable widget.
http://davidmaddison.blogspot.com/2009/01/creating-gwt-component.html
One detail to be aware of - when you create a jar of the module, be sure to
include both the source and binary files.


On Tue, Jun 5, 2012 at 10:03 PM, thiago borges martins 
tborgesmart...@gmail.com wrote:

 How do I create a gwt project which are the components (jar) for a web
 project?

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



  1   2   >