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 me

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.


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  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 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  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  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 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  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: 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"  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
>
> 
>  ..
>  
> 
>Loading
>
> 
> 
>   ..
>   
> 
>
> However, the  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: 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 
> 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: 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  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 
>> MessageFormatfor
>>  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
wrote:

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


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  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: 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  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
>> > <mailto:xyb...@gmail.com>> wrote:
>>
>> I have this script which I put on top of the GWT nocache.js
>>
>>  
>>  
>>  (function(d, s, id) {
>>var js, fjs = d.getElementsByTagName(s)[0];
>>if (d.getElementById(id)) return;
>>js = d.createElement(s); js.id <<a  rel="nofollow" href="http://js.id">http://js.id</a>> =
>> id;
>>js.src =
>> 
>> "//connect.facebook.net/en_US/**__all.js#xfbml=1<<a  rel="nofollow" href="http://connect.facebook.net/en_US/__all.js#xfbml=1">http://connect.facebook.net/en_US/__all.js#xfbml=1</a>>
>> 
>> <<a  rel="nofollow" href="http://connect.facebook.net/**en_US/all.js#xfbml=1">http://connect.facebook.net/**en_US/all.js#xfbml=1</a><<a  rel="nofollow" href="http://connect.facebook.net/en_US/all.js#xfbml=1">http://connect.facebook.net/en_US/all.js#xfbml=1</a>>
>> >";
>>fjs.parentNode.insertBefore(__**js, fjs);
>>
>>  }(document, 'script', 'facebook-jssdk'));
>>  
>>  

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  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
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  wrote:

> I have this script which I put on top of the GWT nocache.js
>
> 
> 
> (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=1<http://connect.facebook.net/en_US/all.js#xfbml=1>
> ";
>   fjs.parentNode.insertBefore(**js, fjs);
> }(document, 'script', 'facebook-jssdk'));
> 
> 

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  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: 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,  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: 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: 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  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: How to print a portion of the screen (like a view in A&P) ?

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  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: 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"  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: 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 wrote:

> 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: 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  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...
> 
>   .align {
>  float: center;
>   }
> 
>
> 
>   A
>
>
>  --
> 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: 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  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: 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







On Thu, Jan 3, 2013 at 4:18 AM, membersound  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:
> 
> 
> 
>
>
> 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: 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  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: 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  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  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:
>>
>> 
>>  > classname="com.google.gwt.dev.Compiler">
>> 
>>  
>> 
>> 
>>  > location="C:/gwt-2.5.0.rc1/validation-api-1.0.0.GA-sources.jar" />
>> 
>>  
>> 
>>  
>> 
>> 
>>  
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>>
>>  
>>
>> 
>>
>> 
>> 
>> 
>>
>> --
>> 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 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  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:
>
> 
>  classname="com.google.gwt.dev.Compiler">
> 
> 
> 
> 
>  location="C:/gwt-2.5.0.rc1/validation-api-1.0.0.GA-sources.jar" />
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>
> 
>
> 
>
> 
> 
> 
>
> --
> 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 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  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: 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.



Re: DTO + GWT

2012-04-24 Thread Andy Stevko
I really recommend looking at objectify - the objects are capable of being
detached from the datastore and transferred to/from the client.

On Tue, Apr 24, 2012 at 9:25 AM, Stefan Ollinger wrote:

>  1:1 DTOs are not required. I think you can configure Dozer. You could for
> example create multiple views of your business model.
>
> Regards,
> Stefan
>
> Am 24.04.2012 11:10, schrieb Akram Moncer:
>
>  thinks a lot
>
>  i have a big model of database, and i have association between entities,
> do i have to create the same association between the DTO ?
>
> Le 24 avril 2012 09:52, Stefan Ollinger  a écrit :
>
>>  [image: Boxbe] 
>> google-web-toolkit@googlegroups.com is not on your Guest 
>> List| Approve
>> sender  | Approve
>> domain 
>>
>>  Hello Akram,
>>
>> Data Transfer Objects are just simple POJOs which are used to transfer
>> data to the client.
>> Take a look at Dozer to map data from your business objects to DTOs:
>> http://dozer.sourceforge.net/documentation/about.html
>>
>> Regards,
>> Stefan
>>
>> Am 24.04.2012 10:30, schrieb Akram Moncer:
>>
>> hello every body;
>>
>>
>>  i created a web application with GWT and for persistence i use the
>> google app engine datastore but , to transfert data between server and
>> client i should use DTO(data transfert object) but i don't know how can i
>> do it,
>>
>>  so i will be grateful if someone can help me with example or any
>> information
>>
>>
>>
>>
>>  thinks
>>
>>  --
>> Akram MONCER
>> Personne
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>  --
>> 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.
>>
>>
>
>
>  --
> Akram MONCER
> Personne
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>  --
> 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.



Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-18 Thread Andy Stevko
With all the turn over and David Chandler moving to the Andriod team...
Who are the Developer Relations person(s) working on the Web Toolkit
product?


-- 
-- 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: HTML5 Canvas in IE9

2012-04-11 Thread Andy Stevko
Hard to diagnose "most of my GWT application does not work".
Do you have the same issues with standards mode on other browsers?



On Wed, Apr 11, 2012 at 8:27 AM, stagirus  wrote:

> Just a clarification - I meant our application, not the graphics,
> works well in all browsers.
>
>
> On Apr 11, 9:17 am, stagirus  wrote:
> > We are adding some graphics rendering into our application built on
> > GWT 2.4. It works fine in all browsers including IE 6-9. Until this
> > point, we did not specify any  and meta tags for IE. IE 9
> > seems to default into Quirks Mode and our application works as
> > expected. Unfortunately the HTML5 Canvas does not work in this mode.
> >
> > If I force IE to IE9 standards mode including Document Mode, most of
> > my GWT application does not work. But the graphics rendering with HTML
> > 5 Canvas works fine.
> >
> > This is a terrible situation to be in. I would not call Bill Gates to
> > solve this problem. I am hoping Google/GWT guys could solve my
> > problem.
> >
> > Is there any way to make both my application and HTML 5 Canvas work in
> > IE9?
>
> --
> 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.



Re: GWT with a non-java server

2012-04-08 Thread Andy Stevko
That is a pretty broad question. What is your non-java server? What
protocols does it support? "Ajax etc" is not a communications protocol.


On Fri, Apr 6, 2012 at 4:58 AM, Traktor Toni wrote:

> Hi guys, I'm new to GWT and pretty confused on how to include it into my
> workflow. I just ran the first sample tutorial. So I understand how the
> whole deal works with the embedded jetty server. So far so good. But
> naturally I have my own non-java server, and I want to use that one to
> respond to all requests, ajax etc. How do I do that, as I understand it, I
> can't have two applications listen on the same port?
>
> I'm sure this is a very common problem.
>
>
>  --
> 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/-/ELpBU67cTAcJ.
> 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: DatePicker next/prev month events

2012-04-07 Thread Andy Stevko
Yes, create a class in your own project src tree with the Google package
name to access default scoped methods.
On Apr 7, 2012 4:23 PM, "Nikola Markovic"  wrote:

> I'm not sure I understand you. Create a class inside a
> com.google.gwt.user.datepicker.client package, which is provided in the GWT
> library as gwt-user.jar? I don't think I know how to.
>
> --
> 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/-/mIZvCab4fOAJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: How to get page state

2012-03-28 Thread Andy Stevko
Using MVP places -
I try not to reload the browser window but rather redirect to a new Place +
parameters (mypage.html#authreturnpage?x=y&a=b) with the same base URI. The
browser takes in the url load as an event within the same application
context so you don't loose state. Plus its easy to firewall to prevent url
replay attacks.

You may still using the same trick without MVP. Not sure how it manifests
within the app.


On Wed, Mar 28, 2012 at 9:19 AM, Deepak Singh wrote:

>
> Hi,
>
> At some point of time, i have to reload the window (After login through
> Gmail authentication), so i want that the page should be loaded in the same
> state as it was before login.
>
> how can i save the state of the entire page and come back to the same
> state after login ?
>
> Thanks
> Deepak Singh
>
> --
> 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.



Re: GWT Performance : Good or Bad ?

2012-03-27 Thread Andy Stevko
Yep - it sounds like GXT grids are overdriving the system. There hardly
seems enough room for content with all that markup.  If you don't need all
the bells and whistles that come with a gxt grid - it would pay to port to
lighter weight GWT grids or plain  and css. Stripping out excess
forms, element IDs, and css will lighten the load on the rendering engine.

On Tue, Mar 27, 2012 at 8:53 AM, dodo dard  wrote:

> Hi Nino,
>
> Is a catalog application type, you search, list and modify products.
> I have to precise some points :
> - my application will be used largely by IE8.
> - Not all the screen have a performance problem.
> - There is some :
>   - screen that contains : 75 input form, 3 grids (well I have warned my
> client about not using to much components in one page).
>   - A grid with 23 columns that contains at least 10 GridRenderer (well
> I'm working at it now by using less GridRenderer) .
>
> Regards
>
>
>>  --
> 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/-/j_Gkpwxio6cJ.
>
> 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 Performance : Good or Bad ?

2012-03-27 Thread Andy Stevko
Bowie,
One issue that I've found when working with GXT and GWT is that they use
different models for drawing the page elements. GWT tends towards attaching
the elements into the DOM immediately whereas GXT caches the elements then
attaches them in bulk.
This will tend to make them appear slow but is really an optimization on
the rendering engine because it doesn't have to do a lot of recalculations.
--Stevko

On Tue, Mar 27, 2012 at 7:12 AM, dhoffer  wrote:

> Regarding GXT I noticed that comparison website is using GXT 2.2.5 yet
> is comparing with new GWT 2.4, if making GWT 2.4 compliant app one
> would probably use the new GXT 3.0 which is in beta right now (almost
> RC)...I wonder how that compairs to GWT 2.4.  I hope not worse.
>
> -Dave
>
>
>
> On Mar 27, 6:28 am, dodo dard  wrote:
> > Thanks Frank,
> >
> > I think that too, GXT make pretty component but very expensive and very
> big.
> > Btw I found an interesting website :  http://gxtvsgwt.appspot.com/after
> > looking at your anwser.
> >
> > Le mardi 27 mars 2012 13:54:52 UTC+2, Frank a écrit :
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > GXT and SmartGWT have bad performance imo.
> > > Better to write your own widgets (which takes a lot of time) using
> vanilla
> > > GWT and make them perform better.
> > > That is what we did and our GWT projects have very high performance.
> >
> > > Op dinsdag 27 maart 2012 11:55:14 UTC+2 schreef dodo dard het volgende:
> >
> > >> Helo,
> >
> > >> I've got friends complaining about GWT/GXT (GWT Ext) performances,
> well I
> > >> notice that if we put to many component with GXT, there will be a
> certain
> > >> waiting time (3-4s) before it got completely loaded. They said that is
> > >> better to write the application directly with Javascript that may I'm
> not
> > >> agreed 100%. So guys, is there any solution, best practice,
> limitation or
> > >> restriction using GXT/GWT ? Or it can't be helped ?
> >
> > >> Honestly is fun using GWT/GXT, but I'm looking a performance solution
> too.
> >
> > >> Regards,
> > >> Bowie
>
> --
> 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.



Re: GWT + MySql

2012-03-19 Thread Andy Stevko
Objectify works really well for me to query within GAE and return DTOs to
GWT.
http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT


On Mon, Mar 19, 2012 at 10:17 AM, Lothar Kimmeringer wrote:

> Am 19.03.2012 14:42, schrieb vijay Rana Bhat:
> > if anyone have a demo program to connect the database from gwt please
> > mail me
>
> since the db-connection needs to happen on the server-side of your
> GWT-application, you can use every jdbc-example being done with
> MySQL out there as reference.
>
>
> Regards, Lothar
>
> --
> 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.



Re: User Login with GWT on Google App Engine

2011-08-08 Thread Andy Stevko
Federated OpenID is supported by app engine
http://code.google.com/appengine/articles/openid.html


On Mon, Aug 8, 2011 at 8:34 AM, Qiang Ma  wrote:

> Hi, all,
>
> I am investigating to build a GWT app hosted on GAE that requires user
> login.
>
> Do you have any suggestion on which 3rd party library to support user
> secure login and approach to implement it?
>
> Thanks!
> -maq
>
> --
> 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.



Re: RIP (Rich Internet Pages) instead RIA

2011-08-06 Thread Andy Stevko
You may want to investigate other toolkit frameworks that fit your wants
better.

One that comes to mind is Closure which, I have read, allows for the
creation of pages in both the browser and server via the use of templates.
For clients that have a fast client, the browser loads javascript and
renders the page locally. For clients that have a slow client (think phone
browser), the server renders the html page and dumps the html only.

http://code.google.com/closure/


On Sat, Aug 6, 2011 at 7:57 AM, dreamer wrote:

> Thanks Magno Machado Paulo.
> You are suggesting to reverse the calls. Meaning first call RPC to
> load model then gwt async to load
> view&presenter. second gwt async can be called only on success of
> first rpc for model. to make sure model is available in all
> conditions.
>
> So there are two async server calls no matter how we do it. more over
> code splitting
> is not transparent like individual pages, where you send which ever
> page  you want filled with data to client.
>
> We should have flexibility to serve the page either from client or
> server, so that we can get advantage of both worlds.
> Every thing on client including decision making may not fit well for
> enterprise class solutions as all Enterprise resources
> are at server, which are well protected etc.
>
> It would be awesome if we get best of both worlds.
>
> -Venu
> http://schoolk12.appspot.com/
>
>
> On Aug 6, 3:07 am, Magno Machado  wrote:
> > You could use your server to fetch the data and embed it on the host
> page.
> > Then when the GWT code is loaded, it can read the data and render the
> screen
> > without making a new request on the server... For exemple:
> > User requesthttp://your-app.com/?page=contactlist
> > The server receives the request, fetch a list of contacts on the DB and
> > write it on the hostpage
> > The host page is sent back to the browser
> > The browser loads the host page, which in turn load your GWT code
> > In your entrypoint, you read what is the current page, make an async call
> to
> > load the javascript for that page
> > Instead of making a RPC call to load the data, you can read the data
> already
> > embeded on the host page
> >
> > Now the user clicks on an "Edit contact" link on the page
> > The browser will send a get request forhttp://
> your-app.com/?page=editcontact&contactid=1
> >
> > I don't know how mobile browsers cache pages (maybe for the sake of disk
> > space, they don't?), but hopefully all the JS will get cached on the
> browser
> > once they're loaded for the first time
> >
> > On Sat, Aug 6, 2011 at 12:49 AM, dreamer  >wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Thanks for the reply Magno Machado Paulo.
> >
> > > Code splitting is a console, documentation is telling on main page,
> > > for every event click where
> > > ever we need to load composite, suggested to use  GWT.runAsync.
> >
> > > But the problem is I ended up getting Async call within Another Async
> > > call, one for loading composite, on success another
> > > async RPC call to get Model, for some reason even main page is not
> > > that fast, in fact I observed some slow.
> > > This is pure implementation issue.
> >
> > > Conceptually, why async call to load another page, why don't we submit
> > > entire page and get fresh page along with model applied to view on
> > > server itself like jsp?
> > > Why don't I use jsp? -  I want to develop like a swing app with ajax
> > > capability and drag and drop designer.
> >
> > > On Aug 5, 7:27 pm, Magno Machado  wrote:
> > > > What it your app read a particular parameter on the URL that tell the
> app
> > > > what "page" should be rendered, then everytime you need to display a
> new
> > > > page, you generate a get request with the parameter for the page you
> wish
> > > to
> > > > display.
> >
> > > > If you use runAsync on each page, the browser will always load only
> the
> > > JS
> > > > for the current page, not the whole app code
> >
> > > > On Fri, Aug 5, 2011 at 10:50 PM, dreamer <
> venugopal.vasire...@gmail.com
> > > >wrote:
> >
> > > > > Hi,
> >
> > > > > How about if it is possible to build Rich Internet Page (RIP), in a
> > > > > more productive tool like GWT designer and eclipse plug etc
> > > > > and server serving  these pages using some web framework ?
> >
> > > > > My friend asked why don't you hand code html+ajax, sure that is
> > > > > perfect, if that magic is possible with GWT, how productive it
> would
> > > > > be?
> >
> > > > > What is wrong with GWT RIA apps, Problem is  I don't see pages, I
> see
> > > > > entire app,comes onto browser and my server becomes dummy.
> >
> > > > > What is wrong server being dummy? because Browser is supposed to be
> > > > > thin and you can use it on 10 devices in single day.
> >
> > > > > You open browser on cell phone, laptop,desktop where not, still use
> > > > > the same app. so application can not be one big bundle.
> >
> > > > > It needs to be page at a time. Ok, then it is not RIA app, then i

Re: Gwt error

2010-10-12 Thread andy stevko
when onModuleLoad() is called the system is initializing everything.


On Tue, Oct 12, 2010 at 10:53 AM, Yudji  wrote:

>
> I created the class :
>
> public class Game{
> public static  int quantidadeDeUsuario;
>
> public void somarQuantidadeUsuario(){
>
>quantidadeUsuario ++;
>   System.out.println(quantidadeUsuario);
>
>
>}
>
> }
>
> ---
>
> gwt but this method there will always print "1"
>
> public void onModuleLoad() {
>CartasJogo cartasJogo = new CartasJogo();
>cartasJogo.somarQuantidadeUsuario();
> .
> .
> .
>
> }
>
> Why happen this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: REQUEST BUILDER + JSON OBJECT + PHP SERVER SIDE LANGUAGE

2010-10-06 Thread andy stevko
Did you try

public void *setRequestData*(java.lang.String requestData)



On Wed, Oct 6, 2010 at 1:58 PM, Alessio unibs  wrote:

> Hi, i have problem by using gwt requestbuilder to make http request
> with json object in body messages. In the server side code, i use php,
> but when i try to access request's data, the $_POST variable is empty.
> I post the code below:
>
> String path = GWT.getHostPageBaseURL() + "JsonObjectReceiver.php";
>
>RequestBuilder trasmettiJSON = new
> RequestBuilder(RequestBuilder.POST, URL.encode(path));
>trasmettiJSON.setHeader("Content-Type",
> "application/json");
>
>//L'evento contiene due oggetti da tenere in
> considerazione
>PrenotazioneJSON pj =
> event.getData(Costanti.OGGETTI_DA_INVIARE);
>final WCard corrente =
> event.getData(Costanti.CARD_CORRENTE_PASSO3);
>
>try{
>@SuppressWarnings("unused")
>Request req =
> trasmettiJSON.sendRequest(pj.getInfo_generali(), new
> RequestCallback() {
>
>@Override
>public void
> onResponseReceived(Request request, Response
> response) {
>if (200 ==
> response.getStatusCode()) {
>
>AppEvent xmlCorrect
> = new AppEvent(StartEvents.xmlWritten);
>
>  xmlCorrect.setData(Costanti.CARD_CORRENTE_PASSO3, corrente);
>
>
>  xmlCorrect.setData("status", response.getText());
>
>  forwardToView(passo3View, xmlCorrect);
>  } else {
>   // displayError("Couldn't
> retrieve JSON (" +
> response.getStatusText()+ ")", corrente);
>  }
>
>
>}
>
>@Override
>public void onError(Request request,
> Throwable exception) {
>//displayError("Couldn't
> retrieve JSON");
>
>
>}
>});
>
>}catch(RequestException e) {
>  //displayError("Couldn't retrieve JSON");
> }
>
> CAN SOMEONE HELP ME PLEASE? I'M NEW TO GWT, SO I HAVE NOT A LOT OF
> EXPERIENCE.
> THANKS IN ADVANCE FOR ANSWERS
>
> ALESSIO
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT- chat

2010-10-04 Thread andy stevko
Hello Yudji,

I believe you are referring to the application model call Comet
http://en.wikipedia.org/wiki/Comet_(programming)

There is a Comet implementation for the Google Web Toolkit
http://code.google.com/p/gwt-comet/



On Sun, Oct 3, 2010 at 6:48 PM, Yudji  wrote:

>
>
> I have created a simple client/server app
> that does nothing but sends a string from client to server.
>
> Now I would like to expand it so the server can send messages to all
> clients. How can this be done?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Save Page As

2010-10-01 Thread andy stevko
Try the firefox add-on "ScrapBook Plus".
It'll do saving and altering of the urls etc.

https://addons.mozilla.org/en-US/firefox/addon/8186/

On Fri, Oct 1, 2010 at 7:26 PM, Jeff Chimene  wrote:

>
>
> On Fri, Oct 1, 2010 at 7:05 PM, Greg Dougherty  > wrote:
>
>> Well, as a user there's been a lot of times when I wanted to save the
>> contents of a JavaScript generated page (such as when the web page
>> wants to give me something I can print out, but not something I can
>> save to disk and use later).
>>
>> But, as a Developer, I'd like to not have to hand-generate HTML in
>> order to save the contents of my page.
>>
>
> That's generally what you have to do. The issue is that all URLs must be
> converted to a local device reference, and the images downloaded.
>
>
>> Greg
>>
>> On Sep 28, 10:44 pm, mP  wrote:
>> > Is this a developer question or for the convenience of regular users.
>> > For regular users i cant quite see how this is probably use to them.
>> > They are never going to get a complete snapshot that is of any use.
>> > However if you want to get a snapshot of the DOM as HTML there are
>> > plenty of plugins for FireFox - google for "ViewPageSource" etc.
>> >
>> > On Sep 29, 12:15 am, Greg Dougherty 
>> > wrote:
>> >
>> > > Is there any way to make aGWTApp so that when the User selects "Save
>> > >PageAs" (or their browser's equivalent), it actually saves something
>> > > useful?  Such as, oh, the contents of thepage?
>> >
>> > > TIA,
>> >
>> > > Greg
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Multiple RPC from same page gives Error 500

2010-09-28 Thread andy stevko
I've only seen the framework optimize static resources.
I'm using the GWT-Dispatch library which basically sequences a single RPC
call many times per second (peak) to drive an appengine instance. I've had
more luck sequencing actions rather than making multiple concurrent calls
due to database conflicts and browser limitations.

Can you reproduce this without the proxy setup? locally?


On Tue, Sep 28, 2010 at 12:26 PM, bijuv v  wrote:

> Dear Andy,
> Thanks much for the response.
>
> We get the 500 error immediately from the server. The payload is
> coming as blank (empty value or "")  in the RemoteServiceServlet.
> Hence the GWT code is intentionally throwing the 500 error. The point
> that I cant understand is why the payload is not reaching the server
> though it has dispatched from the browser? I could see the request
> details in the Firebug (Netspeed section)
>
> One more point is that , if I restrict the number of connections to a
> single host as 1 (in firefox using about:config), the 500 error doesnt
> appear as all RPC requests to the server are then sequenced. Well this
> also doesnt give me a clue as to why simultaneous requests messes up
> the payload when it reaches the server.
>
> Retry may be a solution but I feel that its a workaround (last option).
>
> Wondering if GWT optimizes in some way like if there are 4 RPC's sent
> to same service in backend, does GWT merge the payload into one
> request??
>
> Thanks
> Viju
>
> FWIW, your RPC calls just happen to use the HTTP protocol.
> 500 responses are not unusual (especially most recently).
>
> If its immediate then you've pushing the limit of the browser's capacity;
> at 30 seconds, its a harddeadline exception.
>
> The browser is single threaded and has a limited number of open
> connections to the same host (2 or 4 I think). It is relatively easy
> for a click happy user to overwhelm a long duration RPC handler.
> Using push/pull libraries like Comet or Facebook take up capacity too.
> Viju: We are not using the Comet or any of the push technolgies in the
> application
>
> I've successfully used Microsoft's Fiddler proxy and HttpFox to trace
> communication request/response issues both locally and on production
> instances.
> I suggest building in a simple retry solution and make sure your RPCs
> are discrete.
>
> On Tue, Sep 28, 2010 at 9:00 PM, andy stevko 
> wrote:
> > FWIW, your RPC calls just happen to use the HTTP protocol.
> > 500 responses are not unusual (especially most recently).
> >
> > If its immediate then you've pushing the limit of the browser's capacity;
> > at 30 seconds, its a harddeadline exception.
> >
> > The browser is single threaded and has a limited number of open
> connections
> > to the same host (2 or 4 I think). It is relatively easy for a click
> happy
> > user to overwhelm a long duration RPC handler.
> > Using push/pull libraries like Comet or Facebook take up capacity too.
> >
> > I've successfully used Microsoft's Fiddler proxy and HttpFox to trace
> > communication request/response issues both locally and on production
> > instances.
> > I suggest building in a simple retry solution and make sure your RPCs are
> > discrete.
> >
> >
> >
> > On Mon, Sep 27, 2010 at 10:19 AM, GWTViju 
> wrote:
> >>
> >> e are using GWT 2.0.3 and Spring in the backend. Facing the below
> >> issue in IE(6,7,8) as well as Firefox. A proxy is placed between the
> >> Browser and the Application Server.
> >>
> >> In our application, we make multiple RPC calls to display the page.
> >> The scenario is described below
> >>
> >> RPC A and RPC B is executed when a menu is clicked. RPC A and RPC B
> >> are triggered in parallel.
> >> When RPC A completes successfully, RPC C call is triggered.
> >> When RPC B completes successfully,  RPC D call is triggered.
> >>
> >> The RPC C and RPC D are not triggered in the onSuccess method. The
> >> onSuccess transfers command to the browser, browser does some display
> >> work and then fires off the associated RPC..
> >> The UI event then fires the RPC C and RPC D to the server.
> >>
> >> In some cases (not always), I get 'Error : 500:Server response is
> >> invalid. Please re-try or contact admin.'
> >>
> >> I added some debug statements in my servlet and found that in such
> >> error scenarios, the payload is returned as Empty.
> >> The content length however gives a valid number like 199 or 223.
> >> From the browser, I checked

Re: Multiple RPC from same page gives Error 500

2010-09-28 Thread andy stevko
FWIW, your RPC calls just happen to use the HTTP protocol.
500 responses are not unusual (especially most recently).

If its immediate then you've pushing the limit of the browser's capacity;
at 30 seconds, its a harddeadline exception.

The browser is single threaded and has a limited number of open connections
to the same host (2 or 4 I think). It is relatively easy for a click happy
user to overwhelm a long duration RPC handler.
Using push/pull libraries like Comet or Facebook take up capacity too.

I've successfully used Microsoft's Fiddler proxy and HttpFox to trace
communication request/response issues both locally and on production
instances.
I suggest building in a simple retry solution and make sure your RPCs are
discrete.



On Mon, Sep 27, 2010 at 10:19 AM, GWTViju  wrote:

> e are using GWT 2.0.3 and Spring in the backend. Facing the below
> issue in IE(6,7,8) as well as Firefox. A proxy is placed between the
> Browser and the Application Server.
>
> In our application, we make multiple RPC calls to display the page.
> The scenario is described below
>
> RPC A and RPC B is executed when a menu is clicked. RPC A and RPC B
> are triggered in parallel.
> When RPC A completes successfully, RPC C call is triggered.
> When RPC B completes successfully,  RPC D call is triggered.
>
> The RPC C and RPC D are not triggered in the onSuccess method. The
> onSuccess transfers command to the browser, browser does some display
> work and then fires off the associated RPC..
> The UI event then fires the RPC C and RPC D to the server.
>
> In some cases (not always), I get 'Error : 500:Server response is
> invalid. Please re-try or contact admin.'
>
> I added some debug statements in my servlet and found that in such
> error scenarios, the payload is returned as Empty.
> The content length however gives a valid number like 199 or 223.
> From the browser, I checked the request and the request has the
> expected payload.
>
> 1. Is there an issue in chaining the RPC invocations to the server ,
> in my case, 4 RPC calls are made.
>
> 2. Has anyone seen a case in which the RPC request sent from the
> browser is lost before it reaches the server?
>
>
> Any help would be useful.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Sending mails from GWT-App

2010-09-28 Thread andy stevko
Ahh, so you are trying to use the java.mail api within GWT - that is what
confused everyone...

Perhaps you should read the reference documentation on JRE whitelist
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html



On Tue, Sep 28, 2010 at 8:37 AM, newnoise wrote:

> Ok i got that.
>
> Now my App tells me  that the API package 'mail' or call 'Send()' was
> not found. ...
> Did I just forget to inherit something, or is it not possible to use
> mail command with GWT?
>
> Thanks!
>
>
>
> On 28 Sep., 15:46, Vladi S  wrote:
> > > > This isn't a GET issue
> >
> > I guessPaul ment "GWT issue" . And yes, your java code is broken and
> > GWT group ist actually not the right place for this questions.
> >
> > > > > I'm trying to send an email from my GWT-App. I found the following
> >
> > The code for sending an email will have to be on the server side
> > as you want to use java mail.  (are you aware of this ?)
> >
> > > protected void sendMessage(String smtpHost, String fromAddress, String
> > > ...
> > > props.put("mail.smtp.host", smtpHost);
> > > > I was wondering ... what to enter at String smtpHost, as I have to
> enter my
> > > > Smtp-Host at props.put() again ...
> >
> > you don't have to enter this one again.
> >
> > Dear newnoise, please google a little bit more for the code, as it
> > will surely provide you a solution.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Parameters in gwt.xml File?

2010-09-18 Thread andy stevko
Not sure how to do the gwt.xml parameter stuff but I did come up with a way
to vary constants.
Check out my stackoverflow posting for a recipe
http://stackoverflow.com/questions/1682835/how-to-vary-constants-based-on-deployment-instance


On Sat, Sep 18, 2010 at 9:09 PM, Evan Ruff  wrote:

> Hey guys,
>
> I have a generator that I'd like to configure with some parameters in
> the gwt.xml file. Is there any way I can do that? If so, how does one
> go about defining them in the gwt.xml and then looking up the
> parameter in the generator?
>
> If it isn't possible, is there a good way to do it otherwise?
>
> Thanks!
>
> Evan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Receive xml file after authentication

2010-09-18 Thread andy stevko
Let me get this straight, you have a GWT client/ tomcat server site that has
functionality you need to access from within a desktop application. As you
say, there are a number of ways to get then connected. You don't say what
the desktop app is written in, so I'm assuming its java based.

Combining PHP and GWT from different sites is relatively straight forward
with javascript callbacks and session cookies.
An example of this is using the Facebook XFBML  within my
GWT-based application.
http://developers.facebook.com/docs/reference/plugins/login
After the user click thru the authentication pages, it triggers my callback
function so that I can react to it myself.
As a side effect, it also dumps a cookie into the browser.

Another approach is the figure out how to emulate the GWT RPC from within
your desktop application.
I tried to research this about a year ago and came up only with this nugget.
http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/
Its a way to write GWT RPC test harnesses from pure standalone java which
then can be called from something like CruiseControl. I went with the simple
XML http post servlet method instead so I'm not sure what state this
solution is in.

Lastly another option is to use JSONP to communicate between the three
parts.

Good  luck,
--Andy

On Thu, Sep 16, 2010 at 8:48 AM, kkpirri wrote:

> Hi,
>
> Need to communicate a desktop application with my GWT site in a tomcat
> server. The desktop application creates a XML document and the
> authentication info must be sent to the GWT site. The authentication
> must be done automatically; the user and the password are stored on
> the client machine and the file must be send after authentication or
> with the authentication package. I thought on using digest
> authentication or send the XML using SOAP, but I don't know how this
> can be done with GWT. I also thought on combining PHP (for
> authentication and file receiving) and the GWT site with java back-
> end, but I don't know how to share the session variables and cookies
> between the two platforms.
>
> I would appreciate your help and any other suggestion you can give me.
>
> Thank you very much
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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