Re: cross site linker in GWT 2.0 RC1 vs trunk

2009-11-20 Thread John O'Conner
OK, so all I can say is "bonehead mistake."

After deleting my entire copy of the trunk code and checking out a
"fresh" copy of the entire code base, my compilation errors for xs
mode disappeared.

One troublesome point that I also discovered was that the default
build.xml file for a sample project created with webAppCreator
contains a hard-coded path to your GWT SDK. Of course, if you change
your SDK, changing your PATH and environment variables isn't
sufficient...you must also change the "gwt.sdk" property that is hard-
coded into the generated build.xml file for a new project. Once I
downloaded fresh GWT bits, compiled GWT again, set up my local env
GWT_HOME and PATH, *and* changed the build.xml's "gwt.sdk" property,
all is working again.

Thanks Chris for your help.

--

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




Annotations versus XML configuration

2009-11-20 Thread Eric
I had a mad thought recently; some other tools I work with have
changed their orientation recently to replace or to supplement XML
files.  Would it be worthwhile for GWT follow suit?  For example,
instead of declaring  in the gwt.xml file,
perhaps a package-info.java file could contain

@GwtCompile
package com.erjablow.data.shared;

or even

@GwtCompile(replace="com.erjablow.data.emul.complex")
package com.erjablow.data.shared.complex;

Respectfully,
Eric Jablow

--

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




How to set default font family as Verdana in RichTextEditor

2009-11-20 Thread javalover
Hi Everyone,

I have used the RichTextEditor given by the GWT ,by default when i
typed the text in it it is "Times New Roman",i want to change that
default to "Verdana".Please give me suggestion where i need to do the
change to make default font family as "Verdana" in RichTextEditor when
i typed in it.

Thanks&Regards,
Madhu

--

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




Re: GWT for Windows 7 64-bit

2009-11-20 Thread Angel Marquez
http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

http://dl.google.com/eclipse/plugin/3.5/zips/gpe-e35-1.2rc1.zip

http://code.google.com/eclipse/docs/install-from-zip.html

I upgraded from 1.7. So, I'm not sure if that needs to be installed before.
http://code.google.com/webtoolkit/download.html

On Fri, Nov 20, 2009 at 8:55 PM, rfiroz  wrote:

> Where can I find GWT eclipse plugin for windows 7 64-bit?
>
> Thanks,
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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




Re: GWT 2.0 RC1 deRPC fails on App Engine?

2009-11-20 Thread Kabe
Maybe i should ask, has anyone been able to get GWT 2.0 RC1 deRPC to work
with App Engine? I couldn't, but maybe i did something wrong so i would love
to hear if someone got it working.


Kabe


On Wed, Nov 18, 2009 at 9:01 PM, Kabe  wrote:

> I'm trying to use deRPC of GWT 2.0 RC1 on App Engine and i'm getting
> the following exception. Is this because sun.misc.Unsafe is
> unavailable on App Engine (i'm not sure it isn't, but it seems
> possible)? Seems strange that GWT 2.0 RPC would not work on App
> Engine. Did i fail to configure something correctly or is this an
> intended incompatibility with App Engine?
>
>
>
> javax.servlet.ServletContext log: Exception while dispatching incoming
> RPC call
> java.lang.ExceptionInInitializerError
>at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:158)
>at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
> 141)
>at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
> 203)
>at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
> (SaveSessionFilter.java:35)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
> (AppVersionHandlerMap.java:238)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at org.mortbay.jetty.Server.handle(Server.java:313)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
> (HttpConnection.java:830)
>at
> com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
> (RpcRequestParser.java:76)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>at
>
> com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
> (JettyServletEngineAdapter.java:139)
>at com.google.apphosting.runtime.JavaRuntime.handleRequest
> (JavaRuntime.java:239)
>at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:5135)
>at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:5133)
>at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
> (BlockingApplicationHandler.java:24)
>at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
> 363)
>at com.google.net.rpc.impl.Server$2.run(Server.java:814)
>at com.google.tracing.LocalTraceSpanRunnable.run
> (LocalTraceSpanRunnable.java:56)
>at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
> (LocalTraceSpanBuilder.java:516)
>at com.google.net.rpc.impl.Server.startRpc(Server.java:769)
>at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
>at com.google.net.rpc.impl.ServerConnection.messageReceived
> (ServerConnection.java:437)
>at com.google.net.rpc.impl.RpcConnection.parseMessages
> (RpcConnection.java:319)
>at com.google.net.rpc.impl.RpcConnection.dataReceived
> (RpcConnection.java:290)
>at com.google.net.async.Connection.handleReadEvent(Connection.java:
> 436)
>at com.google.net.async.EventDispatcher.processNetworkEvents
> (EventDispatcher.java:762)
>at com.google.net.async.EventDispatcher.internalLoop
> (EventDispatcher.java:207)
>at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
> 101)
>at com.google.net.rpc.RpcService.runUntilServerShutdown
> (RpcService.java:251)
>at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
> (JavaRuntime.java:396)
>at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.RuntimeException: Unable to get Unsafe instance
>at com.google.gwt.r

GWT for Windows 7 64-bit

2009-11-20 Thread rfiroz
Where can I find GWT eclipse plugin for windows 7 64-bit?

Thanks,

--

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




using linker while deploying application

2009-11-20 Thread m.mil...@newelements.de
we´re developing an instant messenger using gwt and smart gwt.
it should be possible for our customers to integrate the messenger in
their website while including the javascript from our server.

we we tried to split our compilated code: one part which runs on our
server and one part which could be included in the website of the
customer.
we basically have three modules:

- main application (GWT Module, that runs at our server, displayes all
users that are available on the messenger)
- communication (Java Module, holds all classes necessary for the
communication between our server and the customer website)
- messenger (Java Module, to be integrated at user website, deployed
with the xs-linker-option)

the whole application must be deployed as one, because the
communication module must be the same for both parts of the
application.

this strategy nearly worked, the messenger is displayed at the
customer website that includes our javascript.

problem nr. 1: the images and styles of the smart gwt could not be
loaded because of a wrong path.
question nr1: is there a possibility to set the correct path and load
the images and styles from an external site?

problem nr 2: the rpc calls from the customer website to our server
always ends in "onFailure".
question nr 2: how could we solve this?

question nr 3: maybe our strategy is wrong, is there an better
solution to reach the goal?

i´m looking forward to your answers!

--

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




Re: GWT 2.0 RC1 deRPC fails on App Engine?

2009-11-20 Thread Kabe
Anyone with any insight into this? has anyone gotten deRPC to work on
AppEngine?



On Wed, Nov 18, 2009 at 9:01 PM, Kabe  wrote:

> I'm trying to use deRPC of GWT 2.0 RC1 on App Engine and i'm getting
> the following exception. Is this because sun.misc.Unsafe is
> unavailable on App Engine (i'm not sure it isn't, but it seems
> possible)? Seems strange that GWT 2.0 RPC would not work on App
> Engine. Did i fail to configure something correctly or is this an
> intended incompatibility with App Engine?
>
>
>
> javax.servlet.ServletContext log: Exception while dispatching incoming
> RPC call
> java.lang.ExceptionInInitializerError
>at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:158)
>at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
> 141)
>at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
> 203)
>at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
> (SaveSessionFilter.java:35)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
> (AppVersionHandlerMap.java:238)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at org.mortbay.jetty.Server.handle(Server.java:313)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
> (HttpConnection.java:830)
>at
> com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
> (RpcRequestParser.java:76)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>at
>
> com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
> (JettyServletEngineAdapter.java:139)
>at com.google.apphosting.runtime.JavaRuntime.handleRequest
> (JavaRuntime.java:239)
>at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:5135)
>at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:5133)
>at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
> (BlockingApplicationHandler.java:24)
>at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
> 363)
>at com.google.net.rpc.impl.Server$2.run(Server.java:814)
>at com.google.tracing.LocalTraceSpanRunnable.run
> (LocalTraceSpanRunnable.java:56)
>at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
> (LocalTraceSpanBuilder.java:516)
>at com.google.net.rpc.impl.Server.startRpc(Server.java:769)
>at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
>at com.google.net.rpc.impl.ServerConnection.messageReceived
> (ServerConnection.java:437)
>at com.google.net.rpc.impl.RpcConnection.parseMessages
> (RpcConnection.java:319)
>at com.google.net.rpc.impl.RpcConnection.dataReceived
> (RpcConnection.java:290)
>at com.google.net.async.Connection.handleReadEvent(Connection.java:
> 436)
>at com.google.net.async.EventDispatcher.processNetworkEvents
> (EventDispatcher.java:762)
>at com.google.net.async.EventDispatcher.internalLoop
> (EventDispatcher.java:207)
>at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
> 101)
>at com.google.net.rpc.RpcService.runUntilServerShutdown
> (RpcService.java:251)
>at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
> (JavaRuntime.java:396)
>at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.RuntimeException: Unable to get Unsafe instance
>at com.google.gwt.rpc.server.CommandSerializationUtil.
> (CommandSerializationUtil.java:443)
>... 45 more
> Caused by: java.la

Re: Using same RPC servlet by mutliple modules

2009-11-20 Thread Fabio
Maybe GuiceRemoteServiceServlet fits your needs. All the services are
mapped to the same url, and GuiceRemoteServiceServlet uses Guice
dependency injection to choose one appropriate service implementation,
that serves the service interface on which the request was made.

hope it helps

On 20 nov, 11:28, Kamal Chandana Mettananda  wrote:
> Hi,
>
> When you specify the servlet url-pattern; you must specify the path you
> expects without wild cards in the middle of the url-pattern. (wild card
> character can be a suffix in a url pattern).
>
> Cheers,
> Kamalhttp://lkamal.blogspot.com
>
> On Fri, Nov 20, 2009 at 6:50 PM, smiletolead wrote:
>
>
>
> > Hi all,
> >   I have a project with 2 modules. The modules are sharing a RPC
> > servlet. The idea is to use single RPC servlet for multiple Service
> > interfaces. The interfaces reside in different modules. I am facing
> > one problem when use * in the URL pattern. The servlet is not getting
> > invoked when I use the URL patter as "/*/moduleA". It is expecting me
> > to specify the exact URL.  Can anyone tell me what the problem is?
>
> > Regards,
>
> > --
>
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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




Re: can't inherit gwt maps module

2009-11-20 Thread Stephen Walsh
What version of Eclipse are you using?  I just tried to run the tutorial
code that you mentioned before and had no trouble.  I did have to click on
my side bar in eclipse and import the below files:

package com.stephenlwalsh.mapstest.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.maps.client.InfoWindowContent;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.control.LargeMapControl3D;
import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.maps.client.overlay.Marker;
import com.google.gwt.user.client.ui.RootPanel;

This will go just below the first line of your code.  Give that a try and
see if it works.

Stephen Walsh


On Tue, Nov 17, 2009 at 10:35, Brady  wrote:

> The gwt-maps jar is already on my classpath.
>
>
>
> On Nov 13, 6:14 pm, Stephen Walsh  wrote:
> > [image:
> >
> ?ui=2&view=att&th=124f03f8d7f16d84&attid=0.1&disp=attd&realattid=ii_124f03f8d7f16d84&zw]
> >  You
> > can build out a plain project like this.
> > [image:
> >
> ?ui=2&view=att&th=124f03fa2c8235e6&attid=0.1&disp=attd&realattid=ii_124f03fa2c8235e6&zw]
> >  Then
> > use the add JARs link from the properties window to add your library
> files.
> >
> > Hope that helps you.
> > Stephen Walsh
> >
> > On Fri, Nov 13, 2009 at 14:34, Stephen Walsh  >wrote:
> >
> > > Brady,
> >
> > > If you right-click on your project and select "Properties" you can add
> an
> > > external JAR file.  Or better yet, create a new plain folder and put
> all of
> > > your jar files in there.  Then you can reference the library.  I'm at
> work
> > > and can't send you a screen shot of my setup, but let me know if you
> need
> > > any other help on how to make that happen.  I had the same trouble
> trying to
> > > include the AJAX search api for GWT.
> >
> > > On Thu, Nov 12, 2009 at 11:01, Brady  wrote:
> >
> > >> I am using the google plugin for eclipse.  The getting started page
> > >> that you referenced, itself references the GWT startup instructions
> > >> for GWT 1.5.  The projectCreator and applicationCreator utilities seem
> > >> to be no longer a part of the newer versions.  What steps should
> > >> replace the ones that reference those scripts?
> >
> > >> On Nov 12, 7:26 am, Eric Ayers  wrote:
> > >> > Official getting started page:
> >
> > >> >
> http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis.
> > >> ..
> >
> > >> > If you are not using the Google Plugin for eclipse, you may have to
> > >> > carefully setup your run configuration.
> >
> > >> > On Tue, Nov 10, 2009 at 4:05 PM, Brady  wrote:
> > >> > > I've been trying to build a simple GWT app using GWT-maps.jar,
> like
> > >> > > the one at:
> > >> > >
> http://gwttutorials.com/2009/07/28/setting-up-google-maps-with-gwt/
> >
> > >> > > Despite following the instructions, I still get error messages
> like
> > >> > > this one:
> > >> > > No source code is available for type
> > >> > > com.google.gwt.maps.client.geom.LatLng; did you forget to inherit
> a
> > >> > > required module?
> >
> > >> > > I cannot find anything wrong with my application.gwt.xml file,
> which
> > >> > > includes the following lines:
> >
> > >> > >
> > >> > >

Re: SOP and GWT 1.7

2009-11-20 Thread Thomas Broyer


On 20 nov, 10:47, oleberre  wrote:
> Hi all.
>
> I had a look 
> tohttp://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#What_is_the...
> to try to understand how SOP works. In this article, there is mention
> of -xs.nocache.js which is supposed to handle cross site
> problem. However, in my project, this file is not generated. I have
> only to .nocache.js one. I am using GWT 1.7.1 by the way.
> Is this trick still valid ?

Yes

> If yes, how do you generate this -xs
> file ?

Add the following to your module:

   

(not sure if the generated nocache.js will have the -xs suffix, but
it'll be the "xs" version, meaning that it can be loaded from a
different domain than the one the HTML page has been loaded from)

--

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




Re: loading only IE permutation

2009-11-20 Thread Thomas Broyer


On 20 nov, 20:06, bosco monkey  wrote:
> I'm trying to get the PlayStation 3 (PS3) browser to work with GWT
> (see thread athttp://bit.ly/5LEG4h). I think that my GWT app may work
> if I can force it to only load the IE permutation. Right now, I think
> the PS3 NetFront browser is fooling the GWT loader into loading the
> Firefox permutation because of its user agent string - "Mozilla/5.0
> (PLAYSTATION 3; 1.00)".
>
> How can I modify my app (*.gwt.xml, loader JavaScript code) to always
> load the IE permutation regardless of what browser user agent string
> comes through?



;-)

--

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




Re: Google Web Toolkit 2.0 RC1 Now Available

2009-11-20 Thread Tristan
What do I pass to the -server argument when I want gwt 2.0 to run with
all the neat GAE stuff (the google eclipse plugin does it
automatically in 1.7)

On Nov 18, 10:01 am, Arthur Kalmenson  wrote:
> Oh, good to hear. There was some discussion about whether deRPC would
> make it into 2.0 or not, and I didn't see it mentioned in the Wiki.
> Sorry about that!
>
> --
> Arthur Kalmenson
>
>
>
> On Tue, Nov 17, 2009 at 3:33 PM, Chris Ramsdale  wrote:
> > The deRPC components live under the com.google.gwt.rpc package and are
> > available in the RC. The doc may be a bit sparse or missing in a few spots
> > but we're adding content daily as we march towards release.
>
> > On Tue, Nov 17, 2009 at 2:58 PM, Arthur Kalmenson 
> > wrote:
>
> >> Congrats on the release! We'll definitely be using GWT 2 in our next
> >> project, I can't wait!
>
> >> But I guess deRPC didn't make it in? Any chance of it appearing before
> >> the final release?
>
> >> --
> >> Arthur Kalmenson
>
> >> On Tue, Nov 17, 2009 at 2:32 PM, br...@google.com 
> >> wrote:
> >> > You should be in good shape either way, actually. The same project
> >> > structure will work with either SDK version, so you can retain the
> >> > option to switch back and forth. The only "one-way" choice would be if
> >> > you start using the new UiBinder, ClientBundle, and layout panel
> >> > stuff. If you need to play it conservatively, you could hold off on
> >> > those things, but you can at least start using the new in-browser
> >> > development mode, which should make you even more productive as you
> >> > push toward your own launch.
>
> >> > Big picture, though, we're eager to finalize 2.0, so I wouldn't expect
> >> > too long an RC cycle this time. In other words, you should even be
> >> > safe to start using 2.0-only features in the timeframe you're
> >> > describing.
>
> >> > On Nov 17, 2:23 pm, Yozons Support on Gmail  wrote:
> >> >> What's the ETA now for GWT 2.0 final?  I am developing now under 1.7.1,
> >> >> but
> >> >> won't expect to be in production for another 4 months or so.  Would I
> >> >> be
> >> >> better off getting a jump on 2.0 now or would I risk 2.0 not being
> >> >> ready for
> >> >> production over the next several months?
>
> >> > --
>
> >> > 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=.
>
> >> --
>
> >> 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=.
>
> > --
>
> > 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=.

--

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




Missing build paths for App Engine SDK and GWT SDK

2009-11-20 Thread kbowe...@gmail.com

[On a Mac OS X 10.5.8] I had to clean off my old Galilio and Google
plugin. Then  I re-installed Eclipse Galilio and then installed the
Google plugin (from the update site http://dl.google.com/eclipse/plugin/3.5),
as shown here by Eclipse's "already installed software" link:

Eclipse IDE for Java EE Developers  1.2.1.20090918-0703 epp.package.jee
Google App Engine Java SDK 1.2.61.2.6.v200910131704
 
com.google.appengine.eclipse.sdkbundle.e35.feature.feature.group
Google Plugin for Eclipse 3.5   1.1.2.v200910131704
 
com.google.gdt.eclipse.suite.e35.feature.feature.group
Google Web Toolkit SDK 1.7.11.7.1.v200909221731
 
com.google.gwt.eclipse.sdkbundle.e35.feature.feature.group

I'm trying work with an existing GWT/Google App project.  When I open
that project and go to
   [Project] > Java Build Path > Libraries,

I get a message "2 build path entries are missing.", and the entries
for

App Engine SDK [App Engine - unknown version] (unbound)
and
GWT SDK [GWT - unknown version] (unbound)

are marked with red error X boxes. Of course lots of stuff in the code
won't resolve.
 I uninstalled & re-installed the plug once, but get the same
result.
What is wrong here?

--

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




com.google.gwt.i18n.client.Constants

2009-11-20 Thread davidroe
in general, how should one go about segmenting and structuring methods
and properties for i18n for a mid to large sized application?

- should there be a single class and associated properties files (1
per language) that cover every requirement in all classes? or should
constants be organised into different smaller groups?

- should there be a single global instantiation of a class that is
saved and re-used vs. calling GWT.create() each time a Constants class
is required?

- in a scenario where a piece of code is called frequently, is there a
performance issue with GWT.create()'ing multiple different
MyThisConstants and MyThatConstants classes vs. GWT.create() a single
MyConstants class vs. passing in a global instantiated object?

- does the compiler sort all of this out for you and there is little
need to be concerned?

thanks,
/dave

--

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




GWT 2.0 Development Mode: Can't Load Page

2009-11-20 Thread spatters71
I'm trying to run the sample GWT 2.0 Applications. I can't seem to get
the development mode to work.

When I hit the Run button in Eclipse, I get the GWT Development Mode
Window, and it says:
"00:00:01.674 [INFO] Waiting for browser connection to
http://localhost:/DynaTable.html?gwt.codesvr=10.1.3.14:9997";

However when I browse to this URL:

http://localhost:/DynaTable.html?gwt.codesvr=10.1.3.14:9997

in FireFox, IE8, or Chrome I get a message stating that the web page
can't be loaded.

I have JDK 6 release 17, Eclipse 3.5, Windows 7.

--

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




Controlling desktop windows size and position.

2009-11-20 Thread PatrickJ
Is there and equivalent functional in GWT to VB's FindWindow,
ShowWindow and MoveWindow?

I would like to write a simple GWT application that would list all
applications running on a Windows PC and have the ability to control
the window's position attributes.

Patrick

--

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




Re: MouseOverHandler not called for text of Checkbox

2009-11-20 Thread dave
Thanks to both of you for the info.  I suspected it was an issue with
the CheckBox itself, but wanted to make sure that I wasn't missing
something obvious.

My fix (for now) has just been to manually add my own Label (instead
of using the CheckBox label) and handling mouse over the Label events,
as the CheckBox itself isn't essential.

If I do switch back, your suggestion of a Composite is exactly what
I'll do.
Thanks!

On Nov 20, 3:18 am, Thomas Broyer  wrote:
> On Nov 20, 2:01 am, dave  wrote:
>
> > First and only time I'll bump this, but I've yet to find a solution.
>
> > Adding a MouseOverHandler to the GWT CheckBox widget only fires when
> > mousing over the checkbox itself from the top, left, or bottom.  It
> > does not fire when mousing over the text label or  when moving from
> > the text over the actual checkbox.
>
> > How can I add a MouseOverHandler that will fire when over the label of
> > a CheckBox?
>
> If you ask me, this is a bug in CheckBox (it uses many "hacks" to get
> events sunk on the checkbox rather than  that encloses both the
> checkbox and label, which leads to this behavior and which I'm really
> not sure is needed –cannot it take advantage of events bubbling to the
> span?–)
>
> In the mean time, you'd have to copy/fix CheckBox (or in other words
> create your own).

--

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




Re: Gears API - Notification

2009-11-20 Thread Eric Ayers
Hi Bakul,

It isn't available now, but I'd be happy to look at any patches and consider
them for inclusion.

I added an issue:
http://code.google.com/p/gwt-google-apis/issues/detail?id=331

-Eric.

On Fri, Nov 20, 2009 at 2:55 PM, Bakul  wrote:

> Hi,
>
> Just curious to know if Notification of Gears is available in Gears
> API for GWT?
>
> Thanks,
> Bakul
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>


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

--

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




Gears API - Notification

2009-11-20 Thread Bakul
Hi,

Just curious to know if Notification of Gears is available in Gears
API for GWT?

Thanks,
Bakul

--

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




Re: cache.html file is not cached with JBoss(Tomcat) and Internet Explorer 6-7

2009-11-20 Thread Yozons Support on Gmail
For Tomcat, if you have this in your META-INF/context.html:





This will prevent it from doing the caching.  If you have any other type of
Authenticator in use already, you can probably just add the
disableProxyCaching="false" attribute to it.

--

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




loading only IE permutation

2009-11-20 Thread bosco monkey
I'm trying to get the PlayStation 3 (PS3) browser to work with GWT
(see thread at http://bit.ly/5LEG4h). I think that my GWT app may work
if I can force it to only load the IE permutation. Right now, I think
the PS3 NetFront browser is fooling the GWT loader into loading the
Firefox permutation because of its user agent string - "Mozilla/5.0
(PLAYSTATION 3; 1.00)".

How can I modify my app (*.gwt.xml, loader JavaScript code) to always
load the IE permutation regardless of what browser user agent string
comes through?

-- Bosco

--

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




Re: Unknown type evolves from overriding functions in Javascript

2009-11-20 Thread MonkeyMike
Sorry for the strange formatting, by the way.  I simply copy-and-
pasted my code.

On Nov 20, 10:58 am, MonkeyMike  wrote:
> I have some JSNI that the GWT compiler doesn't like...
>
> --
>         public static native void declareCustomMoveable(String
> customMoveableId, NativeCustomMoveableCallback callback) /*-{
>                 dojo.declare( customMoveableId, dojox.gfx.Moveable, {
>                         onFirstMove: function(mover){
>
> callba...@gwtgfx.client.callback.custommoveablecallback::onFirstMove
> ();
>                         },
>                         onMoving: function(mover, shift){
>                                 
> callba...@gwtgfx.client.callback.custommoveablecallback::onMoving(
>                                         
> Lgwtgfx/client/definition/jsni/NativeTransformDefinition;
>                                 )(shift);
>                         },
>                         onMoved: function(mover, shift){
>                                 
> callba...@gwtgfx.client.callback.custommoveablecallback::onMoved(
>                                         
> Lgwtgfx/client/definition/jsni/NativeTransformDefinition;
>                                 )(shift);
>                         }
>                 });
>         }-*/;
> --
>
>    Note that I am using dojo's pattern for "subclassing"
> dojox.gfx.Moveable, and overriding the methods onFirstMove, onMoving,
> and onMoved.  In each of these, there is a call to the relevant method
> from NativeCustomMoveableCallback.java (which is a Java interface, by
> the way).  The GWT compiler is okay with the onFirstMove
> implementation, but for both the onMoving and onMoved implementations,
> I get the following error...
>
> "Expected a valid parameter type signature in JSNI method reference"
>
>    Note that I have indicated that "shift" is an instance of a
> NativeTransformDefinition, which is a subclass of JavaScriptObject in
> my library.  Isn't this valid?  I thought that the GWT compiler
> "trusts" the developer to indicate types of objects that come from
> JavaScript, so long as the types are subclasses of JavaScriptObject.
>
>    So is it just that my syntax is somehow incorrect?  I'm using GWT
> 1.7.  If not, how can I refactor this to achieve a pattern which is
> acceptable to the GWT compiler?
>
> Thanks in advance! :)

--

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




Unknown type evolves from overriding functions in Javascript

2009-11-20 Thread MonkeyMike
I have some JSNI that the GWT compiler doesn't like...

--
public static native void declareCustomMoveable(String
customMoveableId, NativeCustomMoveableCallback callback) /*-{
dojo.declare( customMoveableId, dojox.gfx.Moveable, {
onFirstMove: function(mover){

callba...@gwtgfx.client.callback.custommoveablecallback::onFirstMove
();
},
onMoving: function(mover, shift){

callba...@gwtgfx.client.callback.custommoveablecallback::onMoving(

Lgwtgfx/client/definition/jsni/NativeTransformDefinition;
)(shift);
},
onMoved: function(mover, shift){

callba...@gwtgfx.client.callback.custommoveablecallback::onMoved(

Lgwtgfx/client/definition/jsni/NativeTransformDefinition;
)(shift);
}
});
}-*/;
--

   Note that I am using dojo's pattern for "subclassing"
dojox.gfx.Moveable, and overriding the methods onFirstMove, onMoving,
and onMoved.  In each of these, there is a call to the relevant method
from NativeCustomMoveableCallback.java (which is a Java interface, by
the way).  The GWT compiler is okay with the onFirstMove
implementation, but for both the onMoving and onMoved implementations,
I get the following error...

"Expected a valid parameter type signature in JSNI method reference"

   Note that I have indicated that "shift" is an instance of a
NativeTransformDefinition, which is a subclass of JavaScriptObject in
my library.  Isn't this valid?  I thought that the GWT compiler
"trusts" the developer to indicate types of objects that come from
JavaScript, so long as the types are subclasses of JavaScriptObject.

   So is it just that my syntax is somehow incorrect?  I'm using GWT
1.7.  If not, how can I refactor this to achieve a pattern which is
acceptable to the GWT compiler?

Thanks in advance! :)

--

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




Re: Upgrade 1.5.3 to 1.7.1

2009-11-20 Thread Vince
Just wanted to thank the people who gave pointers on this subject.

To : Thomas Broyer, SmartKiller, Olivier and tskaife... Help is
greatly appreciated!

My work is now running on top of GWT 1.7.1.

Thanks a Million,
Vince



On Nov 11, 5:08 pm, Vince  wrote:
> Hello tskaife,
>
> Yep! I just figured it out... I did insert the java thread size
> specifier, e.g. -Xss16M. Is that overkill?
>
> Anyhow, thanks for the feedback... Appreciate it. Now I'm back on
> track.
>
> Thanks,
> Vince
>
> On Nov 11, 4:50 pm, tskaife  wrote:
>
>
>
> > There was an issue like that in 1.6 which I think has been fixed in
> > 1.7
>
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=3510
>
> > try adding -Xss1024k
>
> > On Nov 11, 2:23 pm, Vince  wrote:
>
> > > Hello,
>
> > > Is this script correct?
>
> > > @java -Xmx256M -cp "%~dp0\src;%~dp0\web\WEB-INF\classes;C:\workspace
> > > \env\GWT 1.6.4\gwt-windows-1.6.4\gwt-user.jar;C:\workspace\env\GWT
> > > 1.6.4\gwt-windows-1.6.4\gwt-dev-windows.jar"
> > > com.google.gwt.dev.Compiler -war "%~dp0\www" %*
> > > com.timelink.falco.wui.wuigwt.TestApp
>
> > > Thanks,
> > > Vince
>
> > > On Nov 11, 2:33 pm, Vince  wrote:
>
> > > > Phase : Change version 1.5.3 - 1.6.4
>
> > > > I'm in the process of changing the compilation build script from using
> > > > GWTCompile to Compile and I am encountering a StackOverFlow error on
> > > > my code. This error didn't use to be thrown when using version
> > > > 1.5.3...
>
> > > > Does anybody have any idea on where this error could be originating
> > > > from? A concept change perhaps from 1.5.3... The only clue I have is
> > > > that it's coming from an ArrayList invocation.
>
> > > > Thanks,
> > > > Vince
>
> > > > P.S. Here's a few iterations of the stack trace of that exception...
>
> > > >    [ERROR] Unexpected internal compiler error
> > > > java.lang.StackOverflowError
> > > >         at java.io.ObjectOutputStream$HandleTable.hash(Unknown Source)
> > > >         at java.io.ObjectOutputStream$HandleTable.lookup(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> > > >         at java.io.ObjectOutputStream.defaultWriteFields(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeObject(Unknown Source)
> > > >         at java.util.ArrayList.writeObject(Unknown Source)
> > > >         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown
> > > > Source)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > >         at java.lang.reflect.Method.invoke(Unknown Source)
> > > >         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> > > >         at java.io.ObjectOutputStream.defaultWriteFields(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeObject(Unknown Source)
> > > >         at java.util.ArrayList.writeObject(Unknown Source)
> > > >         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown
> > > > Source)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > >         at java.lang.reflect.Method.invoke(Unknown Source)
> > > >         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> > > >         at java.io.ObjectOutputStream.defaultWriteFields(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown
> > > > Source)
> > > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> > > >         at java.io.ObjectOutputStream.writeObject(Unknown Source)
> > > >         at java.util.ArrayList.writeObject(Unknown Source)
> > > >         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown
> > > > Source)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > >         at java.lang.reflect.Method.invoke(Unknown Source)
> > > >         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)

-server argument documentation?

2009-11-20 Thread Tristan
I am using GWT 2.0 built from trunk and I want to be able to launch my
GWT / GAE app in DevMode (so that it uses GAE and not just Jetty).
What is the the correct servlet configuration launcher that I should
pass with the "-server" option in my Java Application Configuration?

--

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




Re: Bloquear copy - paste

2009-11-20 Thread Jochelo
claro, bueno supongo, ya que he posteado en español y responden igual,
ademas trae la opcion de traducir.
y lo he conseguido con:

txtNroExpediente.addFocusListener(new FocusListenerAdapter()
{
@Override
public void onLostFocus(Widget sender)
{
if 
(!txtNroExpediente.getText().matches("[0-9]*"))
{
Window.alert("Este campo solo acepta 
numeros");
txtNroExpediente.setText("");
}
}
});

ya que la validacion de entrada en el onchange no toma cuando el
string es pegado (ctrl + v)
Saludos

On 19 nov, 20:34, despineira  wrote:
> ¿Por qué no validar todo al final en lugar de validar activamente los
> campos durante el input?
> De todas maneras tiene que haber un evento onchange en el widget de
> input text. Podrías usar ese evento para validar la entrada ahi.
>
> PD: Yo creia que el grupo era en ingles, se puede tambien postear en
> castellano?
>
> Saludos
>
> On Nov 19, 7:30 pm, Jochelo 
> wrote:
>
> > Ya tengo bloqueado el segundo botón con una función java script, ahora
> > quisiera saber cómo bloquear "ctrl + v" de forma genérica con una
> > función global o con alguna función para cada campo.
> > Lo que quiero llegar a hacer es que no peguen letras con "ctrl + v" en
> > un campo numérico.
> > Gracias.

--

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




Query regarding printing a widget

2009-11-20 Thread abhiram
Hi All,

  I just needed some help regarding a functionality where i need to
print the contents of a widget.

  I am using the Print.it() function. I am able to print the HTML
string using the function Print.it("Just Print.it()!"). This
happens successfully, but am not able to print the contents of a
particular rootPanel. The rootPanel has a couple of buttons and a
textBox with some text. I have been using the following command for
this

   Print.it(rootPanel.get("__printingFrame"));

  I know I am missing something here. But am not sure how to proceed.
When i fire this command I just get the text  " [object] " printed.
Can someone help me out at this point? What else do i need to do to
get the contents of the TextBox printed.

  This was the entry that I made in html file.
 

  I saw some previous codes where I got some info, but am looking out
for a very specific example where a textBox is passed as an argument
and I get only the contents of it printed.

  Can someone please suggest what do I need to do?

regards,
Abhiram

--

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




cache.html file is not cached with JBoss(Tomcat) and Internet Explorer 6-7

2009-11-20 Thread pepgrifell
Hi,

I have 2 filters in my aplication (defined in web.xml):

- CacheFilter: to cache static files (*.cache.html,*.css, ...)
- GZIPFiler : to gzip cache.html file.

GZIPFilter works ok but cache filter , using JBoss and IE6-7 does not
caches my cache.html file.

I read that Tomcat adds Pragma: no-cache header to any resources in a
secure context. So, altough I add an expires header (1 year) to my
cache.html file, then Tomcat adds Pragma: no-cache header and the
cache.html file is not cached.

In this link http://forums.adobe.com/thread/95228  they explain how to
add another filter (ResponseHeaderFilter)  to change the headers
(after tomcat has added  Pragma: no-cache header)

 
   ResponseHeaderFilter
   com.nte.anthema.gwt.server.common.ResponseHeaderFilter
   
Cache-Control
max-age=3600


Pragma
public
 
  
  
   ResponseHeaderFilter
  *.cache.html


But, the html.cache file is not cached neither.

Has anyone got a solution to this ?

Thanks !!


--

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




Re: GWT Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5

2009-11-20 Thread Yozons Support on Gmail
Great.  I figured it must be known since it's rather routine -- it'll crash
after every few code change/test cycles, but I can't "make it crash" yet.
But it's always after reloading FF after making changes that no doubt cause
a server reload or something.

--

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




Re: GWT Developer Plugin works only sometimes

2009-11-20 Thread Yozons Support on Gmail
Upgrading from 1.7 seems fraught with peril.  The docs even suggest that you
install on a clean install of Eclipse, which is what I did because prior to
that, my own attempt resulted in much confusion.

As the gwt.xml, it appears that there was a bug (supposedly fixed for RC 2)
regarding uppercase characters in the gwt.xml file name.  I went with all
lowercase letters and it seemed happy.  I also found that I had to add
-Xms100m to my debug launch param for the JRE VM to avoid module load
failures.  Hope this helps

--

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




Re: GWT 2.0 Javascript IE Crash

2009-11-20 Thread jd
I wonder if this is the bug that I am also seeing.  I am running
2.0RC2 and in IE6 also get an Illegal Argument error when I run it as
compiled JS.  From hosted mode this exception is thrown


com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument. number: -2147024809 description: Invalid argument. at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27) at
java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException
(ModuleSpace.java:64) at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:157) at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120) at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
509) at


stepping through the code my problem occurs in LayoutImplIE6 on the
line with the *


  public Element attachChild(Element parent, Element child, Element
before) {
if (!isIE6) {
  return super.attachChild(parent, child, before);
}

DivElement container = Document.get().createDivElement();
*container.insertBefore(child, before);


It works fine in IE7, 8, Safari and Firefox

--

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




Re: GWT 2.0 Javascript IE Crash

2009-11-20 Thread jd
One more thing of note is that DevMode in Eclipse then starts to take
close to 100% CPU.

--

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




Re: JSNI syntax question - calling Java methods from JSNI

2009-11-20 Thread Bryan
Nice.  Thanks Thomas.  Worked great.  I knew it had to be something as
simple as that.  Much appreciated.

On Nov 20, 4:22 am, Thomas Broyer  wrote:
> On Nov 20, 1:07 am, Bryan  wrote:
>
>
>
> > I'm following the example seen here for 'calling Java methods from
> > JSNI' and it works great.
>
> >http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-g...
>
> > I'm trying to do something slightly different though.  Here's what it
> > is.
>
> > package com.foo.bar;
>
> > public class MyClass {
>
> >         private void javaMethod(String s) {
> >                 Window.alert("called the java method with String " + s);
> >         }
>
> >         private native String nativeMethod() /*-{
>
> >                 var myFunc = function() {
> >                         // trying to call the 'javaMethod' method from here 
> > and the
> > notation
> >                         // at the link above does not work
> >                         //
> >                         // notation that is not working for me
> >                         // 
> > th...@com.foo.bar.myclass::javaMethod(Ljava/lang/String;)
> > ('coming from nativeMethod.myFunc');
> >                 }
>
> >     }-*/;
>
> > }
>
> > It doesn't surprise me that what I'm trying doesn't work, I'm assuming
> > the 'this' I'm trying to use is in the wrong scope.  Anyone have any
> > suggestions for how I can get to that java method from within a native
> > method that defines a function?
>
> It's as easy as the following ;-)
>
> var self = this;
> var myFunc = function() {
>    s...@com.foo.bar.myclass::javaMethod(Ljava/lang/String;)('coming
> from nativeMethod.myFunc');
>
> };

--

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




Re: GWT vs ExtJs

2009-11-20 Thread martin.krau...@gmail.com
I would strongly suggest that you stay away from the entire Ext
family. They have and continue to have a very deceptive licensing
scheme. It's licensed under GPL so you cannot use it commercially
unless you are will to open source you client source code *and* your
server side source code according to thier very terms of use - which
is very bizarre. Secondly even if you do end up buying a commercial
license at $329 / license, you still do not have access to the bug fix
releases.

The $329 / license really doesn't get you much. Version 2.0 final of
ExtGWT was pretty much demoware with over 100 critical bugs. 4 - 6
months later several bugs have been fixed but license holders are not
entitled to the latest bug fix release of 2.0.3. You not only need a
license but you need a support subscription to download the latest
stable version.

See http://www.extjs.com/products/gxt/download.php
http://www.extjs.com/forum/showthread.php?p=393316#post393316

So the real cost of the license is $629 / license / year. In addition
to this be prepared to pay frequent upgrade fees for no good reason.
Users were required to buy upgrade licenses within less than a year of
the ExtGWT 1.0 release because they did an *internal* refactoring to
clean up the code and not because new features were added to justify
the 2.0 release.

A final word of caution - read the terms of their commercial license
very carefully and run it by your legal. It's not your typical
commercial license that you'd expect with a commercial product. They
have some really severe restrictions that might even require you end
user / customer to buy a commercial license of ExtGWT.



On Nov 20, 9:04 am, Дмитрий Николаев  wrote:
> For my personal experience, I would recommend use native GWT library.
> More stable, low cost, good documented, strong typing
>
> Most of the UI in Ext-js logically replecable by native GWT
>
> On 19 ноя, 20:11, Palani  wrote:
>
>
>
> > We are evaluating GWT and Ext-JS for our application development.
>
> > With GWT,  I do not need to mess with Java Script and all the
> > development can be done in Java.
>
> > With Ext-Js, I need to learn JavaScript and it is not strongly typed
> > language.
>
> > Any other guidance would be appreciated.
>
> > Thank you in advance.- Hide quoted text -
>
> - Show quoted text -

--

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




Select(listbox) box with custom selection image arrow in GWT 2.0

2009-11-20 Thread mnenchev
Hi,

Is it possible to create select(list) box with custom image for the
selection arrow? the standard gwt list box does not use any resources
so i think it can't be customized for that, so i need to create my own
widget?
Regards.

--

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




Re: GWT vs ExtJs

2009-11-20 Thread Paul Robinson
Other reasons for using plain GWT:
- no licence issues for commercial apps (but ExtJS has a history of
switching licences)
- smaller downloads (because user doesn't need to download a js library)
- anecdotal evidence suggests it's faster (because GWT can optimize all
the js)
- the java tools available really do make development more efficient
than working in js (type safety, refactoring etc)
- support via this group is pretty good, but it seems (from the lack of
questions and answers) that most people here only use plain GWT. I'm not
sure if third party libs have the same level of support elsewhere.
- AFAIK GWT 2.0's code splitting won't work with js libs

Paul

Дмитрий Николаев wrote:
> For my personal experience, I would recommend use native GWT library.
> More stable, low cost, good documented, strong typing
>
> Most of the UI in Ext-js logically replecable by native GWT
>
> On 19 ноя, 20:11, Palani  wrote:
>   
>> We are evaluating GWT and Ext-JS for our application development.
>>
>> With GWT,  I do not need to mess with Java Script and all the
>> development can be done in Java.
>>
>> With Ext-Js, I need to learn JavaScript and it is not strongly typed
>> language.
>>
>> Any other guidance would be appreciated.
>>
>> Thank you in advance.
>> 
>
>   

--

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




Re: How to handle image/gif response

2009-11-20 Thread zhangj5
Ok, i will give it a go, thanks Martin.

On Nov 20, 2:52 pm, Martin Trummer  wrote:
> Image img = new Image (GWT.getHostPageBaseURL() +"serviceexample/
> ImgRetrieve");
> that's the way to go
>
> ImgRetrieve should be a servlet that sends back the image
> if it receives a get request
>
> that's explained in the link of my last post
>
> On 20 Nov., 12:40, zhangj5  wrote:
>
> > Maybe I did not explain my question correctly.
> > Actually, my application is to create a registered user login
> > interface. Registered user has photo stored in DB (uploaded when
> > registration ), and once user login successfully, his/her photo will
> > be retrieved from DB and displayed, so using the combination of form
> > submit and GWT is the only solution I have found, just wondering if
> > there are any other techniques can be used in this case, as this is my
> > fist GWT application.
> > I had tried to display image by using
> > Image img = new Image( “google.com/intl/en_AL/images/
> > logo.gif” );
> > ,which is working as expected.
> > Since my image is stored in ServletOutputStream,
> > I tried to useImage img = new Image (GWT.getHostPageBaseURL() +
> > "serviceexample/ImgRetrieve"); 
> > But image is not displayed.
>
> > On Nov 19, 7:33 pm, Martin Trummer  wrote:
>
> > > if you only want to display an image there's no need for a form
>
> > > this might be useful:http://bit.ly/2Wgvtm
>
> > > On 19 Nov., 20:22, Martin Trummer  wrote:
>
> > > > what are you trying to do?
>
> > > > what is the form good for?
> > > > does it upload the image and afterwards you want to display this
> > > > uploaded image?
>
> > > > On 19 Nov., 13:01, zhangj5  wrote:
>
> > > > > Hi all,
> > > > > I have a question about how to handle image/gif type response on
> > > > > client side, any suggestion will be great.
> > > > > There is a service which responds for retrieving image (only one each
> > > > > time at the moment) from database. The code is something like,
>
> > > > > JDBC Connection
> > > > > Construct MYSQL query.
> > > > > Execute query
> > > > > If has ResultSet, retrieve first one {
> > > > > image = rs.getBlob("img"); //save image into Blob image, “img” is the
> > > > > only entity in the image table.
>
> > > > > }
>
> > > > > Then,
> > > > > response.setContentType("image/gif"); //set response type
> > > > > InputStream in = image.getBinaryStream();       //output Blob image to
> > > > > InputStream
> > > > > int bufferSize = 1024;  //buffer size
> > > > > byte[] buffer = new byte[bufferSize];           //initial buffer
> > > > > int length =0;
> > > > > while ((length = in.read(buffer)) != -1) {//read length data from
> > > > > inputstream and store into buffer
> > > > >         out.write(buffer, 0, length);           //write into
> > > > > ServletOutputStream}
>
> > > > > in.close();
> > > > > out.flush();            //write out
>
> > > > > The code on client side
> > > > > 
> > > > > imgform.setAction(GWT.getModuleBaseURL() + "serviceexample/
> > > > > ImgRetrieve");
> > > > > 
> > > > > ClickListener {
> > > > > OnClick, then imgform.submit();
>
> > > > > }
>
> > > > > formHandler {
>
> > > > >         onSubmit, form validation
>
> > > > >         onSubmitComplete
> > > > >             ??? //handle response, and display image
> > > > >         Here is my question, i had tried
> > > > >         Image img = new Image(GWT.getHostPageBaseURL()
> > > > > +"serviceexample/ImgRetrieve");
> > > > >         mg.setSize("300", "300");
> > > > >         imgpanel.add(img);
> > > > >         but i only got a non-displayed image with 300X300 size.
>
> > > > > }
>
> > > > > So, how should i handle the responde in this case?
>
> > > > > Thanks,

--

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




GWT Developer Plugin works only sometimes

2009-11-20 Thread cromoteca
Hi,

yesterday I installed GWT 2.0 RC1 and it seems to work randomly.
Before opening an issue, I'd like to know if I'm the only one to
experience it. I was writing an application with 1.7 and I just
replaced the GWT files without any change of code.

When I run the new dev mode, everything starts as normal. I browse to
http://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_manager&dir=meshcms/user_profile&gwt.codesvr=127.0.0.1:9997
(mfm is mapped to FreeMarker, meshcms.dev points to localhost).

In the development mode window, two elements are marked in red:
00:01:48,887 [INFO] Connection received from 127.0.0.1:50316
00:01:48,995 [ERROR] Failed to load module 'meshcms' from user agent
'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/
20091102 Firefox/3.5.5' at 127.0.0.1:50316

In the host_page.mfm tab there is another red line:
00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?

There is no other error, even in the IDE.

My setup is:
Windows 7 64bit
NetBeans 6.7 without GWT plugin (just an Ant task that launches dev
mode)
Firefox 3.5.5
IE8

I just have to restart dev mode until it works. It seems to work
randomly, but when it works the application runs perfectly until I
close dev mode.

My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains:
















So why is dev mode searching for meshcms.gwt.xml?

My Ant task is:

  

  












  

  

--

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




SOP and GWT 1.7

2009-11-20 Thread oleberre
Hi all.

I had a look to
http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#What_is_the_Same_Origin_Policy,_and_how_does_it_affect_GWT?
to try to understand how SOP works. In this article, there is mention
of -xs.nocache.js which is supposed to handle cross site
problem. However, in my project, this file is not generated. I have
only to .nocache.js one. I am using GWT 1.7.1 by the way.
Is this trick still valid ? If yes, how do you generate this -xs
file ?

Thanks in advance.
Regards.
Olivier.

--

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




Re: Bloquear copy - paste

2009-11-20 Thread despineira
¿Por qué no validar todo al final en lugar de validar activamente los
campos durante el input?
De todas maneras tiene que haber un evento onchange en el widget de
input text. Podrías usar ese evento para validar la entrada ahi.

PD: Yo creia que el grupo era en ingles, se puede tambien postear en
castellano?

Saludos


On Nov 19, 7:30 pm, Jochelo 
wrote:
> Ya tengo bloqueado el segundo botón con una función java script, ahora
> quisiera saber cómo bloquear "ctrl + v" de forma genérica con una
> función global o con alguna función para cada campo.
> Lo que quiero llegar a hacer es que no peguen letras con "ctrl + v" en
> un campo numérico.
> Gracias.

--

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




Joseph Favara/HQ/Corp/OAI is out of the office.

2009-11-20 Thread Joseph . Favara

I will be out of the office starting  11/20/2009 and will not return until
11/23/2009.

I will respond to your message when I return. If this is urgnet please
contact Narayanan Pillai at 105986

--

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




Re: How to handle image/gif response

2009-11-20 Thread Martin Trummer
Image img = new Image (GWT.getHostPageBaseURL() +"serviceexample/
ImgRetrieve");
that's the way to go

ImgRetrieve should be a servlet that sends back the image
if it receives a get request

that's explained in the link of my last post

On 20 Nov., 12:40, zhangj5  wrote:
> Maybe I did not explain my question correctly.
> Actually, my application is to create a registered user login
> interface. Registered user has photo stored in DB (uploaded when
> registration ), and once user login successfully, his/her photo will
> be retrieved from DB and displayed, so using the combination of form
> submit and GWT is the only solution I have found, just wondering if
> there are any other techniques can be used in this case, as this is my
> fist GWT application.
> I had tried to display image by using
> Image img = new Image( “google.com/intl/en_AL/images/
> logo.gif” );
> ,which is working as expected.
> Since my image is stored in ServletOutputStream,
> I tried to useImage img = new Image (GWT.getHostPageBaseURL() +
> "serviceexample/ImgRetrieve"); 
> But image is not displayed.
>
> On Nov 19, 7:33 pm, Martin Trummer  wrote:
>
> > if you only want to display an image there's no need for a form
>
> > this might be useful:http://bit.ly/2Wgvtm
>
> > On 19 Nov., 20:22, Martin Trummer  wrote:
>
> > > what are you trying to do?
>
> > > what is the form good for?
> > > does it upload the image and afterwards you want to display this
> > > uploaded image?
>
> > > On 19 Nov., 13:01, zhangj5  wrote:
>
> > > > Hi all,
> > > > I have a question about how to handle image/gif type response on
> > > > client side, any suggestion will be great.
> > > > There is a service which responds for retrieving image (only one each
> > > > time at the moment) from database. The code is something like,
>
> > > > JDBC Connection
> > > > Construct MYSQL query.
> > > > Execute query
> > > > If has ResultSet, retrieve first one {
> > > > image = rs.getBlob("img"); //save image into Blob image, “img” is the
> > > > only entity in the image table.
>
> > > > }
>
> > > > Then,
> > > > response.setContentType("image/gif"); //set response type
> > > > InputStream in = image.getBinaryStream();       //output Blob image to
> > > > InputStream
> > > > int bufferSize = 1024;  //buffer size
> > > > byte[] buffer = new byte[bufferSize];           //initial buffer
> > > > int length =0;
> > > > while ((length = in.read(buffer)) != -1) {//read length data from
> > > > inputstream and store into buffer
> > > >         out.write(buffer, 0, length);           //write into
> > > > ServletOutputStream}
>
> > > > in.close();
> > > > out.flush();            //write out
>
> > > > The code on client side
> > > > 
> > > > imgform.setAction(GWT.getModuleBaseURL() + "serviceexample/
> > > > ImgRetrieve");
> > > > 
> > > > ClickListener {
> > > > OnClick, then imgform.submit();
>
> > > > }
>
> > > > formHandler {
>
> > > >         onSubmit, form validation
>
> > > >         onSubmitComplete
> > > >             ??? //handle response, and display image
> > > >         Here is my question, i had tried
> > > >         Image img = new Image(GWT.getHostPageBaseURL()
> > > > +"serviceexample/ImgRetrieve");
> > > >         mg.setSize("300", "300");
> > > >         imgpanel.add(img);
> > > >         but i only got a non-displayed image with 300X300 size.
>
> > > > }
>
> > > > So, how should i handle the responde in this case?
>
> > > > Thanks,
>
>

--

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




Re: External jars

2009-11-20 Thread Supercobra Thatbytes
Add it to YourProject.gwt.xml





--

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




Re: GWT vs ExtJs

2009-11-20 Thread Дмитрий Николаев
For my personal experience, I would recommend use native GWT library.
More stable, low cost, good documented, strong typing

Most of the UI in Ext-js logically replecable by native GWT

On 19 ноя, 20:11, Palani  wrote:
> We are evaluating GWT and Ext-JS for our application development.
>
> With GWT,  I do not need to mess with Java Script and all the
> development can be done in Java.
>
> With Ext-Js, I need to learn JavaScript and it is not strongly typed
> language.
>
> Any other guidance would be appreciated.
>
> Thank you in advance.

--

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




Re: GWT vs ExtJs

2009-11-20 Thread DaBlick
You should also have a good look at Ext-GWT which is offered by the
same company.   Unlike Ext-JS (which is wrapped JS), Ext-GWT is Java.
It's basically a component library layered on top of GWT, but with a
(IMHO) nicer and larger set of widgets.   To me, the biggest selling
point of Ext-GWT (also commonly referred to as GXT) is that it has a
very nice MVC architecture built into that allows you to decouple at
an even finer granularity than M,V and C.

We switched to it from GWT-Ext (essentially pre-wrapped Ext-JS) and
have been very very happy and successful with it.

--

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




Re: Using same RPC servlet by mutliple modules

2009-11-20 Thread Kamal Chandana Mettananda
Hi,

When you specify the servlet url-pattern; you must specify the path you
expects without wild cards in the middle of the url-pattern. (wild card
character can be a suffix in a url pattern).

Cheers,
Kamal
http://lkamal.blogspot.com



On Fri, Nov 20, 2009 at 6:50 PM, smiletolead wrote:

> Hi all,
>   I have a project with 2 modules. The modules are sharing a RPC
> servlet. The idea is to use single RPC servlet for multiple Service
> interfaces. The interfaces reside in different modules. I am facing
> one problem when use * in the URL pattern. The servlet is not getting
> invoked when I use the URL patter as "/*/moduleA". It is expecting me
> to specify the exact URL.  Can anyone tell me what the problem is?
>
> Regards,
>
> --
>
> 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=.
>
>
>

--

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




Re: GWT 2.0 Javascript IE Crash

2009-11-20 Thread Charlie M
I think the problem might lie with GWT core code. I can't see which
part of my code this relates to.

I have tried it in the the 2.0 RC and it sitll has the same problem.
Below is the Javascript call stack from IE.

>   
> com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
JScript anonymous function
gwtOnLoad
maybeStartModule
JScript anonymous function
JScript global code

Thanks,

Charlie M

On Nov 17, 7:33 pm, Chris Ramsdale  wrote:
> Would you mind entering an issue for this? Also, do you happen to have a the
> snippet of Java code that is resulting in the above JS?
>
>
>
> On Mon, Nov 16, 2009 at 9:51 AM, Charlie M  wrote:
> > Hi All,
>
> > I have been recently testing out GWT 2.0 currently from the 2.0 branch
> > of the SVN although I have also tried Milestone 2. My app works fine
> > in Chrome and Firefox in both development and hosted modes.
>
> > When I try and run it in IE 6, 7 or 8 it complains of Javascript
> > errors. It complains of an "Invalid Argument" on the finally
> > statement.
>
> > The generated code is below:
>
> > function
>
> > com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_ 
> > Object_2Ljava_lang_Object_2Ljava_lang_Object_2
> > (jsFunction, thisObj, arguments){
> >  var initialEntry;
> >  initialEntry = com_google_gwt_core_client_impl_Impl_entryDepth++ ==
> > 0;
> >  try {
> >    return jsFunction.apply(thisObj, arguments);
> >  }
> >   finally {
> >    initialEntry && (com_google_gwt_core_client_impl_SchedulerImpl_
> > $clinit__V() ,
>
> > com_google_gwt_core_client_impl_SchedulerImpl_runScheduledTasks__Lcom_googl 
> > e_gwt_core_client_JsArray_2Lcom_google_gwt_core_client_JsArray_2V
> > (com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS,
> > com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS));
> >    --com_google_gwt_core_client_impl_Impl_entryDepth;
> >  }
> > }
>
> > Does anyone have any ideas.
>
> > Thanks,
>
> > Charlie M
>
> > --
>
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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




Using same RPC servlet by mutliple modules

2009-11-20 Thread smiletolead
Hi all,
   I have a project with 2 modules. The modules are sharing a RPC
servlet. The idea is to use single RPC servlet for multiple Service
interfaces. The interfaces reside in different modules. I am facing
one problem when use * in the URL pattern. The servlet is not getting
invoked when I use the URL patter as "/*/moduleA". It is expecting me
to specify the exact URL.  Can anyone tell me what the problem is?

Regards,

--

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




Re: Internalization in GWT application..

2009-11-20 Thread Dimitrijević Ivan
There is no way to do that. It is a system (browser) issue and it
depends on current system language settings. Instead you should make
your own message dialog component. In that case you will be able to
localize any part of your application. To make your message dialog
box, use DialogBox widget (http://google-web-toolkit.googlecode.com/
svn/javadoc/1.5/com/google/gwt/user/client/ui/DialogBox.html).

Best regards.

On Nov 19, 12:11 pm, Parasuraman 
wrote:
> Hi All,
>
> How we can Localize the "OK" button in the Window.alert("Message"); in
> GWT..?
>
> Can you please tell me how we can localize OK button.. Please help to
> localize Window.alert();
>
> Thanks in Advance...

--

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




Re: How to handle image/gif response

2009-11-20 Thread zhangj5
Maybe I did not explain my question correctly.
Actually, my application is to create a registered user login
interface. Registered user has photo stored in DB (uploaded when
registration ), and once user login successfully, his/her photo will
be retrieved from DB and displayed, so using the combination of form
submit and GWT is the only solution I have found, just wondering if
there are any other techniques can be used in this case, as this is my
fist GWT application.
I had tried to display image by using
Image img = new Image( “google.com/intl/en_AL/images/
logo.gif” );
,which is working as expected.
Since my image is stored in ServletOutputStream,
I tried to useImage img = new Image (GWT.getHostPageBaseURL() +
"serviceexample/ImgRetrieve"); 
But image is not displayed.


On Nov 19, 7:33 pm, Martin Trummer  wrote:
> if you only want to display an image there's no need for a form
>
> this might be useful:http://bit.ly/2Wgvtm
>
> On 19 Nov., 20:22, Martin Trummer  wrote:
>
> > what are you trying to do?
>
> > what is the form good for?
> > does it upload the image and afterwards you want to display this
> > uploaded image?
>
> > On 19 Nov., 13:01, zhangj5  wrote:
>
> > > Hi all,
> > > I have a question about how to handle image/gif type response on
> > > client side, any suggestion will be great.
> > > There is a service which responds for retrieving image (only one each
> > > time at the moment) from database. The code is something like,
>
> > > JDBC Connection
> > > Construct MYSQL query.
> > > Execute query
> > > If has ResultSet, retrieve first one {
> > > image = rs.getBlob("img"); //save image into Blob image, “img” is the
> > > only entity in the image table.
>
> > > }
>
> > > Then,
> > > response.setContentType("image/gif"); //set response type
> > > InputStream in = image.getBinaryStream();       //output Blob image to
> > > InputStream
> > > int bufferSize = 1024;  //buffer size
> > > byte[] buffer = new byte[bufferSize];           //initial buffer
> > > int length =0;
> > > while ((length = in.read(buffer)) != -1) {//read length data from
> > > inputstream and store into buffer
> > >         out.write(buffer, 0, length);           //write into
> > > ServletOutputStream}
>
> > > in.close();
> > > out.flush();            //write out
>
> > > The code on client side
> > > 
> > > imgform.setAction(GWT.getModuleBaseURL() + "serviceexample/
> > > ImgRetrieve");
> > > 
> > > ClickListener {
> > > OnClick, then imgform.submit();
>
> > > }
>
> > > formHandler {
>
> > >         onSubmit, form validation
>
> > >         onSubmitComplete
> > >             ??? //handle response, and display image
> > >         Here is my question, i had tried
> > >         Image img = new Image(GWT.getHostPageBaseURL()
> > > +"serviceexample/ImgRetrieve");
> > >         mg.setSize("300", "300");
> > >         imgpanel.add(img);
> > >         but i only got a non-displayed image with 300X300 size.
>
> > > }
>
> > > So, how should i handle the responde in this case?
>
> > > Thanks,

--

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




Re: JSNI syntax question - calling Java methods from JSNI

2009-11-20 Thread Thomas Broyer


On Nov 20, 1:07 am, Bryan  wrote:
> I'm following the example seen here for 'calling Java methods from
> JSNI' and it works great.
>
> http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-g...
>
> I'm trying to do something slightly different though.  Here's what it
> is.
>
> package com.foo.bar;
>
> public class MyClass {
>
>         private void javaMethod(String s) {
>                 Window.alert("called the java method with String " + s);
>         }
>
>         private native String nativeMethod() /*-{
>
>                 var myFunc = function() {
>                         // trying to call the 'javaMethod' method from here 
> and the
> notation
>                         // at the link above does not work
>                         //
>                         // notation that is not working for me
>                         // 
> th...@com.foo.bar.myclass::javaMethod(Ljava/lang/String;)
> ('coming from nativeMethod.myFunc');
>                 }
>
>     }-*/;
>
> }
>
> It doesn't surprise me that what I'm trying doesn't work, I'm assuming
> the 'this' I'm trying to use is in the wrong scope.  Anyone have any
> suggestions for how I can get to that java method from within a native
> method that defines a function?

It's as easy as the following ;-)

var self = this;
var myFunc = function() {
   s...@com.foo.bar.myclass::javaMethod(Ljava/lang/String;)('coming
from nativeMethod.myFunc');
};

--

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




Re: MouseOverHandler not called for text of Checkbox

2009-11-20 Thread Thomas Broyer


On Nov 20, 2:01 am, dave  wrote:
> First and only time I'll bump this, but I've yet to find a solution.
>
> Adding a MouseOverHandler to the GWT CheckBox widget only fires when
> mousing over the checkbox itself from the top, left, or bottom.  It
> does not fire when mousing over the text label or  when moving from
> the text over the actual checkbox.
>
> How can I add a MouseOverHandler that will fire when over the label of
> a CheckBox?

If you ask me, this is a bug in CheckBox (it uses many "hacks" to get
events sunk on the checkbox rather than  that encloses both the
checkbox and label, which leads to this behavior and which I'm really
not sure is needed –cannot it take advantage of events bubbling to the
span?–)

In the mean time, you'd have to copy/fix CheckBox (or in other words
create your own).

--

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




Brainstorm: UIBinder + model binding + validation

2009-11-20 Thread Maarten Volders
Hi boys and girls,

I really like the new UIBinder, but perhaps we can take it one step
further? Why not try to bind the model directly to the ui fields and
visa versa? That way we would eliminate a bunch of boilerplate code.
There have been several attempts binding models to ui elements (before
uibinder) but it seems extending uibinder seems to make sense. Some
quick thoughts:

- bind model to UIBinder
- get / set data solved by generators
- add validation annotations to the model which are triggered by the
framework

Some questions about UIBinder:

- do we always need to declare the @UiField? Let's say we have a
typical crud app, we could also just annotate the model.Having the
uifield declared and also the model fields seems often code
duplication, I like the DDD approach a bit more.
- really like the layout part of uibinder, have been on too many
projects where we really need ui designers, but I would still prefer
to talk the same language (DDD) otherwise ui designers talk about
field names they know on the screen and devs talk about the model
field names. Have this seen happening way too often :-)

What you guys think?

Maarten

--

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




Domain Driven Design

2009-11-20 Thread Maarten Volders
Just checking in after a period of non-gwt based web applications :(

I really like the new GWT 2.0 stuff. Does someone know if we are
making progress with DDD?
If not share your thoughts, possible scenarios and let's see if we can
come up with something, feel like coding :-)

Maarten

--

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




Re: Design Patterns

2009-11-20 Thread Martin Trummer
yes

On 19 Nov., 21:08, Lúcio Camilo  wrote:
> The component Composite and the object Command have something in common with
> the design patterns with same name?

--

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




How to use Selenium to simulate the action of picking an item of SuggestionBox?

2009-11-20 Thread zoe.Liao
Hello,Selenium IDE can not capture the action of picking an item of
SuggestionBox.Is there any way to simulate this action (selecting an
item) ?Or any aternative way to test SuggestionBox with selenium?

Thanks in advance.

--

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