Monday, December 31, 2012

Re: gwtsizzle - CSS selectors for GWT dom

Thank you Thomas for the clarification and for taking a look to the project. Didn't know about the new xsiframe. I'm reading some documentation and fixing my projects.

about wrapper/port thing, I thought a wrapper was when you put the JSO as a "pure" java class attribute. Then you delegate all methods to the JSO. You have a little (x2) overhead because of the second call but you gain in language because you work with "pure" java so you can do new MyClass() and inheritance.

In my case I use JSOs for talking directly to JS objects from java, so I didn't called "wrapper" but perhaps you are right, i don't know... iIm pretty confused about terminology here.... you are right it is not a port... I would call it "(direct) Java API for sizzlejs ".

Happy new year and thanks again!

On Monday, December 31, 2012 9:58:44 PM UTC-2, Thomas Broyer wrote:


On Monday, December 31, 2012 10:55:50 PM UTC+1, Sebastián Gurin wrote:
I needed a lightweight solution for CSS selectors in com.google.gwt.dom.client.Element so I made a GWT port of the JavaScript library sizzlejs.com/

Ah, this is not a port, it's a wrapper.
Also note that the <script src=""> in the gwt.xml won't work with the xsiframe linker (and the xsiframe linker is the future)

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

Re: gwtsizzle - CSS selectors for GWT dom



On Monday, December 31, 2012 10:55:50 PM UTC+1, Sebastián Gurin wrote:
I needed a lightweight solution for CSS selectors in com.google.gwt.dom.client.Element so I made a GWT port of the JavaScript library sizzlejs.com/

Ah, this is not a port, it's a wrapper.
Also note that the <script src=""> in the gwt.xml won't work with the xsiframe linker (and the xsiframe linker is the future)

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

How to open a new Browser Window with a Widget

Hey,

here is what Im trying to do:
I opened my GWT-Application that has a Tab-Component with several Views/Dialoges (each in a dfifferent Tab).

display.getDialogContainer().getWidget(selected) .asWidget() returns the View/Dialoge from my Tab-Component with index=selected, which allows me to put the returned Dialog (Widget) in a DialogBox.
But... the DialogBox is within the Browser-Window. Thats not what I need :(

I want to put the whole Widget that I get returned from .getWidget() in a new Browser-Window.

(Its like the Gmail feature, that allows to Pop-Up that E-Mail Overlay.)


My idea is, to put the whole widget on the server and open a new Browser Window. Then I will open my entry-point site.
The Entry-point site will check if there is a Widget on the server, and load it, if there is any.

But I´m not quite sure if /how its even possible to save the Widget on the server.


Thanks in advanced.

Regards,
Manuel

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

gwtsizzle - CSS selectors for GWT dom

I needed a lightweight solution for CSS selectors in com.google.gwt.dom.client.Element so I made a GWT port of the JavaScript library sizzlejs.com/

GWTSIZZLE : http://code.google.com/p/gwtsizzle/

Since it has a very simple JavaScript API it only took me 1 hour to author this project. It is much more lighter than using gquery (about 19kb). Any feedback is most appreciated.

Usage example:

// ala JavaScript
JsArray<Element> result = Sizzle.sizzleArray("div p");
for (int i = 0; i < result.length(); i++)
    System.out.println(result.get(i).getTagName());

// ala Java
for (Element e : Sizzle.sizzleCol("div p"))
    System.out.println(e.getTagName());

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

Re: [ERROR] Unable to find 'com/google/gwt/maps/GoogleMaps.gwt.xml

Double check, I faced the same problem, instead com.google.gwt.maps use com.google.maps.gwt


On Thursday, September 24, 2009 7:00:48 PM UTC-3, thc wrote:
Hello, I am adding google maps capability to an existing GWT project.
I am using eclipse as the IDE. I have added the gwt-maps.jar to the
project's build path in eclipse. I can tell that, from the eclipse
(java) compiling perspective, that the jar is found since the editor
can add the imports dynamically, etc, and recognizes and compiles the
correspondings maps-related java code.

However, when I compile to javascript (i.e., ant build), i get the
error:

[ERROR] Unable to find 'com/google/gwt/maps/GoogleMaps.gwt.xml
' on your classpath; could be a typo, or maybe you forgot to include a
classpath

I have included the inherits tag in the project gwt.xml as:

<inherits name="com.google.gwt.maps.GoogleMaps" />

and verifed that the corresponding GoogleMaps.gwt.xml file is in the
proper package (com.google.gwt.maps) in the gwt-maps.jar file.

I am surprised that this isn't working, since this is a standard
google API. What am I doing wrong? Any help is appreciated and let me
know if you need more information. Thanks

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

Re: execute priority ServletContextEvent handler and static block

Thank you for your reply.
Then what should be put in the servlet context listener and what should be put in the static block?
 

From: Benjamin Possolo <bpossolo@gmail.com>
To: google-web-toolkit@googlegroups.com
Cc: Leung <leung1_2000@yahoo.com>
Sent: Monday, December 31, 2012 1:59 AM
Subject: Re: execute priority ServletContextEvent handler and static block

do not put code in a static block in your servlet context listener.
the context initialized method is guaranteed to be called exactly once for a servlet context listener before any of your servlets are initialized


Re: JMockit compatible with GWTTestCase?

There are very few GWT-compatible mocking tools. Actually I know only one, inspired by EasyMock and made by Googlers: https://code.google.com/p/easy-gwt-mock/
An alternative is to "mock GWT" so you can avoid using a GWTTestCase, and thus use the mocking tool you want (including JMockit): https://github.com/gwt-test-utils/gwt-test-utils
But I'm doing things like Jens suggest: abstract GWT-only classes (views) behind interfaces that can easily be mocked, so that a GWTTestCase is not necessary to unittest the business and/or presentation logic.

On Friday, December 28, 2012 9:15:14 PM UTC+1, James Scott wrote:
Hello all-

I'm trying to use JMockit in a GWTTestCase (JUnit 3, for what it's worth) and I'm not having any luck. I have jmockit.jar on my classpath for the test, but when I run it, I get this error message:

[ERROR] Line 50: No source code is available for type mockit.NonStrictExpectations; did you forget to inherit a required module?

Line 50 is where I have my NonStrictExpectations declared in my test case. Right now, it's empty.

I tried TRACE-level logging of the unit test run in Eclipse, and I get similar "no source code available" errors for other classes in the application GWT client code, but those are not under test and not in the same module as the code under test, so I don't think those are interfering.

My classpath includes my Eclipse output dir, GWT jars, jmockit.jar and junit.jar. Is there something else that should be in the classpath?

Thanks,

JLS

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

Re: Elemental and c.g.gwt.user.User

There are known incompatibilities between Elemental and DevMode:
https://code.google.com/p/google-web-toolkit/issues/detail?id=7481
https://code.google.com/p/google-web-toolkit/issues/detail?id=7842

It (apparently) works well in SuperDevMode.

On Monday, December 31, 2012 5:58:30 PM UTC+1, Bademus ᵗʰᵉ wrote:
Hello.
Is it possible use Elemental with c.g.gwt.user.User?
The problem is after using Elemental and c.g.gwt.user.User in the project (Debug\Run) I got an Exception
At the same time project compiles normaly but with only one permutation.

Exception:
17:50:46.736 [ERROR] [MyProject] Unable to load module entry point class net.MyProject.site.client.MyProject (see associated exception for details)
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
    at com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:483)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:470)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:893)
    at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:49)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1032)
    at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
    at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:47)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:253)
    at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:241)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
    at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1387)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1158)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:66)
    at com.google.gwt.user.client.ui.CellPanel.<init>(CellPanel.java:76)
    at com.google.gwt.user.client.ui.VerticalPanel.<init>(VerticalPanel.java:37)
    at net.MyProject.site.client.MyProject.onModuleLoad(MyProject.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IndexOutOfBoundsException: Index: 11, Size: 11
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at com.google.gwt.dev.shell.CompilingClassLoader$DispatchClassInfoOracle.getClassInfoByDispId(CompilingClassLoader.java:123)
    at com.google.gwt.dev.shell.CompilingClassLoader.getClassInfoByDispId(CompilingClassLoader.java:1021)
    at com.google.gwt.dev.shell.Jsni$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:177)
    at com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:69)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:893)
    at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:49)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1032)
    at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
    at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:47)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:253)
    at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:241)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
    at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1387)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1158)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:66)
    at com.google.gwt.user.client.ui.CellPanel.<init>(CellPanel.java:76)
    at com.google.gwt.user.client.ui.VerticalPanel.<init>(VerticalPanel.java:37)
    at net.MyProject.site.client.MyProject.onModuleLoad(MyProject.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)

myproject.gwt.xml:
...
<inherits name="com.google.gwt.user.User" />
<inherits name="elemental.Elemental" />
...

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

Elemental and c.g.gwt.user.User

Hello.
Is it possible use Elemental with c.g.gwt.user.User?
The problem is after using Elemental and c.g.gwt.user.User in the project (Debug\Run) I got an Exception
At the same time project compiles normaly but with only one permutation.

Exception:
17:50:46.736 [ERROR] [MyProject] Unable to load module entry point class net.MyProject.site.client.MyProject (see associated exception for details)
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
    at com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:483)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:470)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:893)
    at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:49)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1032)
    at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
    at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:47)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:253)
    at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:241)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
    at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1387)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1158)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:66)
    at com.google.gwt.user.client.ui.CellPanel.<init>(CellPanel.java:76)
    at com.google.gwt.user.client.ui.VerticalPanel.<init>(VerticalPanel.java:37)
    at net.MyProject.site.client.MyProject.onModuleLoad(MyProject.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IndexOutOfBoundsException: Index: 11, Size: 11
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at com.google.gwt.dev.shell.CompilingClassLoader$DispatchClassInfoOracle.getClassInfoByDispId(CompilingClassLoader.java:123)
    at com.google.gwt.dev.shell.CompilingClassLoader.getClassInfoByDispId(CompilingClassLoader.java:1021)
    at com.google.gwt.dev.shell.Jsni$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:177)
    at com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:69)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:893)
    at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:49)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1032)
    at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
    at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:47)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:253)
    at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:241)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
    at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1387)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1158)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:66)
    at com.google.gwt.user.client.ui.CellPanel.<init>(CellPanel.java:76)
    at com.google.gwt.user.client.ui.VerticalPanel.<init>(VerticalPanel.java:37)
    at net.MyProject.site.client.MyProject.onModuleLoad(MyProject.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)

myproject.gwt.xml:
...
<inherits name="com.google.gwt.user.User" />
<inherits name="elemental.Elemental" />
...

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

Re: Open url in new mobile safari instance?: Window.open()

You have to program that behavior into UiWebView, see:

https://www.google.com/search?q=open+link+in+safari+uiwebview

-- J.

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

Re: GWT Creating Session ID using java.uti.UUID and ignoring Cookie header

Hello,

I think it 's a good process because you don't use cookie and pass the session in the payload.
I have a question concerning the step 3 : " The server checks if the user exists. If so, I generate a 
SessionID using UUID.randomUUID.toString and pass it back to the 
client. " :
where do you save the UUID session on the server ? hashtable ?

thanks

Le dimanche 1 mai 2011 17:09:27 UTC+2, HelperMethod a écrit :
In order to prevent XSRF, I implement session handling in GWT this
way:

   1. If a sessionID is stored in the cookie, send it to the server in
the RPC payload and check if it's still valid.
   2. If not, show login window. User enters username/password, both
are sent to the server.
   3. The server checks if the user exists. If so, I generate a
SessionID using UUID.randomUUID.toString and pass it back to the
client.
   4. The client stores it in a cookie, sending it to the server with
each request (in the payload).

Is is okay to completely ignore the sessionID within the cookie
header?

I've also seen an alternative solution where the cookie's sessionID is
also aditionally sent within each request and then both are tested for
equality.

Which of the two solutions is better?

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

Re: DataGrid, how to show multiline content in its cells?

It should be "text-overflow", not "test-overflow".

On Sunday, December 30, 2012 10:31:41 PM UTC-5, tong123123 wrote:
Ok, I found remove
white-space:nowrap;
then it can show multiline.

but I found something unknown, if I use
white-space:nowrap;
overflow:hidden;
test-overflow:ellipsis;
I expect the overflow text will show as ellipsis, but not, the overflow text is just truncated!!

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

How to drag and drop multiple rows from cell table

I need to drag and drop multiple selected rows from a cell table (that contains specific objects).

I'm trying to use DragAndDropCellTable but I can drag only one cell this way. Anyone knows how can I drag few rows?

I'm catching the drop using DroppableWidget and I want the DropEvent.getDraggableData()  to be the list of selected Objects (currently it's just one Object).

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

How to drag and drop multiple rows from cell table

Hi,

I need to drag and drop multiple selected rows from a cell table (that contains specific objects).

I'm trying to use DragAndDropCellTable but I can drag only one cell this way. Anyone knows how can I drag few rows?

I'm catching the drop using DroppableWidget and I want the DropEvent.getDraggableData()  to be the list of selected Objects (currently it's just one Object).

Thanks,

Revital



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

Re: how to add meta tag in the header's page [with uibinder ?]

Here is an example for setting the description meta element

public static void setMetaDescription(String description){

NodeList<Element> nodes = Document.get().getElementsByTagName("meta");

for( int i = 0; i < nodes.getLength(); i++ ){

MetaElement meta = (MetaElement)nodes.getItem(i);

if( "description".equals(meta.getName()) ){

meta.setContent(description);

break;

}

}

}

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

Re: execute priority ServletContextEvent handler and static block

do not put code in a static block in your servlet context listener.
the context initialized method is guaranteed to be called exactly once for a servlet context listener before any of your servlets are initialized

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

Re: GWT Crawlable (SEO)

Jan

you seem to be kind of trolling; duplicate thread created 5 days ago by yourself and you clearly didnt bother to use the search feature but I will answer anyways....

Just copy the filter I wrote:
https://groups.google.com/forum/#!topic/google-web-toolkit/aBt-QCCQkKY

On Thursday, December 27, 2012 3:36:17 AM UTC-8, Jan wrote:
Hi

I like to make my GWT-App by the google bot. I found this article (https://developers.google.com/webmasters/ajax-crawling/). It states there should be a servlet filter, that serves a different view to the google bot. But how can this work? If i use for example the activities and places pattern, than the page changes are on the client-side only and there is no servlet involved -> servlet filter does not work here.

Can someone give me an explanation? Or is there another good tutorial tailored to gwt how to do this?

Thanks and best regards
Jan

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

Re: RequestFactory, ValueProxy support for Email, Link, User

For posterity:
After setting up the Annotation Processor, I realized there were many other issues. But User object isn't one of them. It works fine. Link, on the other hand, does not - the reason for this is that Link object doesn't have a default constructor. So we get errors if we try to make a LinkProxy for it. I decided to store my link just as a String, instead of Link.

Regards, 
Avanish

On Fri, Dec 21, 2012 at 11:12 PM, Avanish Raju <yaraju@gmail.com> wrote:
Hi GWT team, 

I've just started migrating from GWT-RPC to RequestFactory, and noticed that even when using ValueProxy to wrap the datastore objects, they aren't supported. For e.g, I created a UserProxy and a LinkProxy:

import com.google.appengine.api.users.User;
import com.google.web.bindery.requestfactory.shared.ProxyFor;
import com.google.web.bindery.requestfactory.shared.ValueProxy;

@ProxyFor(User.class)
public interface UserProxy extends ValueProxy {
String getUserId();
String getEmail();
String getNickName();
String getAuthDomain();
String getFederatedIdentity();
}

package com.kuryaat.lms.common.newdto;

import com.google.appengine.api.datastore.Link;
import com.google.web.bindery.requestfactory.shared.ProxyFor;
import com.google.web.bindery.requestfactory.shared.ValueProxy;

@ProxyFor(Link.class)
public interface LinkProxy extends ValueProxy {
String getValue();

}

And I'm using them like this:

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.ProxyFor;
import com.kuryaat.lms.common.dto.DocRefType;
import com.kuryaat.lms.server.jdo.DocRef;
import com.kuryaat.lms.server.rf.DocRefLocator;

@ProxyFor(value = DocRef.class, locator = DocRefLocator.class)
public interface DocRefProxy extends EntityProxy {

String getName();
LinkProxy getLink();
DocRefType getDocType();
int getStackIndex();
String getSourceService();
}


But I get the following error when I try to run the code:
[ERROR] [myapp] - Line 7: User cannot be resolved to a type

What is the right way to handle these?

Thanks, 
Avanish

--
"Life is what you make of it"
Y. Avanish Raju,

BTech, Computer Science and Engineering & Biotechnology,
ICFAI University, Dehradun

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/S/MU d- s:- a- C+++ UL+++ P+ L+++>++++ E-->--- W++>+++ N- o? K- w+>w++ !O !M !V
PS++@ PE++ Y+@ PGP- t 5? X+ R tv b+++ DI+@ D+ G e>++ h* r-- y
------END GEEK CODE BLOCK------



--
"Life is what you make of it"
Y. Avanish Raju,

BTech, Computer Science and Engineering & Biotechnology,
ICFAI University, Dehradun

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/S/MU d- s:- a- C+++ UL+++ P+ L+++>++++ E-->--- W++>+++ N- o? K- w+>w++ !O !M !V
PS++@ PE++ Y+@ PGP- t 5? X+ R tv b+++ DI+@ D+ G e>++ h* r-- y
------END GEEK CODE BLOCK------

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

Sunday, December 30, 2012

execute priority ServletContextEvent handler and static block

Hi

As I recognized from my web application, static block has higher execute priority. So, what should be put in static block, and what should be put in ServletContextEvent Handler.

Thanks

Re: Open url in new mobile safari instance?: Window.open()

Hi Paul,

Thanks for the sample - it loads the target in the UIWebView. I tried using a target of "_blank" as well, same result. I might have to just catch external urls in the native app and launch safari manually,

Thank you

On Sun, Dec 30, 2012 at 9:30 PM, Paul Stockley <pstockley1@gmail.com> wrote:
This works on iOS Fullscreen web applications. I think it may also work on a UIWebView

public void open(String url) {
Anchor a = new Anchor();
a.setTarget("_new");
a.setHref(url);
RootPanel.get().add(a);
NativeEvent e = Document.get().createHtmlEvent("click", true, true);
a.getElement().dispatchEvent(e);
RootPanel.get().remove(a);
}


On Sunday, December 30, 2012 1:57:50 PM UTC-5, markww wrote:
Hi,

I have a Button, when clicked, I'd like to open a url in a new browser instance. The following works on desktop:

    Window.open(url, "_blank", null);

When I run the same code in a UIWebView on ios, nothing happens. Ideally I'd like to open a new instance of mobile safari directed to that url. Does anyone have any ideas of how to do this? I can fall back on catching the url in my objective-c code, but ideally there's something we could do directly in javascript to trigger mobile safari to open,

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UVzOE3n_CyQJ.

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

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

Re: DataGrid, how to show multiline content in its cells?

Ok, I found remove
white-space:nowrap;
then it can show multiline.

but I found something unknown, if I use
white-space:nowrap;
overflow:hidden;
test-overflow:ellipsis;
I expect the overflow text will show as ellipsis, but not, the overflow text is just truncated!!

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

DataGrid, how to show multiline content in its cells?

I use DataGrid, and I found if the content is very long (with space), the exceeding text is truncated, but i want the text can be wrapped to the next line, any method?

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

Re: Open url in new mobile safari instance?: Window.open()

This works on iOS Fullscreen web applications. I think it may also work on a UIWebView

public void open(String url) {
Anchor a = new Anchor();
a.setTarget("_new");
a.setHref(url);
RootPanel.get().add(a);
NativeEvent e = Document.get().createHtmlEvent("click", true, true);
a.getElement().dispatchEvent(e);
RootPanel.get().remove(a);
}


On Sunday, December 30, 2012 1:57:50 PM UTC-5, markww wrote:
Hi,

I have a Button, when clicked, I'd like to open a url in a new browser instance. The following works on desktop:

    Window.open(url, "_blank", null);

When I run the same code in a UIWebView on ios, nothing happens. Ideally I'd like to open a new instance of mobile safari directed to that url. Does anyone have any ideas of how to do this? I can fall back on catching the url in my objective-c code, but ideally there's something we could do directly in javascript to trigger mobile safari to open,

Thanks

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

Re: GWT Crawlable (SEO)

Check out this link, specifically point 3 on how to set up a servlet filter that works with _escaped_fragment.
https://developers.google.com/webmasters/ajax-crawling/docs/html-snapshot

You now have two choices: in the link above, they use a java WebClient ( http://htmlunit.sourceforge.net/ ) to grab the html from your real page. The WebClient can parse javascript, and if your GWT page is fairly straight forward it should just work and give the right html back to google bot with zero extra work beyond the web.xml config / filter on your end.

However, if WebClient can't get good data from your pages (you'll need to test using WebClient directly), then you can inline some html for any pages that don't work, and you can make calls to your database/servlets to pull any dynamic data you might need. This output should be valid html, but it doesnt have to be pretty - just a <body>Lots of text here...</body> is enough for googlebot to understand the content on your page.

On Thursday, December 27, 2012 1:36:17 PM UTC+2, Jan wrote:
Hi

I like to make my GWT-App by the google bot. I found this article (https://developers.google.com/webmasters/ajax-crawling/). It states there should be a servlet filter, that serves a different view to the google bot. But how can this work? If i use for example the activities and places pattern, than the page changes are on the client-side only and there is no servlet involved -> servlet filter does not work here.

Can someone give me an explanation? Or is there another good tutorial tailored to gwt how to do this?

Thanks and best regards
Jan

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

Re: Why does Google search place GWT 1.5 documentation at the top of the list?

Thanks (and to Ashton too) -- adding the version number (2.5) does work -- adding 'latest' doesn't always make it the first in the list. (Though I would have expected Google search to work better -- version 1.5 was a long time ago - why make put it at the top of the list?)

In Eclipse when I select MenuBar I see most of the first part of the documentation in http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/MenuBar.html, but not the full contents. Javadoc from Eclipse is missing  All Implemented Interfaces, the Method Summary, Field Summary, Constructor Summary, etc.

-k

On Saturday, December 29, 2012 3:02:01 PM UTC, Jens wrote:
Replace 1.5 with the version you want (if refactoring has taken place you get a HTTP 404 tough) and then hit the small "Frames" link in the top center.

But why do you need that? First gwt-user.jar contains source files so you should have JavaDoc for GWT classes right in your IDE. If not then you have probably gwt-servlet.jar on classpath as well. Simply remove it or make sure that gwt-user.jar is before gwt-servlet.jar in your classpath.

Also you have the full GWT SDK installed via Eclipse that can be found in Eclipse/plugins/com.google.gwt.eclipse.sdkbundle_<version>. It contains the full JavaDoc of the GWT version you use.

-- J.


Am Samstag, 29. Dezember 2012 11:59:37 UTC+1 schrieb Toon...@gmail.com:
I did a Google search for "gwt menubar" (without the quotes) and the top hit was:


The second hit was 2.0 documentation.

What is the easiest way to get to the most recent GWT documentation of a class?

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

Open url in new mobile safari instance?: Window.open()

Hi,

I have a Button, when clicked, I'd like to open a url in a new browser instance. The following works on desktop:

    Window.open(url, "_blank", null);

When I run the same code in a UIWebView on ios, nothing happens. Ideally I'd like to open a new instance of mobile safari directed to that url. Does anyone have any ideas of how to do this? I can fall back on catching the url in my objective-c code, but ideally there's something we could do directly in javascript to trigger mobile safari to open,

Thanks

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

Re: Upgrade challenges to GWT 2.5

Thanks for the quick response and precise analysis.. will continue to follow up with GWTP group.

On Saturday, December 29, 2012 7:07:10 PM UTC-5, Jens wrote:
GWT-P's GinFieldManager uses a constructor of GWT's FieldWriterOfGeneratedType that does not exist in GWT 2.5. So I guess GWT-P 0.7 isn't compatible to GWT 2.5.

See:



-- J.

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

Re: Why does Google search place GWT 1.5 documentation at the top of the list?

You can also replace the version number with "latest"

http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/MenuBar.html

This will give you the current version which can be seen in the upper right of page. 


On Saturday, December 29, 2012 10:02:01 AM UTC-5, Jens wrote:
Replace 1.5 with the version you want (if refactoring has taken place you get a HTTP 404 tough) and then hit the small "Frames" link in the top center.

But why do you need that? First gwt-user.jar contains source files so you should have JavaDoc for GWT classes right in your IDE. If not then you have probably gwt-servlet.jar on classpath as well. Simply remove it or make sure that gwt-user.jar is before gwt-servlet.jar in your classpath.

Also you have the full GWT SDK installed via Eclipse that can be found in Eclipse/plugins/com.google.gwt.eclipse.sdkbundle_<version>. It contains the full JavaDoc of the GWT version you use.

-- J.


Am Samstag, 29. Dezember 2012 11:59:37 UTC+1 schrieb Toon...@gmail.com:
I did a Google search for "gwt menubar" (without the quotes) and the top hit was:


The second hit was 2.0 documentation.

What is the easiest way to get to the most recent GWT documentation of a class?

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

Saturday, December 29, 2012

Re: Upgrade challenges to GWT 2.5

GWT-P's GinFieldManager uses a constructor of GWT's FieldWriterOfGeneratedType that does not exist in GWT 2.5. So I guess GWT-P 0.7 isn't compatible to GWT 2.5.

See:

http://code.google.com/p/gwt-platform/source/browse/gwtp-core/gwtp-mvp-client/src/main/java/com/google/gwt/uibinder/rebind/GinFieldManager.java#293

http://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/user/src/com/google/gwt/uibinder/rebind/FieldWriterOfGeneratedType.java#30

-- J.

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

Upgrade challenges to GWT 2.5

Trying to upgrade a fairly mature maven based gwt 2.4 gwtp .7 gin 1.5 app to gwt 2.5 and getting this compile errors below (ERROR highlighted below). Any feedback appreciated.. Not sure if this is a GWTP issue or a GWT issue.. have posted on both groups.. Thanks and Cheers...

16:53:49.010 [ERROR] [app] Unable to load module entry point class com.app.client.bootstrap.app (see associated exception for details)
java.lang.RuntimeException: Deferred binding failed for 'com.fp.client.common.pleasewait.PleaseWaitView$Binder' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$Binder$_annotation$$none$$(ClientGinjectorImpl.java:746)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$Binder$_annotation$$none$$(ClientGinjectorImpl.java:760)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$_annotation$$none$$(ClientGinjectorImpl.java:3100)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$_annotation$$none$$(ClientGinjectorImpl.java:3111)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$MyView$_annotation$$none$$(ClientGinjectorImpl.java:6780)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$MyView$_annotation$$none$$(ClientGinjectorImpl.java:6789)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$_annotation$$none$$(ClientGinjectorImpl.java:3301)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$_annotation$$none$$(ClientGinjectorImpl.java:3312)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$place$FlowPlatformPlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4652)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$place$FlowPlatformPlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4663)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$gwtplatform$mvp$client$proxy$PlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4309)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$gwtplatform$mvp$client$proxy$PlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4321)
    at com.app.client.bootstrap.ClientGinjectorImpl.getPlaceManager(ClientGinjectorImpl.java:75)
    at com.app.client.property.create.PropertyCreateWizardPPropertyCreateNewProxyImpl.delayedBind(PropertyCreateWizardPPropertyCreateNewProxyImpl.java:53)
    at com.gwtplatform.mvp.client.DelayedBindRegistry.bind(DelayedBindRegistry.java:48)
    at com.app.client.bootstrap.app.onModuleLoad(app.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.FieldWriterOfGeneratedType.<init>(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/google/gwt/uibinder/rebind/MortalLogger;)V
    at com.google.gwt.uibinder.rebind.GinFieldManager.registerFieldOfGeneratedType(GinFieldManager.java:293)
    at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:1363)
    at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:1073)
    at com.google.gwt.uibinder.rebind.GinUiBinderGenerator.generateOnce(GinUiBinderGenerator.java:195)
    at com.google.gwt.uibinder.rebind.GinUiBinderGenerator.generate(GinUiBinderGenerator.java:146)
    at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$Binder$_annotation$$none$$(ClientGinjectorImpl.java:746)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$Binder$_annotation$$none$$(ClientGinjectorImpl.java:760)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$_annotation$$none$$(ClientGinjectorImpl.java:3100)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitView$_annotation$$none$$(ClientGinjectorImpl.java:3111)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$MyView$_annotation$$none$$(ClientGinjectorImpl.java:6780)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$MyView$_annotation$$none$$(ClientGinjectorImpl.java:6789)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$_annotation$$none$$(ClientGinjectorImpl.java:3301)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$common$pleasewait$PleaseWaitPresenterWidget$_annotation$$none$$(ClientGinjectorImpl.java:3312)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$fp$client$place$FlowPlatformPlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4652)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$fp$client$place$FlowPlatformPlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4663)
    at com.app.client.bootstrap.ClientGinjectorImpl.create_Key$type$com$gwtplatform$mvp$client$proxy$PlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4309)
    at com.app.client.bootstrap.ClientGinjectorImpl.get_Key$type$com$gwtplatform$mvp$client$proxy$PlaceManager$_annotation$$none$$(ClientGinjectorImpl.java:4321)
    at com.app.client.bootstrap.ClientGinjectorImpl.getPlaceManager(ClientGinjectorImpl.java:75)
    at com.app.client.property.create.PropertyCreateWizardPPropertyCreateNewProxyImpl.delayedBind(PropertyCreateWizardPPropertyCreateNewProxyImpl.java:53)
    at com.gwtplatform.mvp.client.DelayedBindRegistry.bind(DelayedBindRegistry.java:48)
    at com.app.client.bootstrap.app.onModuleLoad(app.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:680)

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

Re: Clearing Browser cache for upadated deployments

Remember if using crome with the inspector open, holding down the
reload button gives a option to clear cache/hard reload.
VERY usefull, yet hidden feature.

On Dec 21, 4:54 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On Friday, December 21, 2012 12:03:30 PM UTC+1, Marco wrote:
>
> >http://seewah.blogspot.de/2009/02/gwt-tips-2-nocachejs-getting-cached...
>
> See alsohttps://developers.google.com/web-toolkit/doc/latest/DevGuideCompilin...(which
> is also linked fromhttps://developers.google.com/web-toolkit/doc/latest/DevGuideDeploying)

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

Re: GWT Crawlable (SEO)

I solved this by effectively having a crudely laidout, but text/
content identical php system that gives the content when javascript
isnt present and a ?_escaped_fragment_ url is given.
As a bonus to making my site crawlable, this also makes it usable(ish)
for those without javascript on.

On Dec 28, 9:32 pm, Jens <jens.nehlme...@gmail.com> wrote:
> The servlet filter is only for the crawler and the crawler will not
> navigate your app using PlaceChangeEvents. The crawler just loads an URL
> that will hit your server and your servlet filter.
>
> If the bot finds a hyperlink like "#!myPlace" then it calls your server
> using "http://domain.com/?_escaped_fragment_=myPlace" and thus hitting your
> server. If you have two servers (a dedicated web server for static content
> + application server) then you have to proxy the request to your
> application server as soon as the URL contains the _escaped_fragment_ query
> parameter, so that the server can generate a HTML snapshot on the fly or
> you have to pre-generate all possible snapshots and serve them directly
> from the dedicated web server (and update them regularly using a cron job).
>
> Basically your server needs to follow the spec described at:
>
> https://developers.google.com/webmasters/ajax-crawling/docs/specifica...
>
> -- J.

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

Some of my images arnt being turned into image strips :?

...and thus are rather flickery when animating between them. (they are
frames in a animated sprite).

What baffles me is they are defined the same way as others that do
seem to work.

eg. I have a file like:
public interface MemDayImages extends ClientBundle {
...
@Source("/MemorableDayIcons/MEDIUM/magrietbag0.png")
ImageResource MEDmagrietbag0();

@Source("/MemorableDayIcons/MEDIUM/magrietbag1.png")
ImageResource MEDmagrietbag1();

@Source("/MemorableDayIcons/MEDIUM/magrietbag2.png")
ImageResource MEDmagrietbag2();

...

Which makes a lovely image strip that animates really smoothly.

I have another group of sprites however:

public interface NoirInternalSprites extends ClientBundle {

@Source("com/darkflame/client/JargScene/firelopp/fireloop0050.png")
ImageResource fireloop0050();

@Source("com/darkflame/client/JargScene/firelopp/fireloop0051.png")
ImageResource fireloop0051();

@Source("com/darkflame/client/JargScene/firelopp/fireloop0052.png")
ImageResource fireloop0052();

@Source("com/darkflame/client/JargScene/firelopp/fireloop0053.png")
ImageResource fireloop0053();
...

Which does not.
These pngs instead turn into dozens of separate files - not a image
strip at all.

So what gives :?
What determines when images are combined and when they are not ?

For reference, I use
<set-property name="ClientBundle.enableInlining" value="false" /
>
in my gwt.xml to stop data urls being formed.

Thanks for any pointers,
-Thomas

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

Re: Why does Google search place GWT 1.5 documentation at the top of the list?

Replace 1.5 with the version you want (if refactoring has taken place you get a HTTP 404 tough) and then hit the small "Frames" link in the top center.

But why do you need that? First gwt-user.jar contains source files so you should have JavaDoc for GWT classes right in your IDE. If not then you have probably gwt-servlet.jar on classpath as well. Simply remove it or make sure that gwt-user.jar is before gwt-servlet.jar in your classpath.

Also you have the full GWT SDK installed via Eclipse that can be found in Eclipse/plugins/com.google.gwt.eclipse.sdkbundle_<version>. It contains the full JavaDoc of the GWT version you use.

-- J.


Am Samstag, 29. Dezember 2012 11:59:37 UTC+1 schrieb Toon...@gmail.com:
I did a Google search for "gwt menubar" (without the quotes) and the top hit was:


The second hit was 2.0 documentation.

What is the easiest way to get to the most recent GWT documentation of a class?

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

Re: how to create columns with common header in data grid.

Have a look at http://showcase3.jlabanca-testing.appspot.com/#!CwCustomDataGrid and see the source (maybe some classe have been renamed, but you got the point).

On Thursday, December 27, 2012 12:14:27 PM UTC+1, shray rawat wrote:



===============================
see the attached files for this question.
I AM HAVING A,B,C AS MAIN HEADERS AND D,E,F,G AS THE SUB HEADERS UNDER C.

how can i create these columns in data grid

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

Re: Vertical align elements in FlowPanel?

OK then I'll go for VerticalPanel. 

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

Re: why some of the Checked RPC Exception fields arrive as nulls?

Your "fooModel" is a private member and nothing ever sets its value. The constructor takes a FooModel, but doesn't use it.

Paul

On 24/12/12 03:57, vitaliy.se@gmail.com wrote:
> Hello,
>
> I have a checked exception FooModelValidationException which is declared in interface of an RPC service ValidationService
> FooModelValidationException is thrown if a server side validation fails.
>
> The Exception contains two fields:
> FooModel fooModel;
> HashSet<ConstraintViolation<FooModel>> violations = new HashSet<ConstraintViolation<FooModel>>();
>
> When the exception arrives to client fooModel is ALWAYS null, despite the fact that the object was not null when the exception was thrown on server.
> violations is not null, but ConstraintViolation(s) inside has null instead of FooModel object in getRootBean, getLeafBean() properties(again both are not null when i send them from server), but getPropertyPath() is NOT null
>
> No exceptions or warnings in a server log.
>
> The question, why fields of checked RPC exception are replaced with nulls?!
>
> I attach FooModel declaration as whell as ValidationService interface decoration here.
>
> Thanks in advance,
> Vitaliy
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gdc3TMP8Df8J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

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