How to Scolling pagination

2009-04-30 Thread Tail

Hi all,

I used Grid inside a ScrollPanel loading 10 rows at a time,
I want request more using RPC when ScrollPanel  approaching the
bottom,I don't konw how to decide ScrollPanel  approaching the bottom.

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



Re: GregorianCalendar in GWT 1.6

2009-04-30 Thread Gilles B

GWT Doesnt support this java APi. It's explicit in documentation pages

http://code.google.com/intl/fr/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideDateAndNumberFormat

GWT does not provide full emulation for the date and number formatting
classes (java.text.DateFormat, java.text.DecimalFormat,
java.text.NumberFormat, java.TimeFormat, et cetera). Instead, a subset
of the functionality of the JRE classes is provided by
com.google.gwt.i18n.client.NumberFormat and
com.google.gwt.i18n.client.DateTimeFormat

GWT provides the DateTimeFormat class to replace the functionality of
the DateFormat and TimeFormat classes from the JRE.

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



Re: GWT RPC Bus? (How might one call multiple service methods in one RPC)

2009-04-30 Thread Richard Rowell

Yeah I could to that but it has a couple of significant downsides.  We
already have a little JSON frontend to the services for the PHP crowd
so I'm guessing we will just polish it a bit and use that.  I hate to
mix two different RPC mechanisms in one app but I just can't see how
else to do this without hacking GWT which I really don't have time for
just at this moment ;-)


On Apr 28, 11:45 am, Paul Robinson  wrote:
> You can define all your RPC methods to return a wrapper object that can
> carry the RPC payload as well as any other data you want the server to
> slip in to the client at the same time.
>
> Using this technique, you need an extra async rpc class that most of
> your code can call, and it handles the unwrapping behind the scenes as
> well as providing a place for retry logic if you want it. (I use this to
> force a login whenever a session times out, but the original rpc query
> code never notices that between the original call and the response,
> there's been a login screen displayed etc)
>
> Something like this:
>
> public interface ServiceAsync {
>     public Wrapper getFoo(args, AsyncCallback>callback);
>
> }
>
> public class MainService {
>     public void getFoo(args, AsyncCallback callback) {
>        // do rpc
>        // unwrap result
>        // handle the data the server slipped in
>        // send Foo back to caller.
>     }
>
> }
>
> public class Wrapper implements Serializable {
>     private T t;
>     private SomethingElseToSlipInToClient somethingElse;
>     public Wrapper(T t) { this.t = t; }
>     public T getValue() { return t; }
>     public void setValue(T t) { this.t = t; }
>
> }
>
> The negative side of this is that there's another place you need to add
> boiler plate code every time you add an rpc method.
>
> HTH,
> Paul
>
> richard.row...@gmail.com wrote:
> > Using GWT as a CRUD front end for a database.  We have found that most
> > pages end up firing off multiple RPCs.  At first each picklist needed
> > it's own RPC so I wrote a client side "picklist" cache.  This helped
> > for picklists, but even so the picklist cache often it will often need
> > to grab a missing picklist when an object is loaded (resulting in an
> > extra RPC on a page/view load).
>
> > Now there are a number of other things we have cached of client side
> > that I would like for the server to be able to "push" to the client on
> > the next RPC.  Some of this is for security purposes ( a list of
> > "actions" the user has, etc).  If one of these lists changes the
> > client should really be updated ASAP to reflect it.
>
> > I'd thought throwing an exception that would cause the client to retry
> > AFTER firing of a request to reload some of the security info but this
> > has several downsides:
>
> > 1.  I would have to go through and trap the error at every RPC attempt
> > and implement retry logic at every RPC also.
> > 2.  The first RPC that throws is a bit of a dead-end, it won't convey
> > any data (although it could convey the original data requested I guess
> > in an "Object data" field but that seems very hacky.
> > 3.  I was really hoping for something a bit cleaner.
>
> > I'm guessing I could pull this off pretty easy if I switched to JSON
> > for my RPC mechanism, but I'd really like it to stick with GWT-RPC.
> > It would be nice if I could just do something like this:
>
> > RpcBus mbus = new RpcBus( someRpcBusAsyncHandle );
> > fooservice.app.bar( 1, mbus );
> > fooservice.app.bar( 2, mbus );
> > ...
>
> > Which might produce XML that looked like this:
>
> > 
> >   
> >     1
> >   
> >  
> >     2
> >   
> >   ...
> > 
>
> > The result would be segmented also:
> > 
> >   11 > rpc_result>
> >   22 > rpc_result>
> >   ...
> > 
>
> > Then i could bundle up multiple requests into one RPC and hopefully
> > both aid responsiveness and simplify my client.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GregorianCalendar in GWT 1.6

2009-04-30 Thread Alex Rudnick

Hey Joseph,

It looks like GWT doesn't come with an implementation of
GregorianCalendar, which would explain the error.

Here's the doc for which JRE classes that GWT emulates.
http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html

Hope this helps!

On Fri, May 1, 2009 at 12:05 AM, Joseph M  wrote:
>
> I got an error in the shell:
>
> [ERROR] Line 8: No source code is available for type
> java.util.GregorianCalendar; did you forget to inherit a required
> module?
>
> What is the deal? Does GregorianCalendar now not work in 1.6???

-- 
Alex Rudnick
swe, gwt, atl

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



GregorianCalendar in GWT 1.6

2009-04-30 Thread Joseph M

I got an error in the shell:

[ERROR] Line 8: No source code is available for type
java.util.GregorianCalendar; did you forget to inherit a required
module?

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



Re: GWT with eclipse and java1.6 very slow for hosted browser to open up

2009-04-30 Thread phanidee

 Installed sun-java5. but no change in the situation.
 It is taking 3-4 minutes for the hosted browser to open up.

 Please help.
-
Phani.


On Apr 30, 10:59 pm, Ben  wrote:
> I think GWT plugin maybe work better with Java 5, because on Mac OX,
> GWT plugin cannot work with Java 6.
>
> -Ben
>
> On Apr 30, 1:12 pm, phanidee  wrote:
>
> > hi,
> >      sorry for my misperception. Its not actually crashing, somehow i
> > left it out for a few
> > minutes, and after around 3-4 minutes gwt hosted browser did open
> > up !
> > But i wonder why its taking so much time?
>
> > Please help in speeding it up.
>
> > Using sun-java6 with eclipse.
> > -
> >Phani.
>
> > On Apr 30, 8:19 pm, phanidee  wrote:
>
> > > yeah the window that opens up is gwt browser with google webtool kit
> > > logo at top right corner.
> > > it has all these buttons Hosted Browser, Restart Server Collapse,
> > > expand etc.,
> > > Its the same window that blacks out.
>
> > > Blacks out in the sense i mean whenever some application does not
> > > respond in ubuntu
> > > it blacks out. no output in that window. Not even a server started
> > > message.
>
> > > OS: Ubuntu Jaunty 9.04
> > > Eclipse ganymede 3.4.2
> > > GWT 1.6.4
>
> > > -Phani.
>
> > > On Apr 30, 7:00 pm, Alex Rudnick  wrote:
>
> > > > HeyPhani,
>
> > > > Just a few clarifying questions -- is the window that pops up a web
> > > > browser? And it's that window that popped up that blacks out? Does it
> > > > actually turn black? (Also, which OS are you running?)
>
> > > > As far as we know, there's nothing catastrophically wrong with the
> > > > built-in server :)
>
> > > > Thanks! We want to help figure this out!
>
> > > > On Thu, Apr 30, 2009 at 12:05 AM, phanidee  wrote:
>
> > > > > hi,
> > > > >   i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse
> > > > > plugin and eclipse uses
> > > > > java-6-sun. I dont know why but when i hit green button to run a
> > > > > window opens up and after
> > > > > some time, it blacks out and nothing happens. I tried removing the
> > > > > Built-in server check mark
> > > > > in run configuration then the gwt browser comes up error message that
> > > > > "cannot connect to
> > > > > localhost:8080". is it any problem with built-in server or should i
> > > > > revert back to java 1.5 for
> > > > > the gwt to run?
>
> > > > > Please help.
>
> > > > > -
> > > > >Phani.
>
> > > > --
> > > > Alex Rudnick
> > > > swe, gwt, atl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re-linking GWT Back to Apache from Jetty

2009-04-30 Thread Jonathan Kushner
Is it possible to remove this binding between Google AppEngine, Jetty, and
GWT and re-link the project back to tomcat ( such as the older method
before the eclipse plugin ) ? Besides having major memory issues within
hosted mode, the application is no longer functional due to a java socket
policy issue which occurs somewhere between the AppEngine loading the jdbc
class, Jetty handling the remote request, and GWT. I've tried just about
everything to fix this problem, and have pin-pointed the solution down to
either adding the security policy to the runtime securitymanager for
jetty/appengine, or having the jar resource available during hosted mode
runtime for either AppEngine or Jetty ( which seems to be a setting within
the jdoconfig, or some other area for the appengine ).  Google's jdoconfig
docs is limited for what I am searching for. I'm just... lost.

Any assistance is greatly appreciated.

Regards,

Jonathan

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



Gwt 1.6 host mode jar loading

2009-04-30 Thread H Hale

I just switched to 1.6 from 1.5.

Now when using com.google.gwt.dev.HostedMode to launch my app, I am
getting java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory. This
occurs initializing hibernate.

All the jars used when using com.google.gwt.dev.GWTShell are in the
classpath.

I have tried changing the order of jars in the classpath with no luck.

I now see messages like the following in the console when using
com.google.gwt.dev.HostedMode.

Server class 'org.hibernate.HibernateException' could not be found in
the web app, but was found on the system classpath
   Adding classpath entry 'file:/C:/xx/dist/lib/hibernate3.jar' to the
web app classpath for this session
Adding classpath entry 'file:/C:/xx/dist/lib/hibernate3.jar' to the
web app classpath for this session


Is this normal?
Looking for clues on what is different between 1.5 and 1.6 host mode
that may cause this problem.

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



GWT not working with IE7 with tomcat authentication and SSL

2009-04-30 Thread Iluna

Hi,

I have a GWT application that works fine over http and https.
Then I added Tomcat's basic authentication for testing purposes, and
it works.
The app still works fine with authentication over http, but not over
https. (the auth. works over https, but appearently it must change
something ?)

It seems like a lot of javascript is not executed, but my RPC request
to the server on the main page still work fine.
Also no images are displayed.

This is only in Internet Explorer (tested with IE7) Firefox and Safari
works fine with https and tomcat athentication.

Tomcat version: 5.5

Could anyone have an idea what the problem could be?

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



hashCode() in excess of java int MAX/MIN when in js

2009-04-30 Thread jopaki

I discovered it is intrinsically possible for hashCode values to
exceed the java in MAX/MIN values when in a js context.  This is a
problem for me as I need to convert these hash code values to a String
and vice-versa.  Any suggestions on how to tackle this problem?

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



Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-30 Thread davidroe

if you wanted to add the image to the DOM and make it visible (so that
IE will report the correct image size), you could probably "hide" it
by changing the opacity to 0. I use the following class which works
(at least) across IE/Moz/Safari.

.op0 { filter:alpha(opacity=0); -moz-opacity:0; opacity:0; }

IE will probably think the image is "visible" and should give you an
image size.

alternative, load the image into a 
and place it off-screen.

.hiddenImages {
position:absolute;
top:-1000px;
left:-1000px;
}

HTH,
/dave

On Apr 30, 6:19 am, dduck  wrote:
> On Apr 29, 7:01 pm, davidroe  wrote:
>
> > have you tried zero opacity? this usually does the trick for me as it
> > is interpreted as in the DOM and visible.
>
> I'm not quite sure what you mean. Could you elaborate?
>
> Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting ClassFormatError

2009-04-30 Thread Subbu


GWT eclipse plugin got corrupted, not sure how it happened.
i reinstalled it and issue got fixed

Cheers
Subbu

On Apr 29, 10:09 am, Subbu  wrote:
> GWT team
>
> Any pointers on this issue, not able to compile GWT project.
> Getting below exception during compilation.
> Not able to figure out from the trace how to fix this issue.
>
> Cheers
> Subbu
>
> On Apr 28, 10:51 pm, Subbu  wrote:
>
>
>
> > Hi All
>
> > I am getting the following error in hosted mode GWT 1.6.4
>
> > [ERROR] Failure to load module 'searchui'
> > java.lang.ClassFormatError: Name index 18176 in LocalVariableTable has
> > bad constant type in class file org/eclipse/jdt/internal/compiler/
> > codegen/CodeStream
> >         at java.lang.ClassLoader.defineClass1(Native Method)
> >         at java.lang.ClassLoader.defineClass(Unknown Source)
> >         at java.security.SecureClassLoader.defineClass(Unknown Source)
> >         at java.net.URLClassLoader.defineClass(Unknown Source)
> >         at java.net.URLClassLoader.access$000(Unknown Source)
> >         at java.net.URLClassLoader$1.run(Unknown Source)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(Unknown Source)
> >         at java.lang.ClassLoader.loadClass(Unknown Source)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >         at java.lang.ClassLoader.loadClass(Unknown Source)
> >         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >         at 
> > org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode
> > (TypeDeclaration.java:507)
> >         at 
> > org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode
> > (TypeDeclaration.java:581)
> >         at
> > org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCo 
> > de
> > (CompilationUnitDeclaration.java:356)
> >         at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:
> > 755)
> >         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
> > (JdtCompiler.java:101)
> >         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> > 444)
> >         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> > 266)
> >         at com.google.gwt.dev.javac.CompilationState.compile
> > (CompilationState.java:189)
> >         at com.google.gwt.dev.javac.CompilationState.refresh
> > (CompilationState.java:178)
> >         at com.google.gwt.dev.javac.CompilationState.
> > (CompilationState.java:93)
> >         at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
> > (ModuleDef.java:264)
> >         at 
> > com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325)
> >         at com.google.gwt.dev.SwtHostedModeBase
> > $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java:
> > 66)
> >         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
> > (BrowserWidgetIE6.java:73)
> >         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
> > (BrowserWidgetIE6.java:161)
> >         at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> > (IDispatchImpl.java:294)
> >         at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> > (IDispatchImpl.java:194)
> >         at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> > (COMObject.java:117)
> >         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> >         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> >         at 
> > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> >         at com.google.gwt.dev.SwtHostedModeBase.processEvents
> > (SwtHostedModeBase.java:235)
> >         at com.google.gwt.dev.HostedModeBase.pumpEventLoop
> > (HostedModeBase.java:558)
> >         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
> >         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with eclipse and java1.6 very slow for hosted browser to open up

2009-04-30 Thread Ben

I think GWT plugin maybe work better with Java 5, because on Mac OX,
GWT plugin cannot work with Java 6.

-Ben

On Apr 30, 1:12 pm, phanidee  wrote:
> hi,
>      sorry for my misperception. Its not actually crashing, somehow i
> left it out for a few
> minutes, and after around 3-4 minutes gwt hosted browser did open
> up !
> But i wonder why its taking so much time?
>
> Please help in speeding it up.
>
> Using sun-java6 with eclipse.
> -
> Phani.
>
> On Apr 30, 8:19 pm, phanidee  wrote:
>
> > yeah the window that opens up is gwt browser with google webtool kit
> > logo at top right corner.
> > it has all these buttons Hosted Browser, Restart Server Collapse,
> > expand etc.,
> > Its the same window that blacks out.
>
> > Blacks out in the sense i mean whenever some application does not
> > respond in ubuntu
> > it blacks out. no output in that window. Not even a server started
> > message.
>
> > OS: Ubuntu Jaunty 9.04
> > Eclipse ganymede 3.4.2
> > GWT 1.6.4
>
> > -Phani.
>
> > On Apr 30, 7:00 pm, Alex Rudnick  wrote:
>
> > > HeyPhani,
>
> > > Just a few clarifying questions -- is the window that pops up a web
> > > browser? And it's that window that popped up that blacks out? Does it
> > > actually turn black? (Also, which OS are you running?)
>
> > > As far as we know, there's nothing catastrophically wrong with the
> > > built-in server :)
>
> > > Thanks! We want to help figure this out!
>
> > > On Thu, Apr 30, 2009 at 12:05 AM, phanidee  wrote:
>
> > > > hi,
> > > >   i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse
> > > > plugin and eclipse uses
> > > > java-6-sun. I dont know why but when i hit green button to run a
> > > > window opens up and after
> > > > some time, it blacks out and nothing happens. I tried removing the
> > > > Built-in server check mark
> > > > in run configuration then the gwt browser comes up error message that
> > > > "cannot connect to
> > > > localhost:8080". is it any problem with built-in server or should i
> > > > revert back to java 1.5 for
> > > > the gwt to run?
>
> > > > Please help.
>
> > > > -
> > > >Phani.
>
> > > --
> > > Alex Rudnick
> > > swe, gwt, atl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Image Bundle fails in GWT 1.6 hosted mode and IE

2009-04-30 Thread Gilles B

I experiment 'strange' errors with a core dump with my image bundle
using the same image in a grid with enable or disabled status. I don't
know where the error was located but I split the bundle with less
images and all work fine now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6.4 compatibility with IE 6, 7 and 8

2009-04-30 Thread Ben

Thanks for advice from everyone. After I change the compile options to
detailed, I am able to find out that I made a small typo in the code
when I am setting a panel size.

panel.setSize("100%","100%")

instead I made a typo

panel.setSize("100%0","100%")

It seems that Safari and Firefox can handle this, but IE cannot.
Apparently I did not expect this typo can cause IE crash on my
application.

Thanks a lot,
Ben

On Apr 29, 6:10 am, Thomas Broyer  wrote:
> On 27 avr, 18:15, Ben  wrote:
>
>
>
> > I am building an application with newest release of GWT on Mac OS. The
> > whole app is in GWT, no JSNI and the structure of the application is
> > sorta complicated. I have couple Composite widgets and some Composite
> > widgets have references of other Composite Widgets. For example:
>
> > A extends Composite {
>
> > }
>
> > B extends Composite {
> >     A a = new A();
>
> >     public B (A instance_a) {
> >         this.a = instance_a
> >     }
>
> > }
>
> > And after compile and deployment, my application works fine in Firefox
> > and Safari, but it has JS error on all IE 6, 7 and 8. And I did some
> > debug by putting Window.alert(msg) in the end of Entry Point and I
> > found out one of my composite widget causes the problem.
>
> Have you been able to narrow down the error to some snippet code?
>
> How about trying to catch exceptions and Window.alert() them?
> (eventually, use an GWT.UncaughtExceptionHandler at the beginning of
> your entry point's onModuleLoad)
>
> > Once I
> > exclude it from Entry Point. The Window.alert is able to execute in IE
> > 6,7 and 8. According to the documentation, GWT should have pretty good
> > support for both IE 6 and 7. Does anyone have any idea what could be
> > the possible reason for this kind of incompatibility?
>
> Without any information on the kind of error? (isn't IE giving you
> some info at the JS level? how about turning on the debugger? e.g. in
> IE8, in the appropriate IE=5 or IE=7 mode so you don't have the IE8-
> specific incompatibilities)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use PRETTY from Hosted Mode?

2009-04-30 Thread Gilles B

I only use this way to compile my code from local browser console
inside Eclipse (I don't use command line in this project) and I have a
'readable' js generated in my war directory using Pretty option when I
launch the local browser. The DETAILLED option works fine too in my
configuration.  (Using GWT 1.6.4, I have currently defined 2 run
commands in my Eclipse with ou without this option (duplicate the
command and add the option) and I use the pretty mode if I need some
Ajax debug)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT (Multiple Pages Implementation)

2009-04-30 Thread Vince

Jamie and X...

Thank you for the feedback!

Based on your suggestions, the best approach is to improvise on the
current technology.

1) Jamie, The "lazy-load" approach looks promising and it solidified
our earlier researches. One question lingers however : Is it necessary
to structure the entire app into several GWT projects or is it
possible to setup multiple entry points... e.g.

HTML-Entry Point class associations --
Module1.html - Module1:EntryPoint.class,
Module2.html - Module2:EntryPoint.class

and envoke these from the host HTML's lazy loading? Does this sound
off on a GWT technical point-of-view?

2) X, that JAXB support component sounds interesting... I've used
JaxMe before and it's a fantastic mechanism for mapping markups to
objects straight-away. Your input is treasured!

This is Great Stuff! Appreciate it much...

- Vince

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



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Alex Rudnick

We've got a feature request for the plugin for adding support for
exporting to a .war file and handling .ears.

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

So if this would be a helpful feature for you, you might like to make
comments on that feature request or star the issue.

Thanks!

On Thu, Apr 30, 2009 at 12:57 PM, Danny  wrote:
>
> Thanks everyone.  I now see that this is a web feature.  When I saw
> the new GWT 1.6 war file construction and eclipse plugin, I thought my
> deployment life was getting rosier.  Maybe later.
>
> When I have gotten my project deployment where I want it, I will post
> my resultd.
>
> Regards,
>
> Danny

-- 
Alex Rudnick
swe, gwt, atl

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



Re: GWT with eclipse and java1.6 very slow for hosted browser to open up

2009-04-30 Thread phanidee

hi,
 sorry for my misperception. Its not actually crashing, somehow i
left it out for a few
minutes, and after around 3-4 minutes gwt hosted browser did open
up !
But i wonder why its taking so much time?

Please help in speeding it up.

Using sun-java6 with eclipse.
-
Phani.

On Apr 30, 8:19 pm, phanidee  wrote:
> yeah the window that opens up is gwt browser with google webtool kit
> logo at top right corner.
> it has all these buttons Hosted Browser, Restart Server Collapse,
> expand etc.,
> Its the same window that blacks out.
>
> Blacks out in the sense i mean whenever some application does not
> respond in ubuntu
> it blacks out. no output in that window. Not even a server started
> message.
>
> OS: Ubuntu Jaunty 9.04
> Eclipse ganymede 3.4.2
> GWT 1.6.4
>
> -Phani.
>
> On Apr 30, 7:00 pm, Alex Rudnick  wrote:
>
>
>
>
>
> > HeyPhani,
>
> > Just a few clarifying questions -- is the window that pops up a web
> > browser? And it's that window that popped up that blacks out? Does it
> > actually turn black? (Also, which OS are you running?)
>
> > As far as we know, there's nothing catastrophically wrong with the
> > built-in server :)
>
> > Thanks! We want to help figure this out!
>
> > On Thu, Apr 30, 2009 at 12:05 AM, phanidee  wrote:
>
> > > hi,
> > >   i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse
> > > plugin and eclipse uses
> > > java-6-sun. I dont know why but when i hit green button to run a
> > > window opens up and after
> > > some time, it blacks out and nothing happens. I tried removing the
> > > Built-in server check mark
> > > in run configuration then the gwt browser comes up error message that
> > > "cannot connect to
> > > localhost:8080". is it any problem with built-in server or should i
> > > revert back to java 1.5 for
> > > the gwt to run?
>
> > > Please help.
>
> > > -
> > >Phani.
>
> > --
> > Alex Rudnick
> > swe, gwt, atl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Danny

Thanks everyone.  I now see that this is a web feature.  When I saw
the new GWT 1.6 war file construction and eclipse plugin, I thought my
deployment life was getting rosier.  Maybe later.

When I have gotten my project deployment where I want it, I will post
my resultd.

Regards,

Danny

On Apr 30, 11:01 am, Jamie  wrote:
> Currently I have my GWT-1.6 project additionally configured as a
> Dynamic Web Project in Eclipse EE.
> (to find out how, see 
> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...)
>
> When you have your project configured this way, you can select the
> project, and then select File/Export/Web/War file.
>
> Save it to {path}/ROOT.war
>
> and that's about it.
>
> Saving it or renaming it to 'ROOT.war' should do what you want; your
> project will deploy athttp://server/
> instead ofhttp://server/project
>
> (BTW, this is a web container feature, not a GWT specific feature.)
>
> Jamie.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Image Bundle fails in GWT 1.6 hosted mode and IE

2009-04-30 Thread Vitali Lovich
HostedMode is IE (on Windows), so that wouldn't be surprising.

On Thu, Apr 30, 2009 at 2:27 AM, Rafiq  wrote:

>
> But first even in GWT 1.6 hosted mode itself, it blows up. These are
> normal size images done for a slide show.
>
> On Apr 29, 7:02 pm, Thomas Broyer  wrote:
> > On 29 avr, 13:59, Rafiq  wrote:
> >
> > > While I expected Image bundle to improve my home page loading
> > > experience, it blows up both in GWT 1.6 hosted mode and IE. When i
> > > Googled it, It seems, this is an age old problem with GWT and it is
> > > recurring again.
> >
> > AFAICT, this won't be the case anymore in the next 1.6.x release in
> > IE7 and IE8 (will still be an issue in IE6).
> >
> > ...though it depends which problem you're facing (there's also the IE
> > limitation about the width of the image bundle, I don't know if it'll
> > go away with the removal of AlphaImageLoader for IE7+)
> >
>

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



Re: How to use PRETTY from Hosted Mode?

2009-04-30 Thread Vitali Lovich
Are you sure HostedMode actually passes on those options to the compiler?
It might just ignore them.

On Thu, Apr 30, 2009 at 12:35 PM, Gilles B wrote:

>
> Inside Eclipse I run the hosted mode with the
> "com.google.gwt.dev.HostedMode" main class. (Run Configurations..)
> in your program argument you can specify this option:
>
> -startupUrl myproject.html com.gbr.Activity -style DETAILED
> or
> -startupUrl myproject.html com.gbr.Activity -style PRETTY
>
> it it used with your compile/browse button from local console and
> generate the good java script style in your war directories.
>
> Gilles.
> >
>

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



jetty resource mapping?

2009-04-30 Thread todd.sei...@gmail.com

I have used AICC compliant Adobe Presenter content in hosted mode
under GWT 1.5 with no troubles. Now I have tested with GWT 1.6 and it
appears that jetty is not handling mapping correctly. What the code is
doing is trying to load a SWF file with parameters (ex: viewer.swf?
AICC_URL=xyz&AICC_SID=123). This fails but if you call just viewer.swf
without the parameters it works. Is there a workaround for this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use PRETTY from Hosted Mode?

2009-04-30 Thread Gilles B

Inside Eclipse I run the hosted mode with the
"com.google.gwt.dev.HostedMode" main class. (Run Configurations..)
in your program argument you can specify this option:

-startupUrl myproject.html com.gbr.Activity -style DETAILED
or
-startupUrl myproject.html com.gbr.Activity -style PRETTY

it it used with your compile/browse button from local console and
generate the good java script style in your war directories.

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



Re: with gwt-maps , How to manually set Marker draging state

2009-04-30 Thread Jamie

Do you really need to set the marker into floating mode?

You could just set the marker's *image* to one that looks like it is
floating, with a crosshair on it...
and then change the image back to normal when you are ready.



On Apr 29, 10:04 pm, Tail  wrote:
> Thanks Eric,
>
> that can be let marker drag on the map.
> mybe I did not clearly describes the point,my mean is marke the Marker
> float and show DragCrossImage manually (like use mouse dragging it )
> when I create the marker ,
>
> On Apr 29, 6:52 pm, Eric Ayers  wrote:
>
> > Hi,
> > When you create the marker, you can set the dragging  behavior by passing a
> > MarkerOptions object in the constructor.  Then, if you want to turn dragging
> > on/off use marker.setDraggingEnabled();
>
> > See the javadoc 
> > athttp://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
>
> > As an aside, there are a few changes in the next release that add support
> > for GDraggableObject, which allows you to create custom objects (not just
> > Markers) and make them draggable on the map.
>
> > Hope that helps,
> > -Eric.
>
> > On Wed, Apr 29, 2009 at 6:26 AM, Tail  wrote:
>
> > > In my project, A Custom control button on the map canvas, it named
> > > "Add New Position".
> > > When I click the "Add New Position" button, I add a Marker  on the
> > > map, Marker's LatLng onchaned by mousemove on map. How to make Marker
> > > draging state,let it float and show DragCrossImage.
>
> > --
> > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to use google feeder api in hosted mode

2009-04-30 Thread Gilles B

I try using google script jsapi following Ryan Dewsbury examples in
it's good GWT application books and google help page to call various
url using feeder API insinde jsapi google script. It doesnt seam to
work running in local host, I don't know if I need to provide a key in
the script loading line when I run the hosted mode from Eclipse :

Re: How to use PRETTY from Hosted Mode?

2009-04-30 Thread Vitali Lovich
No - the hosted mode compilation is just a shortcut (I don't even understand
the reason for it being there).  For complete control over the compiler, you
have to invoke it from the cmd line.

On Thu, Apr 30, 2009 at 4:56 AM, olel  wrote:

>
> Hi,
>
> is there a way to tell the Hosted Mode that it should generate the
> javascript in the PRETTY mode? I know that I can change it in the
> compile.cmd, but the will not effect the hosted mode compiler, will
> it?
>
> Thanks in advance,
> Ole
> >
>

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



Re: Asynchronous communication from server to client

2009-04-30 Thread Vitali Lovich
*Coding style*:
Several things.  Why aren't your state variables part of an enum?  Why
aren't you using a switch statement instead of 10 if/else ifs.

*Architecture*:
Why are you using a timer that will do nothing most of the time?  You're
just putting load on the client unnecessarily.  Why are you even using an
explicit state machine?  With the example below you can easily chain RPC
calls together by putting the appropriate function call in the onSuccess.
This way, you're not needlessly executing code that does nothing every
100milliseconds.  You are also getting 0 latency between states (thus better
performance).  Stay away from timers unless you are doing animation or
actually need a periodic task.  DO NOT USE IT TO SIMULATE AN EVENT LOOP (not
yelling - just an important point to keep in mind).

package com.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;

public class GWTProcess implements EntryPoint
{
   String result1 = "";
   String result2 = "";

   private static final class LazyWebService {
  public static final WebServiceOneAsync webservice = GWT.create
(WebServiceOne.class);
   }

   public void onModuleLoad()
   {
   initialize();
   buildGui();
   }

   private void initialize()
   {
   // nothing to do
   }

   private void buildGui()
   {
   Button b = new Button("Click me", new ClickListener()
   {
   public void onClick(Widget sender)
   {
   Window.alert("start data load");
   fireWebServiceOne();
   }
   });

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

   private void displayData() {
   Window.alert(result1+":"+result2);
   }

   private void fireWebServiceOne()
   {
   AsyncCallback callback = new AsyncCallback()
   {
   public void onFailure(Throwable caught)
   {
   Window.alert("ERROR READING WEBSERVICE");
   }

   public void onSuccess(String results)
   {
   results1 = results;
   fireWebServiceTwo();
   }
   };
   LazyWebService.webservice.getData(callback);
   }
   private void fireWebServiceTwo()
   {
   AsyncCallback callback = new AsyncCallback()
   {
   public void onFailure(Throwable caught)
   {
   Window.alert("ERROR READING WEBSERVICE");
   }

   public void onSuccess(String results)
   {
   results2 = results;
   displayData();
   }
   };
   LazyWebService.webservice.getData(callback);
   }
}

On Thu, Apr 30, 2009 at 9:22 AM, devcybiko  wrote:

>
> I've started using timers combined with a state/transition matrix.
> I've offered a simple example below.  The basic idea is to keep a
> 'state' variable with the current state in the program logic.  When
> you initiate a asynchronous call, you move the state to "LOADING".
> When the call is complete, you move the state to "RUNNING".  You can
> easily chain requests (as in the example) by pushing the state from
> "LOADING_WS1_DATA" to "DONE_LOADING_WS1_DATA" to "LOADING_WS2_DATA" to
> "DONE_LOADING_WS2_DATA" finally back to "RUNNING".  Example follows:
>
> package com.test.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.client.Timer;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.rpc.AsyncCallback;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.ClickListener;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.Widget;
>
> public class GWTProcess implements EntryPoint
> {
>private static final int ERROR = -2;
>private static final int INIT = -1;
>private static final int RUNNING = 0;
>private static final int BUILD_GUI = 100;
>private static final int START_LOADING_DATA = 200;
>private static final int LOADING_WS1_DATA = 300;
>private static final int DONE_LOADING_WS1_DATA = 301;
>private static final int LOADING_WS2_DATA = 400;
>private static final int DONE_LOADING_WS2_DATA = 401;
>private static final int DISPLAY_DATA = 500;
>
>int state = INIT;
>String result1 = "";
>String result2 = "";
>
>
>public void onModuleLoad()
>{
>Timer t = new Timer()
>{
>public void run()
>{
>if (state == INIT)
>{
>initialize();
>state = BUILD_GUI;
>}
>else if (state == BUILD_GUI)
>{
>bui

Problem with VisualizationAPI

2009-04-30 Thread Rafael Barrera Oro
I am trying to display a simple PieChart and i get the following error:

[ERROR] Unable to load module entry point class
ar.com.akyasociados.dietaclubweb.client.DietaClubWeb (see associated
exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.google has
no properties
 fileName:
jar:file:/shared/downloads/Ajax/GWT/gwt-visualization-1.0.1/gwt-visualization.jar!/com/google/gwt/visualization/client/DataTable.java
 lineNumber: 32
 stack:
()@jar:file:/shared/downloads/Ajax/GWT/gwt-visualization-1.0.1/gwt-visualization.jar!/com/google/gwt/visualization/client/DataTable.java:32
gwtOnLoad([object Window],"dietaclubweb","1.6")@:0
gwtOnLoad(undefined,"dietaclubweb","http://localhost:8080/dietaclubweb/";)@
http://localhost:8080/dietaclubweb/hosted.html?dietaclubweb:20
nc()@http://localhost:8080/dietaclubweb/dietaclubweb.nocache.js:2
()@http://localhost:8080/dietaclubweb/dietaclubweb.nocache.js:8
@http://localhost:8080/dietaclubweb/hosted.html?dietaclubweb:39

at com.google.gwt.visualization.client.DataTable$.create(Native Method)
at
ar.com.akyasociados.dietaclubweb.client.DietaClubWeb.initPage(DietaClubWeb.java:108)
at
ar.com.akyasociados.dietaclubweb.client.DietaClubWeb.onModuleLoad(DietaClubWeb.java:46)


I read that the Visualization-API is only compatible with 1.4 version of the
GWT, but i still want to be certain that this not an error caused by some
common mistake oftenly made by newbies (i am a newbie)

thanks in advance

I might add this gwt-visualization-api looks pretty cool...

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



Re: GWT (Multiple Pages Implementation)

2009-04-30 Thread X
I'll second Jamie's reply;

The best way to make a a fast, lightweight multi-page GWT application is to
have a "skeleton" splash page which will do a little bit of UI to trick the
user into thinking that the whole site is loaded {read: DeckPanel's that
load iframes via the Frame object}; meanwhile, the actual content pages load
seperately.  So long as you have caching set up right in .htaccess {files
with .cache. in them being cached for a month ~ a year}, you can preload the
content pages in the browser cache by recursively loading a single iframe
that the user MIGHT click on, poll for
Frame.getElement()./*-{contentWindow.document.body}-*/;, remove the unneeded
Frame, and do the next one.  In this way, you will have a very fast initial
startup for the main entry point, and potentially very fast startups for the
sub modules.

If you want to do this right, you'll need to segregate all your packages and
modules so you can include the minimum dependancies for each subpage.
Currently, my development path is:
1) Build main splash page -> Display logos, builds a History-enabled menu,
starts a silly animation to distract the user for a second
2) Build an xml->JS generic content page -> I've made something of a JAXB
module that will let me build text / image -based pages using declarative
markup in xml, which I prefer embedding into the .html that the Frame loads
to cut down on http requests.  This method works for most of my pages, as it
is output-only display, for the most part.
3) Build custom widgets seperately -> Anything that will include vast
amounts of overhead, or large amounts of text should be in it's own module,
compiled and uploaded seperately so it's dependancies don't bloat the rest
of the code.
4) Hookup any bi-di between your frames -> I have a working module that
extends Entry point, and both the inner and outer frame must extend it.
Essentially, using interfaces and a little native hackery, you can give each
xModule the ability to send and receive by hooking up Rx and Tx functions to
the document's $wnd.

Step one -> Outer frame sets $wnd.Rx = xModule.xRx()
Step two -> Outer frame adds inner frame, polls lazily {250us} for
innerFrame.contentWindow.Rx,
Step three -> Inner frame loads, also sets up Rx
Step four -> Polling function notices Rx set up, and builds a bridge of Tx
functions in both the inner and outer frame.  Essentially->  outer.Tx =
function(_){inner.Rx(_);} and inner.Tx = function(_){outer.Rx(_)}.   The
Java Tx functions of each simply check for these bridges, and uses them when
they're ready.

The key part of this is correctly ripping the Rx functions.  I already have
a means to add objects to the global window, so I extract a JavaScriptObject
to represent the function with:

public static final native JavaScriptObject xMultiplex(final
xReceivor xToRip)
/*-{
 return function(_){xtor...@xbook.xfacets.client.xreceivor
::xRx(LxBook/logickmal/client/xRNA;)(_);};
}-*/;

Note the final in the parameter xToRip...  That's the 'var statement' to
allow inner-function access to the object, and also note that xRNA extends
JavaScriptObject because NO JAVA OBJECTS BESIDES RAW STRINGS, NUMBERS AND JS
OBJECTS WILL BE TRANSLATABLE ACROSS INSTANCES OF MODULES.

I hear Google is working on a code-splitting device to take large modules
and slice them into smaller files, which will, I hope, allow us to use
mutiple frames capable of understanding the same interfaces...  As it is
now, we cannot control how the gwt compiler renames fields and methods, and
it's best not to try for(x in y)if(y[x]=...@some.java::pointer), as this
will only cause major stress and waste time until the heroes at google feel
their code splitting works.



Until then, if you want your enterprise app to run fast and clean, consider
using the server-side for communication as well.

My personal goal is a GWT app that will run off a cd so I can put it in my
bands demo, so I would rather use cross-frame hacks than server-side
babysitting, but the choice is yours.

Good luck!

-- 
"He whose desires are drawn toward knowledge in every form will be absorbed
in the pleasures of the soul, and will hardly feel bodily pleasure --I mean,
if he be a true philosopher and not a sham one." - Plato
"Wise Words Whispered Without Will Won't Wake Worlds" - Alyxandor
Artistocles

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



Big GWT Application

2009-04-30 Thread Gilles B

How to build a big application using GWT ? (I mean client part, server
code size is not a problem).

I don't know if it's a good idea, building a 100% GWT monolithic
application but I reach the compiler bounds with a medium application
(400 java sources in my client directory, using DOM, JAX, incubator
Grids..). I increase Java memory but it's not enought. Using GWT
modules doesn't help much because the generated client JavaScript
integrate all the used java classes code as js and keep on to increase
it size and soon or latter you have this message :
   [ERROR] Unexpected internal compiler error
   java.lang.StackOverflowError: null
If this is not a memory issue consider the generated java script with
more than 1 M-bytes size...
You have also to considere compiling time increase.

GWT framework team as done a good job but I think I misuse it !

I Integrate the main application menu bar in my GWT application. May
be, it's better to consider an HTML page as entry point with a main
menu or links... and each menu item using a smaller java script
application developped as an independant GWT, using GWT modules to
share application parts between?

What is the good strategy  ?

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



Re: Eclipse Plugin Compile Button & Stack Overflow

2009-04-30 Thread Vitali Lovich
On Thu, Apr 30, 2009 at 10:25 AM, mounier.flor...@gmail.com <
mounier.flor...@gmail.com> wrote:

>
> I'm waiting for it too and its starting to take time just for two
> options...
> Why does deploying force compilation (which fails so badly) ?

Because that's what deployment is?  Maybe I'm not understanding your
question.  Hosted mode (which runs the Java code in a JVM) is just for
debugging.  For deployment, you compile the Java code into actual
Javascript.

>
>
> BTW what does it change to use GWT trunk ?

>From what I could tell, not much.  But there could be more unknown bugs &
whatnot.  However, it should compile - according to the Google developers,
they have other internal teams working against trunk.

>
> I'm using it and I still have the issue... (and I can't deploy and
> oophm doesn't have a compile button yet, fortunately i can compile
> with ant)

So what's the issue?  What do you mean you can't deploy?  You just said you
can compile with ant.  OOPHM should get the compile button eventually - I
never found a particular need to use it.  Just run your ant script.

>
>
> On 23 avr, 15:59, Miguel Méndez  wrote:
> > We've updated the compile UI to allow you to tweak the -Xss and -Xmx
> > settings.  It will be part of the upcoming point release of the plugin.
> > In the meantime, the compile button in hosted mode is one work around.
>  You
> > can also compile a version of the GWT trunk and have the plugin use that
> SDK
> > for the project.
> >
> >
> >
> > On Thu, Apr 23, 2009 at 3:51 AM, mihai007  wrote:
> >
> > > oh well add me to the list. this should have priority as it turns the
> > > use of plugin useless if I can't compile
> > > any workarounds?
> >
> > > On 8 Abr, 16:11, Brian  wrote:
> > > > Just installed the Google plugin for Eclipse, and hit the Compile
> > > > button on my project.  It gave me astackoverflowerror.
> > > > Prior to using the plugin, I'd compile by hitting the Compile button
> > > > in the hosted mode browser.  In the Run/Debug Eclipse configuration,
> I
> > > > have -Xss4k & -Xmx256M
> > > > Compiles worked fine with those flags and the Compile button from
> > > > hosted mode.
> >
> > > > How do I set the Xss flag for use by the Compile button in the
> eclipse
> > > > toolbar?  I tried putting it in the Advanced section, but this just
> > > > informed me it wasn't an appropriate gwt compiler option.
> >
> > > > This isn't stopping me from doing anything, as I can still compile
> > > > from hosted mode, just curious how to set it up.  I checked the
> plugin
> > > > faq, but couldn't find anything there.
> >
> > --
> > Miguel
>
> >
>

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



Re: GWT (Multiple Pages Implementation)

2009-04-30 Thread Jamie

The first question I have is,
Do the pages need to talk to each other at all?

I have found that a single GWT project with many (eg.,) tabs can
definitely be a performance problem.  As well, this does not lend
itself to 'plugin' support where you want to add or remove pages based
on (for example ) what modules are present on the server, and having
the web interface packaged in the module itself.

For one project, I was using a 'controller' GWT page that used lazy-
loading iframes displayed in tabs, to display the various pages.  The
various pages were all separate GWT projects.  The iframes would not
load until the tab was activated.
These subprojects ended up being quite lightweight, and there were no
performance problems.
Adding or removing pages based on plugin configuration was quite easy
then.
Additionally, it was easy enough to support other frameworks (showing
non-GWT pages).

Some of my pages did need to communicate.  For that I wrote some GWT
native javascript wrappers that could interact with the outer
controller page.

Jamie.

On Apr 29, 4:25 pm, Vince  wrote:
> Hello,
>
> I just started out with GWT and currently building a prototype that is
> intended as an enterprise "skeleton" application. The intent is to use
> GWT with Struts 2.0 (via a plugin). I now have the basic structure of
> the application and I have 3 simple pages that are facilitated by
> DeckPanels. Then it suddenly occurred to me... Having several panels
> (DeckPanels) to simulate pages in an enterprise web system could be
> trouble in performance and possibly maintenance (?).
>
> So I turned to the internet for some information and came upon
> suggestions ranging from embedded GWTs in JSPs using markups (Reminds
> me of YUI but that's another story) to multiple launching point HTMLs
> and matching EntryPoint classes.
>
> That said, and based on several informative readings, I come to the
> point of asking these questions to anybody who could provide me with
> an objective opinion and strong recommendation if possible. Simply put
> - Help!
>
> 1. What is Google's recommended paging approach (The way I understand
> it is via DeckPanels)?
> 2. How efficient is using a DeckPanel to accommodate several pages
> (Any number of pages in mind it could "safely" support)?
> 3. With an enterprise web app comprising of numerous screens (and when
> I say numerous please imagine our trusty old Eclipse editor's
> interface), would DeckPanels be recommendable?
> 4. What's a suitable alternative to DeckPanels (I would appreciate any
> recommendations)?
>
> I would appreciate any feedback, assistance and most importantly added
> knowledge on my part.
>
> Thanks,
> Vince
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Recommendations for a good book on GWT

2009-04-30 Thread JoeB

I liked "Google Web Toolkit Applications" by Ryan Dewsbury.  The
example apps were especially informative.

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



Re: GWT with eclipse and java1.6 crashes after running.

2009-04-30 Thread phanidee

yeah the window that opens up is gwt browser with google webtool kit
logo at top right corner.
it has all these buttons Hosted Browser, Restart Server Collapse,
expand etc.,
Its the same window that blacks out.

Blacks out in the sense i mean whenever some application does not
respond in ubuntu
it blacks out. no output in that window. Not even a server started
message.

OS: Ubuntu Jaunty 9.04
Eclipse ganymede 3.4.2
GWT 1.6.4

-
Phani.

On Apr 30, 7:00 pm, Alex Rudnick  wrote:
> HeyPhani,
>
> Just a few clarifying questions -- is the window that pops up a web
> browser? And it's that window that popped up that blacks out? Does it
> actually turn black? (Also, which OS are you running?)
>
> As far as we know, there's nothing catastrophically wrong with the
> built-in server :)
>
> Thanks! We want to help figure this out!
>
>
>
> On Thu, Apr 30, 2009 at 12:05 AM, phanidee  wrote:
>
> > hi,
> >   i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse
> > plugin and eclipse uses
> > java-6-sun. I dont know why but when i hit green button to run a
> > window opens up and after
> > some time, it blacks out and nothing happens. I tried removing the
> > Built-in server check mark
> > in run configuration then the gwt browser comes up error message that
> > "cannot connect to
> > localhost:8080". is it any problem with built-in server or should i
> > revert back to java 1.5 for
> > the gwt to run?
>
> > Please help.
>
> > -
> >Phani.
>
> --
> Alex Rudnick
> swe, gwt, atl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-30 Thread Laird Nelson
On Thu, Apr 30, 2009 at 10:07 AM, KaffeineComa wrote:

> However, I don't want to be continually swimming upstream
> against this layout, in particular if it will cause pain for my
> colleagues using Eclipse (I'm an Intellij user myself).
>

I am most reluctantly following the GWT/Eclipse layout.  I don't like it at
all, but a good number of our users will simply fire up Eclipse, add the
plugin and do what it says, so by default it wins.

Fortunately it's not too terribly invasive.  I'm still keyboard-trained,
however, to look for src/main/java

Best,
Laird

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



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Jamie

Currently I have my GWT-1.6 project additionally configured as a
Dynamic Web Project in Eclipse EE.
(to find out how, see here:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/39e0ff6325e4d504/55bfd342d77ec910#55bfd342d77ec910)

When you have your project configured this way, you can select the
project, and then select File/Export/Web/War file.

Save it to {path}/ROOT.war

and that's about it.


Saving it or renaming it to 'ROOT.war' should do what you want; your
project will deploy at http://server/
instead of
http://server/project

(BTW, this is a web container feature, not a GWT specific feature.)



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



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Stan B

It is possible if you use the Cypal eclipse plugin and attach your web
project to an EAR project
It will essentially do everything for you (make sure you compile
either on clean before you publish or enable the compile on publish
option)

-Stan

On Apr 30, 7:01 am, Danny  wrote:
> Thanks, doopa.
> The steps in the GWT documentation are basically what I have done in
> the past -- I call them rolling my own.  I was hoping that there was
> some way to get Eclipse to do all the work, and all I would have to do
> is build a .war file and TomCat would explode everything into the
> right places.  I guess I will continue as before.
>
> Danny
>
> On Apr 30, 4:52 am, doopa  wrote:
>
> > For testing purposes I use tomcat to serve the static and dynamic
> > portions of the application. To do so, I follow the example from 
> > GWT:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> > Then navigate to localhost:8080/com.example.Module/index.html
>
> > And then you can have the app pages served by tomcat. The war file is
> > simply deployed to tomcat/webapps/com.example.Module.war
>
> > Hope that makes sense.
>
> > On Apr 29, 10:30 pm, Danny  wrote:
>
> > > While I am not new to GWT, I am a bit new to the WAR file concept.  Up
> > > to now, I was content to roll my own when deploying my WEB
> > > application.  I use Tomcat to serve both static and dynamic web page
> > > content under a directory/file configuration at my web hosting service
> > > something like:
>
> > > webapps
> > >    ROOT
> > >        GWT/
> > >        GWT cashe files
> > >        my .nocache.js file
> > >        index.html   (my home page)
> > >        index.css (my css file)
> > >        other public files
> > >    servlet
> > >        WEB-INF
> > >           classes  (my servlets)
> > >           lib (external .jar files needed by my servlets)
>
> > > My web hosting service currently points http:/my-domain-name.com/  to
> > > Tomcat's .../webapps/ROOT.  I  could roll my own and merge ROOT/ with
> > > servlet/.  But, can I use GWT's WAR concept to do this for me?  I can
> > > see how to do this with WAR, but the WAR's module name gives me
> > > another level that I do not need.  If I name my GWT module ROOT, would
> > > this work, or does someone have a better idea.
>
> > > Thanks,
>
> > > Danny
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Compile Project problem in Eclipse

2009-04-30 Thread Keith Platfoot

Sorry Guidobot, I think I misunderstood your original question.  If
you were expecting the Eclipse button or ant to pop-up a browser
window at the end of compilation, then as Alex and Isaac pointed out,
this is a function of the GWT hosted browser only.  I apologize for
the confusion!

Keith

On Apr 29, 9:27 pm, Guidobot  wrote:
> Has anyone else had this problem?
>
> I compile a project from Eclipse, which works, but a browser does not
> show pop-up (running the JS).
>
> Oddly, all works fine if I Compile/Browse from the GWT host. On the
> otherhand, 'ant build' has a similar problem (it compiles but does not
> launch a browser).
>
> Feels like I'm missing some setting somewhere? Perhaps Vista related?
>
> Any sugestions would be much appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Recommendations for a good book on GWT

2009-04-30 Thread Stan B

GWT in Practice is an excellent book and I would high recommend it.
GWT in Action is also great, a bit outdated but still relevant
enough.

On Apr 30, 7:36 am, Jim  wrote:
> Pro Web 2.0 Application Development with GWT by Jeff Dwyer.
> An example to cover RPC and ORM -www.gwtorm.com/mail/Mail.html
>
> Jim Xiewww.gwtorm.comfor GWT 
> ORMhttp://code.google.com/p/dreamsource-orm/downloads/list
>
> On Apr 30, 4:41 am, Rob Tanner  wrote:
>
> > Now that I've got Google Web Toolkit installed and built StockWatcher
> > including GWT RPC, it's time to get serious. I plan to use the toolkit
> > to migrate a couple of existing web applications (servlets and JSPs)
> > but I also want a bit better background and a book that makes a good
> > reference book as well, lots of examples, cookbook, etc.  Looking on
> > Amazon there are more than just a couple of books about GWT.  Can
> > anyone recommend a good book for a GWT beginner.
>
> > Thanks,
> > Rob
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 Custom Event Handler

2009-04-30 Thread Miroslav Genov

Maybe one of the following articles will help you:
http://www.itsolut.com/chrismusings/?p=41
http://lemnik.wordpress.com/2009/03/04/gwts-new-event-model-handlers-in-gwt-16/
http://lemnik.wordpress.com/2009/03/12/using-event-handlers-in-gwt-16/

Regards,
  Miroslav

Micky wrote:
> Seems like the Observer pattern is the best way to create this
> functionality
>
> On Apr 27, 5:16 pm, Kelo  wrote:
>   
>> I wrote a post like yours asking for a guidance or something that it
>> can explain how I can create
>> my own handlers and events, and how I can make a drag & drop using
>> mouse handlers but my issue disappeared.
>>
>> On 27 abr, 17:55, Micky  wrote:
>>
>> 
>>> I’m building an application that is similar in layout to the Showcase
>>> example that is part of the GWT 1.6 install  - there is central
>>> DeckPanel that contains a number of content widgets and only one of
>>> these widgets can be displayed at any one time. However, whereas the
>>> content widget being displayed in the Showcase example is controlled
>>> by the Tree on the left of the screen, my content widgets need to
>>> cause other content widgets to display.
>>>   
>>> I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent)
>>> from the content widgets and then have an application level handler
>>> manage the change in the DeckPanel.
>>>   
>>> Do I need to create a custom event for this? If so, can someone
>>> provide some guidance or good articles on doing so? Is there a better
>>> approach to what I’m trying to do?
>>>   
>>> Thanks.
>>>   
> >
>   


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



Re: GWT Compile Project problem in Eclipse

2009-04-30 Thread Jamie

> Btw, after I have compiled, can I just link to a particular html file
> using IE to see the project run? StockWatcher.html didn't work -
> perhaps I need apache running or something when not using GWT host?
>
> Cheers

Yep... you need to run some sort of web server/container, such as
Apache Tomcat or JBoss.

Fortunately, it's pretty easy to do.

Go here:
http://tomcat.apache.org/download-60.cgi

Download Tomcat6
Unpack it to your harddrive somewhere.

Using Eclipse JavaEE, switch to JavaEE perspective.
Right-click in the 'servers' view, and select 'New/server'.
Follow the wizard to configure a tomcat6 server within eclipse.

Next you need to make Eclipse aware that your project is a web
project.
See my post here, which explains how to do that:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/39e0ff6325e4d504/55bfd342d77ec910#55bfd342d77ec910

Remember that after you recompile the GWT code, you need to refresh
the 'war' folder.
This also requires that you use the EE version of Eclipse, which you
probably want anyway if you are doing web server projects.

Once you have started the server within eclipse, you should be able to
point your browser to
http://localhost:8080/
and see the tomcat page, and then if your project is named 'blap', you
can browse to
http://localhost:8080/blap
and see your project.


Jamie.


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



Re: Eclipse Plugin Compile Button & Stack Overflow

2009-04-30 Thread mounier.flor...@gmail.com

I'm waiting for it too and its starting to take time just for two
options...
Why does deploying force compilation (which fails so badly) ?

BTW what does it change to use GWT trunk ?
I'm using it and I still have the issue... (and I can't deploy and
oophm doesn't have a compile button yet, fortunately i can compile
with ant)

On 23 avr, 15:59, Miguel Méndez  wrote:
> We've updated the compile UI to allow you to tweak the -Xss and -Xmx
> settings.  It will be part of the upcoming point release of the plugin.
> In the meantime, the compile button in hosted mode is one work around.  You
> can also compile a version of the GWT trunk and have the plugin use that SDK
> for the project.
>
>
>
> On Thu, Apr 23, 2009 at 3:51 AM, mihai007  wrote:
>
> > oh well add me to the list. this should have priority as it turns the
> > use of plugin useless if I can't compile
> > any workarounds?
>
> > On 8 Abr, 16:11, Brian  wrote:
> > > Just installed the Google plugin for Eclipse, and hit the Compile
> > > button on my project.  It gave me astackoverflowerror.
> > > Prior to using the plugin, I'd compile by hitting the Compile button
> > > in the hosted mode browser.  In the Run/Debug Eclipse configuration, I
> > > have -Xss4k & -Xmx256M
> > > Compiles worked fine with those flags and the Compile button from
> > > hosted mode.
>
> > > How do I set the Xss flag for use by the Compile button in the eclipse
> > > toolbar?  I tried putting it in the Advanced section, but this just
> > > informed me it wasn't an appropriate gwt compiler option.
>
> > > This isn't stopping me from doing anything, as I can still compile
> > > from hosted mode, just curious how to set it up.  I checked the plugin
> > > faq, but couldn't find anything there.
>
> --
> Miguel

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



Re: Asynchronous communication from server to client

2009-04-30 Thread devcybiko

I've started using timers combined with a state/transition matrix.
I've offered a simple example below.  The basic idea is to keep a
'state' variable with the current state in the program logic.  When
you initiate a asynchronous call, you move the state to "LOADING".
When the call is complete, you move the state to "RUNNING".  You can
easily chain requests (as in the example) by pushing the state from
"LOADING_WS1_DATA" to "DONE_LOADING_WS1_DATA" to "LOADING_WS2_DATA" to
"DONE_LOADING_WS2_DATA" finally back to "RUNNING".  Example follows:

package com.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;

public class GWTProcess implements EntryPoint
{
private static final int ERROR = -2;
private static final int INIT = -1;
private static final int RUNNING = 0;
private static final int BUILD_GUI = 100;
private static final int START_LOADING_DATA = 200;
private static final int LOADING_WS1_DATA = 300;
private static final int DONE_LOADING_WS1_DATA = 301;
private static final int LOADING_WS2_DATA = 400;
private static final int DONE_LOADING_WS2_DATA = 401;
private static final int DISPLAY_DATA = 500;

int state = INIT;
String result1 = "";
String result2 = "";


public void onModuleLoad()
{
Timer t = new Timer()
{
public void run()
{
if (state == INIT)
{
initialize();
state = BUILD_GUI;
}
else if (state == BUILD_GUI)
{
buildGui();
state = RUNNING;
}
else if (state == RUNNING)
{
// do nothing special
}
else if (state == START_LOADING_DATA)
{
fireWebServiceOne();
state = LOADING_WS1_DATA;
}
else if (state == LOADING_WS1_DATA)
{
// wait patiently
}
else if (state == DONE_LOADING_WS1_DATA)
{
state = LOADING_WS2_DATA;
}
else if (state == LOADING_WS2_DATA)
{
fireWebServiceTwo();
state = LOADING_WS2_DATA;
}
else if (state == LOADING_WS2_DATA)
{
// wait patiently
}
else if (state == DONE_LOADING_WS2_DATA)
{
state = DISPLAY_DATA;
}
else if (state == DISPLAY_DATA)
{
displayData();
state = RUNNING;
} else if {state == ERROR) {
Window.alert("ERROR READING WEBSERVICE");
state = RUNNING;
}
}
};

// Schedule the timer to every 100 milliseconds.
t.scheduleRepeating(100);
}


private void initialize()
{
// nothing to do
}


private void buildGui()
{
Button b = new Button("Click me", new ClickListener()
{
public void onClick(Widget sender)
{
Window.alert("start data load");
state = START_LOADING_DATA;
}
});

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

private void displayData() {
Window.alert(result1+":"+result2);
}
private void fireWebServiceOne()
{
WebServiceOneAsync webservice = GWT.create
(WebServiceOne.class);

AsyncCallback callback = new AsyncCallback()
{
public void onFailure(Throwable caught)
{
state = ERROR;
}

public void onSuccess(String results)
{
result1 = results;
state = DONE_LOADING_WS1_DATA;
}
};
webservice.getData(callback);
}
private void fireWebServiceTwo()
{
WebServiceOneAsync webservice = GWT.create
(WebServiceOne.class);

AsyncCallback callback = new AsyncCallback()
{
public void onFailure(Throwable caught)
{
state = ERROR;
}

public void onSuccess(String results)
{
result2 = results;
state = DONE_LOADING_WS2_DATA;
}
};
webservice.getData(callback);
}
}

--~--~-~--~~~---~--~~
You rec

Re: GWT Compile Project problem in Eclipse

2009-04-30 Thread Isaac Truett

Guidobot,

I think you're just confusing the "compile/browse" feature of hosted
mode with a normal compile operation. Opening a browser window to show
your newly compiled application isn't a part of compilation, it's an
"extra" that the hosted mode UI does for you. Running compile from
Ant, Eclipse, or the command line isn't going to open a browser,
although you could certainly create a script to do so if you wish.

Hope that clears things up.

- Isaac


On Thu, Apr 30, 2009 at 10:25 AM, Guidobot  wrote:
>
> Thanks for the reply Alex.
>
> I was basically working through the Stock Watcher tutorial to ensure
> everything was working. In step 2 this says "After the application is
> compiled, a new browser window opens.", which was the case using
> hosted mode.
>
> There was also a note about Firefox being the default browser for PC.
> I have a relatively new PC w/o Firefox, do you think this could be the
> problem?
>
> Btw, after I have compiled, can I just link to a particular html file
> using IE to see the project run? StockWatcher.html didn't work -
> perhaps I need apache running or something when not using GWT host?
>
> Cheers
>
> On Apr 30, 6:54 am, Alex Rudnick  wrote:
>> Hey Guidobot,
>>
>> Are you hitting the red toolbox button to do the compile? I don't
>> think that button is supposed to pop up a web browser. (you could do a
>> compile to js without having the server running, for example).
>>
>> Let us know if that doesn't answer your question!
>>
>> Thanks,
>>
>> On Wed, Apr 29, 2009 at 9:27 PM, Guidobot  wrote:
>>
>> > Has anyone else had this problem?
>>
>> > I compile a project from Eclipse, which works, but a browser does not
>> > show pop-up (running the JS).
>>
>> > Oddly, all works fine if I Compile/Browse from the GWT host. On the
>> > otherhand, 'ant build' has a similar problem (it compiles but does not
>> > launch a browser).
>>
>> > Feels like I'm missing some setting somewhere? Perhaps Vista related?
>>
>> > Any sugestions would be much appreciated.
>>
>> --
>> Alex Rudnick
>> swe, gwt, atl
> >
>

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



Re: GWT Compile Project problem in Eclipse

2009-04-30 Thread Keith Platfoot

Hi Guidobot,

If I understand correctly, when you compile the project from either
the Eclipse toolbar button or from ant, the resulting application is
broken (pop-up doesn't work), but if you compile from the GWT hosted
browser, it does?  If this is the case, we need to figure out what is
going wrong with your Eclipse/ant compilations.  When you compile from
Eclipse, are there any error messages (or if you can try compiling
with log level INFO, is there a success message at the end)?

If the compilation in Eclipse appears to be completing successfully,
are you always using the same web browser when testing the compiled
application?  Also, could you clarify exactly what you mean by pop-
up?  Is this a native alert box, a GWT DialogBox or PopupPanel, or a
new browser window?

Keith

On Apr 29, 9:27 pm, Guidobot  wrote:
> Has anyone else had this problem?
>
> I compile a project from Eclipse, which works, but a browser does not
> show pop-up (running the JS).
>
> Oddly, all works fine if I Compile/Browse from the GWT host. On the
> otherhand, 'ant build' has a similar problem (it compiles but does not
> launch a browser).
>
> Feels like I'm missing some setting somewhere? Perhaps Vista related?
>
> Any sugestions would be much appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Compile Project problem in Eclipse

2009-04-30 Thread Guidobot

Thanks for the reply Alex.

I was basically working through the Stock Watcher tutorial to ensure
everything was working. In step 2 this says "After the application is
compiled, a new browser window opens.", which was the case using
hosted mode.

There was also a note about Firefox being the default browser for PC.
I have a relatively new PC w/o Firefox, do you think this could be the
problem?

Btw, after I have compiled, can I just link to a particular html file
using IE to see the project run? StockWatcher.html didn't work -
perhaps I need apache running or something when not using GWT host?

Cheers

On Apr 30, 6:54 am, Alex Rudnick  wrote:
> Hey Guidobot,
>
> Are you hitting the red toolbox button to do the compile? I don't
> think that button is supposed to pop up a web browser. (you could do a
> compile to js without having the server running, for example).
>
> Let us know if that doesn't answer your question!
>
> Thanks,
>
> On Wed, Apr 29, 2009 at 9:27 PM, Guidobot  wrote:
>
> > Has anyone else had this problem?
>
> > I compile a project from Eclipse, which works, but a browser does not
> > show pop-up (running the JS).
>
> > Oddly, all works fine if I Compile/Browse from the GWT host. On the
> > otherhand, 'ant build' has a similar problem (it compiles but does not
> > launch a browser).
>
> > Feels like I'm missing some setting somewhere? Perhaps Vista related?
>
> > Any sugestions would be much appreciated.
>
> --
> Alex Rudnick
> swe, gwt, atl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 Custom Event Handler

2009-04-30 Thread Micky

Seems like the Observer pattern is the best way to create this
functionality

On Apr 27, 5:16 pm, Kelo  wrote:
> I wrote a post like yours asking for a guidance or something that it
> can explain how I can create
> my own handlers and events, and how I can make a drag & drop using
> mouse handlers but my issue disappeared.
>
> On 27 abr, 17:55, Micky  wrote:
>
> > I’m building an application that is similar in layout to the Showcase
> > example that is part of the GWT 1.6 install  - there is central
> > DeckPanel that contains a number of content widgets and only one of
> > these widgets can be displayed at any one time. However, whereas the
> > content widget being displayed in the Showcase example is controlled
> > by the Tree on the left of the screen, my content widgets need to
> > cause other content widgets to display.
>
> > I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent)
> > from the content widgets and then have an application level handler
> > manage the change in the DeckPanel.
>
> > Do I need to create a custom event for this? If so, can someone
> > provide some guidance or good articles on doing so? Is there a better
> > approach to what I’m trying to do?
>
> > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-30 Thread KaffeineComa

I'm curious how folks are adapting to this new layout.  How many of
you are letting GWT write its output to war/**, and how many are going
the maven approach and moving things to target/war/** ?  Personally, I
much prefer the maven idea of keeping source and generated files
separate.  However, I don't want to be continually swimming upstream
against this layout, in particular if it will cause pain for my
colleagues using Eclipse (I'm an Intellij user myself).

Thanks.
K





On Apr 16, 2:00 pm, Matt Bishop  wrote:
> One of the big wins withMavenis the "rigid" directory structure,
> where source files of all stripes are in src/ and build outputs are in
> target/. It's good practice because it doesn't allow for intermingling
> source files and build files.
>
> The new GWT war/ dir next to src/ problematic because you have to be
> careful how you clean up.  I can see many an "aaargh!" being screamed
> out in the early morning hours when a tired developer discovers a bug
> in her ant script, or when he trashes the war/ dir accidentally.
>
> I would much rather have seen src/java and src/war (better yet, src/
> webapp) and the HostedMode compiler would copy src/webapp to war/
> before compilation. It would be a whole lot safer and wouldn't really
> cost that much, even for large projects with a whole lotta webapp/**
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Table with resizable columns

2009-04-30 Thread Nick

Have you checked out the Advanced GWT Components Demo Application?
http://advanced-gwt.sourceforge.net/demo/index.html
You can find many helpful, open-source widgets at this link as well:
http://google.wikia.com/wiki/Google_Web_Toolkit.

-Nick

On Apr 29, 12:43 pm, grigoregeorge 
wrote:
> How can i make table in gwt of wich columns can be resizable? I don't
> use a DockPanel object.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with eclipse and java1.6 crashes after running.

2009-04-30 Thread Alex Rudnick

Hey Phani,

Just a few clarifying questions -- is the window that pops up a web
browser? And it's that window that popped up that blacks out? Does it
actually turn black? (Also, which OS are you running?)

As far as we know, there's nothing catastrophically wrong with the
built-in server :)

Thanks! We want to help figure this out!

On Thu, Apr 30, 2009 at 12:05 AM, phanidee  wrote:
>
> hi,
>   i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse
> plugin and eclipse uses
> java-6-sun. I dont know why but when i hit green button to run a
> window opens up and after
> some time, it blacks out and nothing happens. I tried removing the
> Built-in server check mark
> in run configuration then the gwt browser comes up error message that
> "cannot connect to
> localhost:8080". is it any problem with built-in server or should i
> revert back to java 1.5 for
> the gwt to run?
>
> Please help.
>
> -
> Phani.

-- 
Alex Rudnick
swe, gwt, atl

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



Re: GWT Compile Project problem in Eclipse

2009-04-30 Thread Alex Rudnick

Hey Guidobot,

Are you hitting the red toolbox button to do the compile? I don't
think that button is supposed to pop up a web browser. (you could do a
compile to js without having the server running, for example).

Let us know if that doesn't answer your question!

Thanks,

On Wed, Apr 29, 2009 at 9:27 PM, Guidobot  wrote:
>
> Has anyone else had this problem?
>
> I compile a project from Eclipse, which works, but a browser does not
> show pop-up (running the JS).
>
> Oddly, all works fine if I Compile/Browse from the GWT host. On the
> otherhand, 'ant build' has a similar problem (it compiles but does not
> launch a browser).
>
> Feels like I'm missing some setting somewhere? Perhaps Vista related?
>
> Any sugestions would be much appreciated.

-- 
Alex Rudnick
swe, gwt, atl

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



Re: com.google.gwt.junit.client.TimeoutException: The browser did not contact the server within 60000ms

2009-04-30 Thread niamande

I've tried to clean my maven local repository, but i've got the same
error. I 've tried with gwt 1.6.4 : same exception. I've tried with a
little GWTTestCase created with JUnitCreator : same exception...
I've got any idea !

On 28 avr, 15:16, niamande  wrote:
> I have several gwt unit tests that extends GWTTestCase (1.5.4), and
> without make any chanhe, when i execute these tests i've got (with
> eclipse and maven) :
> com.google.gwt.junit.client.TimeoutException: The browser did not
> contact the server within 6ms.
>  - 1 client(s) haven't responded back to JUnitShell since the start of
> the test.
>  Actual time elapsed: 60.022 seconds.
>
>         at com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:550)
>         at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:718)
>         at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:654)
>         at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:150)
>         at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
> 219)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run
> (JUnit3TestReference.java:130)
>         at org.eclipse.jdt.internal.junit.runner.TestExecution.run
> (TestExecution.java:38)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> (RemoteTestRunner.java:460)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> (RemoteTestRunner.java:673)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
> (RemoteTestRunner.java:386)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
> (RemoteTestRunner.java:196)
>
> It's very strange... And these same tests could be executable in
> another PC, and in other one not !
>
> Thanks a lot for your response.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: "war" folder name in version 1.6.4 configurable?

2009-04-30 Thread Alex Rudnick

Hello,

The plugin doesn't (yet) support changing the name of the war folder
-- we're planning on supporting that in an upcoming release. So
hopefully we'll have your use case covered pretty soon!

Thanks!

On Wed, Apr 29, 2009 at 11:46 PM, Robin  wrote:
>
> I am currently trying the new 1.6.4 version of GWT. it's good to have
> the new structure similar to the the one used in eclipse web project.
>
> The existing eclipse web project allows to change the name of the
> "WebContent" folder (equivalent to the "war" folder in google web app
> project).  However, it seems I can not change the name of "war" folder
> to other names in google web app project. If i change the default
> name, it gives me the error "The web.xml file does not exist" as a
> "Google Web App Problem."
>
> Does anyone know if the name is configurable and how? Thanks

-- 
Alex Rudnick
swe, gwt, atl

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



Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-30 Thread dduck



On Apr 29, 7:01 pm, davidroe  wrote:
> have you tried zero opacity? this usually does the trick for me as it
> is interpreted as in the DOM and visible.

I'm not quite sure what you mean. Could you elaborate?

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



Re: Scrollbar in GWT

2009-04-30 Thread Arthur Kalmenson

Have you taken a look at the paging scroll table in the incubator?
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=PagingScrollTable

--
Arthur Kalmenson



On Wed, Apr 29, 2009 at 11:27 AM, SkyTech  wrote:
>
> I need to create a scrollbar in such a way that. when the user clicks
> on the down arrow he needs to go to the next page and whrn he clicks
> the up arrow he needs to go to the previous page.
>
> i could find the scroll event but it is firing continiously. i need it
> to fire just once ..
>
> Any pointers will be helpfull..
>
> Thanks
>
> >
>

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



Re: SuggestionBox Too Large for Screen?

2009-04-30 Thread Arthur Kalmenson

I normally limit the number of results to 5. Google.com uses 10. Maybe
you shouldn't go over 10 results? I don't know how user friendly lots
of suggest are.

--
Arthur Kalmenson



On Wed, Apr 29, 2009 at 9:08 AM, Elam  wrote:
>
> Hi all,
>
> I have a suggestionbox that, when containing a large number of items,
> has a height taller than the screen.  The users can see the
> suggestions that are off the screen by using a scrollwheel, but they
> cannot select them.  The minute the user tries to select a suggestion,
> the browser scrolls back to the orginal visible space(ie the top of
> the screen)
>
> Does anyone else have this problem and is it possible to place the
> popup from a suggestionbox into a ScrollPanel?
>
> Using GWT 1.6.2 on Windows.
>
> Thanks,
> - Elam
> >
>

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



Re: GWT Loading slider

2009-04-30 Thread Arthur Kalmenson

It should update the elements right away since you're doing GWT-RPCs
which are asynchronous. Note that a progress bar already exists in the
incubator: 
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=ProgressBar

--
Arthur Kalmenson



On Wed, Apr 29, 2009 at 9:01 AM, Ice13ill  wrote:
>
> I'm trying to create a loading slider much like the one from gmail
> (when loading an account)
> So i made a simple gadget with a horizontal panel that has a gray
> background let's say, and when the application passes through a
> checkpoint, it updates the slider
> Ex the slider has a max width of 300 px, and can be updated at a
> certain percent:
> updateSlider(30) etc.. witch does this: hpSlider.setWidth(newWidth).
> (i have tested  it with a timer and it works)
>
> When i sign in, the application (client) makes a series of requests in
> a certain order (ex: first requests some info, then language, then
> checks session, etc)
> at each request, the slider is updated (the updateSlider(#) method is
> called) and it is also visually updated (so far so good)
> Problem: when i load the rest of the javascript (ex: 4 big gadgets
> that require about 500 ms each, one of the about 1 sec) i also call
> updateSlider() after each of then loads, but it does not update the
> slider visully
>
> Does the browser or GWT knows that the elements are constructed one
> after another and it waits until all of them are loaded and than
> updates the UI?
> Or is there another pb?
> Can i use another widget? or does GWT has a similar widget ?
>
> Thx
> >
>

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



Re: Lack of availability of GWT Google Latitude API

2009-04-30 Thread Arthur Kalmenson

You could always contribute to the GALGWT
(http://code.google.com/p/gwt-google-apis/) project. It's not that
hard to create a wrapper for an existing library.

--
Arthur Kalmenson



On Wed, Apr 29, 2009 at 7:54 AM, Rafiq  wrote:
>
> While Google Latitude looks great, the lack of availability of
> Latitude API is stopping developers from producing quality realtime
> applications.
>
> More on my blog: 
> http://blogs.eforceglobal.com/rabdul/archive/2009/04/28/533.aspx
> >
>

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



Re: How to show tooltips on FlexTable?

2009-04-30 Thread walrus

You can use

DOM.setElementAttribute(table.getFlexCellFormatter
().getElement(row, column), "title", "Text to display");

On Apr 30, 2:29 pm, googelybear  wrote:
> yeah I think that would be an option. I was wondering whether the
> flextable directly supports this (currently I'm just setting text
> (setHtml()) for the cells - and the table is rather big, so wrapping
> all the texts in a label might slow it down)
>
> On 30 Apr., 12:00, Peter Ondruška  wrote:
>
> > What about adding tooltip to the Widget in table cell.
>
> > On Thu, Apr 30, 2009 at 11:25 AM, googelybear  wrote:
>
> > > Hi,
>
> > > I did not manage to display tooltips on the FlexTable (there seems to
> > > be no setTooltip(row, col, text) or similar, and also google did not
> > > yield any promising hits) - is this not possible or did I just not dig
> > > deep enough? Any pointers appreciated ;)
>
> > > thx,
> > > den
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Recommendations for a good book on GWT

2009-04-30 Thread Jim

Pro Web 2.0 Application Development with GWT by Jeff Dwyer.
An example to cover RPC and ORM - www.gwtorm.com/mail/Mail.html


Jim Xie
www.gwtorm.com for GWT ORM
http://code.google.com/p/dreamsource-orm/downloads/list


On Apr 30, 4:41 am, Rob Tanner  wrote:
> Now that I've got Google Web Toolkit installed and built StockWatcher
> including GWT RPC, it's time to get serious. I plan to use the toolkit
> to migrate a couple of existing web applications (servlets and JSPs)
> but I also want a bit better background and a book that makes a good
> reference book as well, lots of examples, cookbook, etc.  Looking on
> Amazon there are more than just a couple of books about GWT.  Can
> anyone recommend a good book for a GWT beginner.
>
> Thanks,
> Rob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Danny

Thanks, doopa.
The steps in the GWT documentation are basically what I have done in
the past -- I call them rolling my own.  I was hoping that there was
some way to get Eclipse to do all the work, and all I would have to do
is build a .war file and TomCat would explode everything into the
right places.  I guess I will continue as before.

Danny

On Apr 30, 4:52 am, doopa  wrote:
> For testing purposes I use tomcat to serve the static and dynamic
> portions of the application. To do so, I follow the example from 
> GWT:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> Then navigate to localhost:8080/com.example.Module/index.html
>
> And then you can have the app pages served by tomcat. The war file is
> simply deployed to tomcat/webapps/com.example.Module.war
>
> Hope that makes sense.
>
> On Apr 29, 10:30 pm, Danny  wrote:
>
> > While I am not new to GWT, I am a bit new to the WAR file concept.  Up
> > to now, I was content to roll my own when deploying my WEB
> > application.  I use Tomcat to serve both static and dynamic web page
> > content under a directory/file configuration at my web hosting service
> > something like:
>
> > webapps
> >    ROOT
> >        GWT/
> >        GWT cashe files
> >        my .nocache.js file
> >        index.html   (my home page)
> >        index.css (my css file)
> >        other public files
> >    servlet
> >        WEB-INF
> >           classes  (my servlets)
> >           lib (external .jar files needed by my servlets)
>
> > My web hosting service currently points http:/my-domain-name.com/  to
> > Tomcat's .../webapps/ROOT.  I  could roll my own and merge ROOT/ with
> > servlet/.  But, can I use GWT's WAR concept to do this for me?  I can
> > see how to do this with WAR, but the WAR's module name gives me
> > another level that I do not need.  If I name my GWT module ROOT, would
> > this work, or does someone have a better idea.
>
> > Thanks,
>
> > Danny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to show tooltips on FlexTable?

2009-04-30 Thread googelybear

yeah I think that would be an option. I was wondering whether the
flextable directly supports this (currently I'm just setting text
(setHtml()) for the cells - and the table is rather big, so wrapping
all the texts in a label might slow it down)

On 30 Apr., 12:00, Peter Ondruška  wrote:
> What about adding tooltip to the Widget in table cell.
>
> On Thu, Apr 30, 2009 at 11:25 AM, googelybear  wrote:
>
> > Hi,
>
> > I did not manage to display tooltips on the FlexTable (there seems to
> > be no setTooltip(row, col, text) or similar, and also google did not
> > yield any promising hits) - is this not possible or did I just not dig
> > deep enough? Any pointers appreciated ;)
>
> > thx,
> > den
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to show tooltips on FlexTable?

2009-04-30 Thread Peter Ondruška
What about adding tooltip to the Widget in table cell.

On Thu, Apr 30, 2009 at 11:25 AM, googelybear  wrote:

>
> Hi,
>
> I did not manage to display tooltips on the FlexTable (there seems to
> be no setTooltip(row, col, text) or similar, and also google did not
> yield any promising hits) - is this not possible or did I just not dig
> deep enough? Any pointers appreciated ;)
>
> thx,
> den
> >
>

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



How to show tooltips on FlexTable?

2009-04-30 Thread googelybear

Hi,

I did not manage to display tooltips on the FlexTable (there seems to
be no setTooltip(row, col, text) or similar, and also google did not
yield any promising hits) - is this not possible or did I just not dig
deep enough? Any pointers appreciated ;)

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



How to use PRETTY from Hosted Mode?

2009-04-30 Thread olel

Hi,

is there a way to tell the Hosted Mode that it should generate the
javascript in the PRETTY mode? I know that I can change it in the
compile.cmd, but the will not effect the hosted mode compiler, will
it?

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



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread doopa

For testing purposes I use tomcat to serve the static and dynamic
portions of the application. To do so, I follow the example from GWT:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideRPCDeployment

Then navigate to localhost:8080/com.example.Module/index.html

And then you can have the app pages served by tomcat. The war file is
simply deployed to tomcat/webapps/com.example.Module.war

Hope that makes sense.

On Apr 29, 10:30 pm, Danny  wrote:
> While I am not new to GWT, I am a bit new to the WAR file concept.  Up
> to now, I was content to roll my own when deploying my WEB
> application.  I use Tomcat to serve both static and dynamic web page
> content under a directory/file configuration at my web hosting service
> something like:
>
> webapps
>    ROOT
>        GWT/
>        GWT cashe files
>        my .nocache.js file
>        index.html   (my home page)
>        index.css (my css file)
>        other public files
>    servlet
>        WEB-INF
>           classes  (my servlets)
>           lib (external .jar files needed by my servlets)
>
> My web hosting service currently points http:/my-domain-name.com/  to
> Tomcat's .../webapps/ROOT.  I  could roll my own and merge ROOT/ with
> servlet/.  But, can I use GWT's WAR concept to do this for me?  I can
> see how to do this with WAR, but the WAR's module name gives me
> another level that I do not need.  If I name my GWT module ROOT, would
> this work, or does someone have a better idea.
>
> Thanks,
>
> Danny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Recommendations for a good book on GWT

2009-04-30 Thread Rob Tanner

Now that I've got Google Web Toolkit installed and built StockWatcher
including GWT RPC, it's time to get serious. I plan to use the toolkit
to migrate a couple of existing web applications (servlets and JSPs)
but I also want a bit better background and a book that makes a good
reference book as well, lots of examples, cookbook, etc.  Looking on
Amazon there are more than just a couple of books about GWT.  Can
anyone recommend a good book for a GWT beginner.

Thanks,
Rob


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



Re: Is there a place to download the documentation?

2009-04-30 Thread marco

Just to add a point of clarification - there was *no* documentation
with the 1.6.2 download (Mac): the 'javadoc' folder is empty.
The gwt-mac-1.6.4 does have the documentation in the /javadoc folder:
so if you can't find it in your download, just re-download it again.

Still, it would be good to be able to download the various 'getting
started' and 'how-to' pages for offline browsing: I do a lot of my GWT
development while commuting on a train and having offline access to
docs is a godsend.

On Mar 11, 11:46 pm, Ben Tilford  wrote:
> The toolkit download includes the documentation.
>
> On Wed, Mar 11, 2009 at 6:36 PM, Seth Ladd  wrote:
>
> > Hello,
>
> > Is it possible to download a copy of the documentation, to reference
> > locally without an internet connection?
>
> > Thanks for your tips,
> > Seth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Hosted Browser problem

2009-04-30 Thread Andy

I don't know if anyone is interested but cookies were to blame. I had
a localhost cookie containing data from other web applications, all
completely unrelated to what I was doing but something in the cookie
was causing an exception in the server when using the hosted browser.
Deleting cookies from IE solved the problem.


On Apr 24, 12:00 pm, Andy  wrote:
> Hi,
>
> I am encountering a problem trying to create and debug a GWT app. I
> have Eclipse 3.4 installed and the Google Plugin for Eclipse which
> includes GWT 1.6.4.
>
> I have created a new web application project and have not yet made any
> changes to the greeting service sample that was created. When
> attempting to debug this project the server and hosted browser window
> start up. The hosted browser looks to have the correct URL in the
> address bar but displays a completely blank page. It doesn't even
> reach the breakpoint that I have put on the first line of the
> onModuleLoad method. Clicking the 'Compile/Browse' button opens the
> same URL in Chrome which displays the greeting service and works as
> expected.
>
> I have added '-logLevel ALL' to the program arguments and found that
> an exception is being thrown when opening the page in the hosted
> browser. I have included the last few messages that are output to the
> server.
>
> [SPAM] fields=Accept: */*
> Accept-Language: en-gb,sq;q=0.5
> UA-CPU: x86
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
> CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR
> 3.0.04506.648)
> Host: localhost:8080
> Connection: Keep-Alive
>
> [SPAM] EXCEPTION
> org.mortbay.jetty.HttpException: null
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:395)
>         at org.mortbay.thread.QueuedThreadPool$PoolThread.run
> (QueuedThreadPool.java:488)
>
> [SPAM] BAD
>
> I have run out of ideas now. Any suggestions would be greatly
> appreciated.
>
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---