Saturday, May 31, 2014

Connecting a DataGrid to a JSON source

I'm looking through the examples and tutorials for DataGrid and, frankly, it's a mess.  I want to display JSON data that is being updated from the server.  The whole TextColumn mechanism is a lot of overhead that is difficult to abstract away.

Is there any alternative that provides similar functionality but is easier to use and that integrates well with the rest of GWT?

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

Re: blank page and mystic error in IE8

How can I enable stack traces? I did not find anything useful about it.
 
https://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Emulated_Stack_Data
https://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Controls

If you want to handle the exception in Java you should use GWT.setUncaughtExceptionHandler().

-- J.

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

Re: Development Mode will not be supported in Firefox 27+

Hello,
I created this guide (http://openbpm.wordpress.com/2014/05/31/getting-gwt-plugin-to-work-on-firefox-on-ubuntu-14-04/) to get multiple versions of firefox running locally in order to be able to have an older version with GWT working while still use the latest firefox version for everything else. And added the link to the bug hopefully it will help to get some traction in it.
Thanks!

On Thursday, April 17, 2014 1:58:30 PM UTC-3, Brian Slesinsky wrote:
For the direction of an open source project, people who volunteer to do actual coding are more important than marketing efforts by people who only want to be users. The intersection of GWT developers and Firefox browser developers seems to be the empty set, so we have very limited influence.

This is a challenging time and migration can be painful, but this decision fundamentally isn't up to us. We need to move forward. I think a more promising direction for people who want to improve GWT on Firefox would be to investigate problems with the Firefox debugger and contribute patches that make it practical to use.

- Brian

On Wed, Apr 16, 2014 at 6:10 PM, Mario Jauvin <mar...@gmail.com> wrote:
People, this has been going on since beginning of February with no action on the part of Mozilla.  I have create a new mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=996947 which is about the fact that GWT developper does not work in Firefox any longer.  I have proposed a workaround solution that I think is reasonable for Mozilla and the GWT developper community.  The only way we will get some traction on this is if every developper interested in having GWT developper working on Firefox (and I would think there are probably several hundreds if not thousands) should then create a bugzilla Mozilla account and vote on this bug (please remember to click change my vote to record your vote).  You can also add yourself on the CC list to get updated.  I am sure that if Mozilla gets a few hundred votes they will come up with something to get GWT developper plugin working again on Firefox.  Please forward this text to all the people who you think will be interested in voting.  Lets get the word out it can have a exponential effect.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=996947

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/QSEjbhhHB4g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

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

Re: blank page and mystic error in IE8

Hi,

I keep getting this error:

Well, I compiled in detailed mode, but the line number 81806813 doesn't exist in my js (which I believe is app.nocache.js). It only has lines up to 449.

Looking into compilation-mapping.txt I found the lines:

D190EA9ABCE5DD9641B4AFC30AB58CCE.cache.js
user.agent ie9

But the referenced file contains only 59 lines.

How can I enable stack traces? I did not find anything useful about it.

I always use <!doctype html>.

> The error you have posted doesn't contain any information that can help other people to guess the problem. Without more information you are on your own.

I know and this is getting worse, since it only seems to affect IE9. I'll try to get more information.

Magnus



On Friday, May 30, 2014 7:24:11 PM UTC+2, Jens wrote:
When compiled in pretty or detailed mode you could look at the mentioned line and character in your js file. Alternatively you could try to enable emulated stack traces in GWT. Maybe you get more information then. 

Also make sure your have a <!DOCTYPE html> in your html page so you are not in quirks mode.

The error you have posted doesn't contain any information that can help other people to guess the problem. Without more information you are on your own.

-- J.

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

refresh problem

Hi,

I have application in GWT that show different kind of data or action according to client choice.
In one of the page there is list jobs and when client choose a job he get the current info of the job.
The data is taken from database.


Is there a way that the server will notify the client when there is new data ?
Is it possible that only the relevant client will get this event ?

Is there a way to tell GWT to refresh only the table every period of time ?

Thanks

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

Re: useManifestOnlyJar and too-long command lines on Windows

This is more a Maven issue than a GWT one, you should try https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users next time.

On Saturday, May 31, 2014 5:57:37 AM UTC+2, Kay Pac wrote:
I have been getting errors when running 'mvn package'. They appeared when I changed the configuration for maven-surefire-plugin. I set useManifestOnlyJar to true, which is the default value for the plugin. The value was being set to false. I copied the POM XML directly from the output of webAppCreator run with the -maven switch. I don't fully understand the POM XML so I have never ediit so I've never really edited it.  A quick google search told me that 'useManifestOnlyJar' might be the culprit. However, now that I have set this to true, which again is the default for this plugin, I get a strange error (obviously I am inheriting com.google.gwt.user.User):

[ERROR] Unable to find type 'java.lang.Object'
   [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')

I am looking for a solution to this "command line too long" problem, if someone can help. Setting useManifestOnlyJar to true in the maven-surefire-plugin configuration produces the above error. I suppose I could try to trim the classpath but I have no real concept of how to do that, besides perhaps moving my sources around.

The problem is that GWTTestCase won't work with useManifestOnlyJar, but as you experience it can also lead to command-line too long.
As a workaround, try running your GWT tests with the gwt-maven-plugin then; see http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html

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

Re: How to fire an event when Cookies has just expired in GWT?

I found a solution
 
Timer showLoginPanelTimer = new Timer() {            public void run() {                  getView().getLoginPanel().setVisible(true);                getView().getSuccessfulLoginPanel().setVisible(false);                getView().getEmailBox().setText("");                getView().getPasswordBox().setText("");                Utility.removeUserInfoCookies();            }       };          showLoginPanelTimer.schedule(Utility.COOKIE_TIMEOUT);

On Saturday, May 31, 2014 3:20:14 PM UTC+10, Tom wrote:

Ok, here is the requirement.

I want to build a system look like this:

- Header: have a PleaseLoginPanel and SuccessfulLoginPanel  - Content Page just contains content & communicate with header via EventBuss  - HeaderPresenter is the parent presenter & ContentPresenter is nested inside the Header presenter.  

Let say when user opens this url "mydomain#content" they will see a page that has header contaning PleaseLoginPanel on top & a content part (beneath the header) contaning some textarea and button for user to input data and submit to DB .

To be able to access the widget in content page the user need to login, after logged in, the PleaseLoginPanel will be invisible and the SuccessfulLoginPanel will be visible. User now can play with widgets in content part.

Let say Session & Cookies will last 1 hour, after the session cookies expired the user can not submit the content data.

Let say user spent a lot of efforts to prepare data & about to submit but the session expired so he can't submit. At that time, in the header the SuccessfulLoginPanel still stay there. So the user can lose all his content he prepared before. You may say, he can open a new page & login & copy the data from the old page (the page that has session expired & does not have PleaseLoginPanel), but that still cost him a lot of effort to copy over.

So I want that, when the Cookes has just expired it will fire an Event to the Header & ask the header to show the PleaseLoginPanel

How can we do that in GWT or GWTP?

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

Friday, May 30, 2014

Strange behavior of Chrome 35.0.1916 on Windows 7 when add/remove style of HTMLPanel

Hi,
I have exactly the same problem and I don't find a solution to fix that !

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

How to fire an event when Cookies has just expired in GWT?

Ok, here is the requirement.

I want to build a system look like this:

- Header: have a PleaseLoginPanel and SuccessfulLoginPanel  - Content Page just contains content & communicate with header via EventBuss  - HeaderPresenter is the parent presenter & ContentPresenter is nested inside the Header presenter.  

Let say when user opens this url "mydomain#content" they will see a page that has header contaning PleaseLoginPanel on top & a content part (beneath the header) contaning some textarea and button for user to input data and submit to DB .

To be able to access the widget in content page the user need to login, after logged in, the PleaseLoginPanel will be invisible and the SuccessfulLoginPanel will be visible. User now can play with widgets in content part.

Let say Session & Cookies will last 1 hour, after the session cookies expired the user can not submit the content data.

Let say user spent a lot of efforts to prepare data & about to submit but the session expired so he can't submit. At that time, in the header the SuccessfulLoginPanel still stay there. So the user can lose all his content he prepared before. You may say, he can open a new page & login & copy the data from the old page (the page that has session expired & does not have PleaseLoginPanel), but that still cost him a lot of effort to copy over.

So I want that, when the Cookes has just expired it will fire an Event to the Header & ask the header to show the PleaseLoginPanel

How can we do that in GWT or GWTP?

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

useManifestOnlyJar and too-long command lines on Windows

I have been getting errors when running 'mvn package'. They appeared when I changed the configuration for maven-surefire-plugin. I set useManifestOnlyJar to true, which is the default value for the plugin. The value was being set to false. I copied the POM XML directly from the output of webAppCreator run with the -maven switch. I don't fully understand the POM XML so I have never ediit so I've never really edited it.  A quick google search told me that 'useManifestOnlyJar' might be the culprit. However, now that I have set this to true, which again is the default for this plugin, I get a strange error (obviously I am inheriting com.google.gwt.user.User):

[ERROR] Unable to find type 'java.lang.Object'
   [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')

I am looking for a solution to this "command line too long" problem, if someone can help. Setting useManifestOnlyJar to true in the maven-surefire-plugin configuration produces the above error. I suppose I could try to trim the classpath but I have no real concept of how to do that, besides perhaps moving my sources around.


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

Re: GWT 2.7.0 Release Date



On Friday, May 30, 2014 10:33:36 AM UTC+2, Jens wrote:
How do I get a zip package from the Sonatype OSS Snapshot?

By building GWT from source ;-) There is no zip packaging online for download...at least I am not aware of any.

On the other hand, it's only a handful of JARs, so it's easy to download them manually (or using a script)

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

Re: debugId with UiBinder not working?

Did you <inherit name="com.google.gwt.debug.Debug"/> ? (see http://stackoverflow.com/a/11847603/116472)
Do you prepend a "gwt-debug-" prefix to your IDs in your Selenium tests to match elements?

On Saturday, May 31, 2014 1:46:54 AM UTC+2, Kay Pac wrote:
Hello there!  I am trying to use selenium with my GWT app and I have noticed that it uses inappropriate css class selectors to find the widgets. I did some research into this and it seems I need to use 'debugId' attribute in my UiBinder xml template. I have added debugId attributes and have also tried using the ensureDebugId method on @UiField annotated members. Neither of these approaches have resulted in usable IDs, or any IDs, on my widget elements.

Here is my UiBinder template: https://gist.github.com/katernya/d35ea486d50ae45b6995
Here is my LoginViewImpl class https://gist.github.com/katernya/9dbf2aa23cadd73dae24
Yes my UiBinder xml is caled LoginViewImpl.ui.xml

Thanks for any help!  This is with gWT 2.6.1 and Java 1.7 on Windows (embedded jetty instance launched via cargo) with and without super dev mode enabled.

Kay

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

debugId with UiBinder not working?

You must inherit com.google.gwt.user.Debug otherwise UIObject.ensureDebugId() will be compiled out.

-- J.

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

Re: GWT 2.7.0 Release Date

When I build from source I get this error: 

BUILD FAILED

/Users/mg/Downloads/gwt2.7/trunk/build.xml:40: The following error occurred while executing this line:

/Users/mg/Downloads/gwt2.7/trunk/build.xml:27: The following error occurred while executing this line:

/Users/mg/Downloads/gwt2.7/trunk/build.xml:59: The following error occurred while executing this line:

/Users/mg/Downloads/gwt2.7/trunk/dev/build.xml:332: The following error occurred while executing this line:

/Users/mg/Downloads/gwt2.7/trunk/common.ant.xml:168: java.lang.OutOfMemoryError: Java heap space

at java.lang.String.substring(String.java:1913)

at org.apache.tools.ant.types.selectors.SelectorUtils.tokenizePathAsArray(SelectorUtils.java:576)

at org.apache.tools.ant.types.selectors.TokenizedPath.<init>(TokenizedPath.java:58)

at org.apache.tools.ant.DirectoryScanner.isIncluded(DirectoryScanner.java:1361)

at org.apache.tools.ant.types.ArchiveScanner.match(ArchiveScanner.java:260)

at org.apache.tools.ant.types.ZipScanner.fillMapsFromArchive(ZipScanner.java:90)

at org.apache.tools.ant.types.ArchiveScanner.scanme(ArchiveScanner.java:341)

at org.apache.tools.ant.types.ArchiveScanner.getIncludedDirectories(ArchiveScanner.java:189)

at org.apache.tools.ant.taskdefs.Zip.grabResources(Zip.java:1587)

at org.apache.tools.ant.taskdefs.Zip.getResourcesToAdd(Zip.java:1319)

at org.apache.tools.ant.taskdefs.Zip.getResourcesToAdd(Zip.java:1253)

at org.apache.tools.ant.taskdefs.Jar.getResourcesToAdd(Jar.java:861)

at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:640)

at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:592)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)


Total time: 21 seconds



Am Freitag, 30. Mai 2014 10:33:36 UTC+2 schrieb Jens:
How do I get a zip package from the Sonatype OSS Snapshot?

By building GWT from source ;-) There is no zip packaging online for download...at least I am not aware of any.

Maybe the nightly build can be adjusted to upload a gwt-nightly.zip to gwtproject.org in the future.

-- J.

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

debugId with UiBinder not working?

Hello there!  I am trying to use selenium with my GWT app and I have noticed that it uses inappropriate css class selectors to find the widgets. I did some research into this and it seems I need to use 'debugId' attribute in my UiBinder xml template. I have added debugId attributes and have also tried using the ensureDebugId method on @UiField annotated members. Neither of these approaches have resulted in usable IDs, or any IDs, on my widget elements.

Here is my UiBinder template: https://gist.github.com/katernya/d35ea486d50ae45b6995
Here is my LoginViewImpl class https://gist.github.com/katernya/9dbf2aa23cadd73dae24
Yes my UiBinder xml is caled LoginViewImpl.ui.xml

Thanks for any help!  This is with gWT 2.6.1 and Java 1.7 on Windows (embedded jetty instance launched via cargo) with and without super dev mode enabled.

Kay

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

Re: GWT 2.6 RC1 DevMode log4j fail?



On Friday, May 30, 2014 3:49:15 PM UTC+2, Luca Morettoni wrote:
On Tue, Feb 18, 2014 at 3:22 PM, Thomas Broyer  wrote:
> Yes.
> (the "instead of" bit depends on your project; I keep thinking that if you
> mix client-side and server-side code in the same Maven module, then you're
> doing it wrong; Maven wants you to modularize your project, and it really
> works great; see https://github.com/tbroyer/gwt-maven-archetypes for
> examples)

Hello Thomas (and list), I'm thinking to "split" my current GWT in
some "submodules" also to avoid the problem in thread (actually we
have GWT 2.5.1).
I see the example in [1], but it focus on multi-maven modules on the
"client-side", do you know if there are any other example/best
practices for client/server code splitting?

The link you just quoted above: https://github.com/tbroyer/gwt-maven-archetypes ;-)

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

Re: Allow JavaScriptObjects to define custom implementation of instanceOf?



On Friday, May 30, 2014 4:12:03 PM UTC+2, Alexander Bertram wrote:
Hi all,

I came across an old design doc on the google code site discussing overlay types along with the following todo:
  • TODO: Consider whether or not a magic boolean allowCast(JavaScriptObject o) should be supported in each overlay type definition.

I've looked through the GWT jjs compiler source and it doesn't look this or anything else is implemented; the compiler will replace any instanceof's on JSO's with a cast without any further ado. 

This would be a super useful feature for our project because we have modeled our app's data as set of interfaces that each have a simple bean implementation for the JVM and 
JSO-based implementation for translatable code. 

Polymorphism is difficult there though because it's syntically legal to use instanceof to check for a subtype in both gwt and jvm code, it will fail silently on the client because all 
overlay types can be cast to another.

We resolve this by storing our "type" property, but it would be great to be able to provide an allowCast() method so that instanceof can be used everywhere.

I'd like to implement this, for our own project if nothing else, but was wondering if there had ever been a discussion about this or a deliberate decision against a "magic" allowCast. 
(or if anyone else has thought about implementing it?)

I'm not aware of a public discussion and/or decision about this, but I believe it's deliberate now that it doesn't exist (it'll be a bit different in the new/upcoming JsInterop https://docs.google.com/document/d/1Fsf3kSztERf_pFRj2ns1_qgQUiawsGMANKWa7jev20Q/edit?usp=drive_web but not that much)

What DOM Elements (in com.google.gwt.dom) do is that they define "boolean is(JavaScriptObject)" and "XxxElement as(JavaScriptObject)" static methods.
You'll note that they don't use the JS "instanceof" operator either (for cross-browser compat' in legacy browsers; see http://blog.calyptus.eu/seb/2009/11/the-performance-of-nodename/ apparently this could now be changed)

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

Re: How to debug "TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')"?

On Friday, May 30, 2014 1:15:18 PM UTC-4, Jens wrote:
While trying to get a widget to display in a div, I'm getting this error:

[Error] TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')
G (ui.nocache.js, line 2)
onScriptLoad (ui.nocache.js, line 16)

What is the best way to figure out exactly what is going on in this case?

Looks like a Nullpointer. Maybe your div isn't available yet? In general compile with PRETTY style so the JavaScript methods have similar names as your Java code. Then you Chrome Dev Tools and stop on any uncaught exception.

But if its the RootPanel.get("ui") thing then I would guess RootPanel.get("ui") might return null. Make sure your "ui" container is in the DOM at the time your GWT app starts.

-- J.

Thanks, I'll make sure to use PRETTY.
 

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

Re: blank page and mystic error in IE8

When compiled in pretty or detailed mode you could look at the mentioned line and character in your js file. Alternatively you could try to enable emulated stack traces in GWT. Maybe you get more information then. 

Also make sure your have a <!DOCTYPE html> in your html page so you are not in quirks mode.

The error you have posted doesn't contain any information that can help other people to guess the problem. Without more information you are on your own.

-- J.

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

Re: How to debug "TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')"?

While trying to get a widget to display in a div, I'm getting this error:

[Error] TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')
G (ui.nocache.js, line 2)
onScriptLoad (ui.nocache.js, line 16)

What is the best way to figure out exactly what is going on in this case?

Looks like a Nullpointer. Maybe your div isn't available yet? In general compile with PRETTY style so the JavaScript methods have similar names as your Java code. Then you Chrome Dev Tools and stop on any uncaught exception.

But if its the RootPanel.get("ui") thing then I would guess RootPanel.get("ui") might return null. Make sure your "ui" container is in the DOM at the time your GWT app starts.

-- J.

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

Re: DockLayoutPanel displays in body, not in div

On Friday, May 30, 2014 11:13:57 AM UTC-4, Patrick May wrote:
On Friday, May 30, 2014 4:58:40 AM UTC-4, Jens wrote:
LayoutPanels are meant to be put into other LayoutPanels. RootPanel or anything you get with RootPanel.get(<id>) isn't a LayoutPanel. So if you have a DockLayoutPanel you should put it into a RootLayoutPanel. 

RootLayoutPanel doesn't do any magic though. It just puts a LayoutPanel into the <body> using RootPanel.get().add(layoutPanel) that fills the entire space. When you now call RootLayoutPanel.get() you are getting that LayoutPanel back and thus your DockLayoutPanel would be added to the LayoutPanel. In addition RootLayoutPanel listens for window resize events and calls a special onResize() method that all LayoutPanels have and which causes them to recalculate some sizes. As this involves some overhead you should only use LayoutPanels to define your general app structure. 

In your example you should be able to see the DockLayoutPanel if your container that has the "ui" id has a fixed size and either position:absolute or position:relative applied.

-- J.

Thanks for the explanation.  My goal is to have the DockLayoutPanel in a div, because I have other elements in my page so I can't give the whole body to the DockLayoutPanel.  If I understand you correctly, the only way I can accomplish this is to set my div to have position:absolute or position:relative and to fix it's size.  I don't know the size to fix -- I'd just like it to take whatever it needs.  Is there any way to accomplish that?

Thanks again,

Patrick

I just tried wrapping the DockLayoutPanel in a VerticalPanel and it displays in the div just fine.

Not knowing why this works makes me nervous, though.
 

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

Re: ListBox how set selected item by value

One of the first things I ever put into my personal utility classes module was an extension of ListBox to have setValue(String) and getValue(String) methods.

Or, you could use ValueListBox instead of ListBox, but it's kind of a pain to work with due to the need for a Renderer.  (But, it does allow the use of object values, not just Strings).

On Thursday, May 29, 2014 5:58:48 AM UTC-4, Ivano Vingiani wrote:
Create a Widget that extends (or wrap) ListBox that implements setValue(value)

On Wednesday, May 20, 2009 8:32:22 AM UTC+1, zeroonea wrote:
when i load data to form to edit, how i set selected item in listbox
by value

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

How to debug "TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')"?

While trying to get a widget to display in a div, I'm getting this error:

[Error] TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')
G (ui.nocache.js, line 2)
onScriptLoad (ui.nocache.js, line 16)

What is the best way to figure out exactly what is going on in this case?

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

Re: blank page and mystic error in IE8

No ideas?

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

Re: DockLayoutPanel displays in body, not in div

On Friday, May 30, 2014 4:58:40 AM UTC-4, Jens wrote:
LayoutPanels are meant to be put into other LayoutPanels. RootPanel or anything you get with RootPanel.get(<id>) isn't a LayoutPanel. So if you have a DockLayoutPanel you should put it into a RootLayoutPanel. 

RootLayoutPanel doesn't do any magic though. It just puts a LayoutPanel into the <body> using RootPanel.get().add(layoutPanel) that fills the entire space. When you now call RootLayoutPanel.get() you are getting that LayoutPanel back and thus your DockLayoutPanel would be added to the LayoutPanel. In addition RootLayoutPanel listens for window resize events and calls a special onResize() method that all LayoutPanels have and which causes them to recalculate some sizes. As this involves some overhead you should only use LayoutPanels to define your general app structure. 

In your example you should be able to see the DockLayoutPanel if your container that has the "ui" id has a fixed size and either position:absolute or position:relative applied.

-- J.

Thanks for the explanation.  My goal is to have the DockLayoutPanel in a div, because I have other elements in my page so I can't give the whole body to the DockLayoutPanel.  If I understand you correctly, the only way I can accomplish this is to set my div to have position:absolute or position:relative and to fix it's size.  I don't know the size to fix -- I'd just like it to take whatever it needs.  Is there any way to accomplish that?

Thanks again,

Patrick
 

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

Allow JavaScriptObjects to define custom implementation of instanceOf?

Hi all,

I came across an old design doc on the google code site discussing overlay types along with the following todo:
  • TODO: Consider whether or not a magic boolean allowCast(JavaScriptObject o) should be supported in each overlay type definition.

I've looked through the GWT jjs compiler source and it doesn't look this or anything else is implemented; the compiler will replace any instanceof's on JSO's with a cast without any further ado. 

This would be a super useful feature for our project because we have modeled our app's data as set of interfaces that each have a simple bean implementation for the JVM and 
JSO-based implementation for translatable code. 

Polymorphism is difficult there though because it's syntically legal to use instanceof to check for a subtype in both gwt and jvm code, it will fail silently on the client because all 
overlay types can be cast to another.

We resolve this by storing our "type" property, but it would be great to be able to provide an allowCast() method so that instanceof can be used everywhere.

I'd like to implement this, for our own project if nothing else, but was wondering if there had ever been a discussion about this or a deliberate decision against a "magic" allowCast. 
(or if anyone else has thought about implementing it?)

Best,
Alex

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

Re: GWT 2.6 RC1 DevMode log4j fail?

On Tue, Feb 18, 2014 at 3:22 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
> Yes.
> (the "instead of" bit depends on your project; I keep thinking that if you
> mix client-side and server-side code in the same Maven module, then you're
> doing it wrong; Maven wants you to modularize your project, and it really
> works great; see https://github.com/tbroyer/gwt-maven-archetypes for
> examples)

Hello Thomas (and list), I'm thinking to "split" my current GWT in
some "submodules" also to avoid the problem in thread (actually we
have GWT 2.5.1).
I see the example in [1], but it focus on multi-maven modules on the
"client-side", do you know if there are any other example/best
practices for client/server code splitting?


[1]http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

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

Re: GWT 2.6 RC1 DevMode log4j fail?

Anybody got solution for this?

I still face trouble on this. I used GWT2.6.1.

BTW, why should be include log4j to this project? can i run it in devmode without log4j file?

--
Sarjith
          


On Wed, Mar 26, 2014 at 8:09 PM, Sven Reinhardt <sven.reinhardt06@gmail.com> wrote:
Is there any progress on this? I solved the problem regarding your hints. But I don't really get why this actually happens. Seems like Jetty is causing my log4j configuration to bootstrap twice.



Am Dienstag, 18. Februar 2014 16:33:42 UTC+1 schrieb Dennis R.:
Ok Thanks for your help then I will keep an eye on this.

Am Dienstag, 18. Februar 2014 16:18:58 UTC+1 schrieb Thomas Broyer:


On Tuesday, February 18, 2014 3:36:00 PM UTC+1, Dennis R. wrote:
Ok I understand why splitting client and server side might be a good idea and we will check if this is applicable for us and worth the time investment.

Except the Warnings/Errors in DevMode do we have to fear anything else when we keep up our approach with GWT 2.6?

Hopefully not (fingers crossed)
 
Why does this only come up with 2.6 and not with 2.5.1?

Jetty was updated from 6 to 8, and it incurred changes in the way classes are loaded.

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

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

Running GWT compile manually from command line

Hello,
in one of my projects I'm running GWT compilation from command line as part of my build process, I have several configurations and modules to limit the number of permutations during development. But when I build as draft with pretty style I only gen one permutation with pretty output the others are obfuscated. I'm running on multiple cores so I guess the main process outputs the pretty permutation while others produce obfuscated ones. Does anyone know how to solve this? I'm afraid other parameters of the compilation might not get passed to other workers as well. I'm using GET build from git master.

Command line:
java 
  -Xmx1024m
  -cp "proj\src;dependency\src;proj\war\WEB-INF\classes;dependency\war\WEB-INF\classes;GWT\gwt-dev.jar;GWT\gwt-user.jar;GWT\validation-api-1.0.0.GA.jar;GWT\validation-api-1.0.0.GA-sources.jar;lib\junit-4.9b2.jar
  com.google.gwt.dev.Compiler
  -localWorkers 8
  -logLevel INFO
  -draftCompile
  -ea
  -style PRETTY
  -gen gen-dir
  -war "proj\war"
  my.Module_draft

Regards

Honza R.

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

Re: DockLayoutPanel displays in body, not in div

LayoutPanels are meant to be put into other LayoutPanels. RootPanel or anything you get with RootPanel.get(<id>) isn't a LayoutPanel. So if you have a DockLayoutPanel you should put it into a RootLayoutPanel. 

RootLayoutPanel doesn't do any magic though. It just puts a LayoutPanel into the <body> using RootPanel.get().add(layoutPanel) that fills the entire space. When you now call RootLayoutPanel.get() you are getting that LayoutPanel back and thus your DockLayoutPanel would be added to the LayoutPanel. In addition RootLayoutPanel listens for window resize events and calls a special onResize() method that all LayoutPanels have and which causes them to recalculate some sizes. As this involves some overhead you should only use LayoutPanels to define your general app structure. 

In your example you should be able to see the DockLayoutPanel if your container that has the "ui" id has a fixed size and either position:absolute or position:relative applied.

-- J.

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

Re: GWT 2.7.0 Release Date

How do I get a zip package from the Sonatype OSS Snapshot?

By building GWT from source ;-) There is no zip packaging online for download...at least I am not aware of any.

Maybe the nightly build can be adjusted to upload a gwt-nightly.zip to gwtproject.org in the future.

-- J.

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

Thursday, May 29, 2014

Re: GWT 2.7.0 Release Date

How do I get a zip package from the Sonatype OSS Snapshot?




Am Donnerstag, 29. Mai 2014 02:38:49 UTC+2 schrieb Jens:
Great is JSInterop still included?

Oh forgot about the new SNAPSHOT build. Its a nightly build from source so yes it has initial JSInterop support included.

-- J.

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

reducing size of gwt-servlet.jar ?

When/how will the size of the gwt-servlet.jar be reduced ? (I remember the dev team was busy splitting up the jars).

Currently the jar is 9MB, which is a lot for a simple Hello world app with gwt rpc. 
It's not a good selling point if I try to confince the client to use GWt through a small hello world prototype.. :(

In 2011 somebody in the forum asked about it when we were at 4MB still. 

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

DockLayoutPanel displays in body, not in div

I have a GWT UI with a DockLayoutPanel as the root widget.  When I use RootLayoutPanel.get() to add it to my HTML page like this:

    RootLayoutPanel.get().addStyleName("root-layout-panel");
    RootLayoutPanel.get().add(dockLayoutPanel_);

it displays fine.

When I try to put it in a div like this:

    RootPanel.get("ui").add(dockLayoutPanel_);

Nothing displays and I get this error in Safari:  TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')

Interestingly, I have another app that has a VerticalPanel as its root and I'm able to add that to a div without a problem.  Is there something odd about DocLayoutPanel that I'm missing?

Thanks,

Patrick

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

Re: CSS not loading

Hi Zied, Thad,

Thanks to both of you for your help. In fact the browser's cache was not in cause: I'm not using the built-in HTML server but my own one (in order to be able to request a PHP+MySQL server, cf. SOP topics) and for that I have to copy manually the files of the "war" directory to the root directory of my server... It took a while to find this, but now it works!

Thanks a lot,

Mathieu



2014-05-29 23:10 GMT+02:00 Thad Humphries <thad.humphries@gmail.com>:
I suspect you much clear your browser cache. Your CSS is in separate file and loaded from your HTML, so GWT is never touching it. 

I've had a similar issue when I make changes to a JavaScript file loaded from my HTML by a <script> element. I must clear cache to see the results.


On Thursday, May 29, 2014 2:31:52 PM UTC-4, m...@gmail.com wrote:
Dear all,

I'm new to GWT and trying to apply changes in the CSS file, but they won't ever charge although I have declared it in the HTML headers. CSS is in the same "war" directory as the main HTML file.

I understand that this method is deprecated, but should I use the Client Bundle (rather complicated) even for my first steps with GWT?!

Your help would be appreciated,

Thanks,

Mathieu

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/ubIIPw7c2_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

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

Re: CSS not loading

I suspect you much clear your browser cache. Your CSS is in separate file and loaded from your HTML, so GWT is never touching it. 

I've had a similar issue when I make changes to a JavaScript file loaded from my HTML by a <script> element. I must clear cache to see the results.

On Thursday, May 29, 2014 2:31:52 PM UTC-4, m...@gmail.com wrote:
Dear all,

I'm new to GWT and trying to apply changes in the CSS file, but they won't ever charge although I have declared it in the HTML headers. CSS is in the same "war" directory as the main HTML file.

I understand that this method is deprecated, but should I use the Client Bundle (rather complicated) even for my first steps with GWT?!

Your help would be appreciated,

Thanks,

Mathieu

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

Re: GWT for a quiz application

Alexander, 

I would recommend the GWT tutorial, you'll find how to start with the easiest scenario. The tutorial is enough for you to develop your entire app. You have to jump in and start, dont ask too much questions

Le mardi 27 mai 2014 15:13:49 UTC+1, Alexander Fischer a écrit :
Hey guys,

I want to build a web application which is a quiz for different users. The questions and answers are available in XML-files and the users in a MySQL database. Can I use the GWT for all this? Should I also use other frameworks to build this application?

Thank you for your answers :)

Greets,
Alex

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

Re: CSS not loading

Hi Mathieu,

You're not obliged to use ClientBundle, this is only an optimization to remove unused styles and shorten the css names. 

I suggest you do a right click on your page (show page source) to check why your css is not loaded. (There is no complicated procedure to include a css, you must have an easy to find error). 

Also it's better for "beginner questions" to ask them on StackOverflow, people tend to be more present there and answer you faster. Also notice that if your question is too easy to solve, people tend not to answer, so try to fight a little with your problem, google it, and only if still not found ask. And don't stop searching for an answer when you ask, you might loose time because no one answers

Best regards,
Zied

Le jeudi 29 mai 2014 19:31:52 UTC+1, m...@gmail.com a écrit :
Dear all,

I'm new to GWT and trying to apply changes in the CSS file, but they won't ever charge although I have declared it in the HTML headers. CSS is in the same "war" directory as the main HTML file.

I understand that this method is deprecated, but should I use the Client Bundle (rather complicated) even for my first steps with GWT?!

Your help would be appreciated,

Thanks,

Mathieu

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

CSS not loading

Dear all,

I'm new to GWT and trying to apply changes in the CSS file, but they won't ever charge although I have declared it in the HTML headers. CSS is in the same "war" directory as the main HTML file.

I understand that this method is deprecated, but should I use the Client Bundle (rather complicated) even for my first steps with GWT?!

Your help would be appreciated,

Thanks,

Mathieu

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

Re: extend UiBinder engine

Just to answer to what I did, it took me sometime to end up with the wanted feature for diverse GWT restrictions 

Here's the version I'm using on my product
https://github.com/ziedHamdi/UiBinderAuth/tree/master/AuthUiBinder

And here's how I use it
https://github.com/ziedHamdi/UiBinderAutho

Le dimanche 18 mai 2014 22:01:33 UTC+1, Zied Hamdi OneView a écrit :
Hi all,

I have a special need in authorization where I want to control if UiBinder will create or not a widget (I could use visibility visible={roles.admin} in my widgets but I want a smarter solution).

I'd like to use the info in ui:field at template parsing and decide whether the field should be created or not: a central singleton will say if yes or no, that element should be created.

So is there an extension point where I can centrally intercept the internal widget factory?

If the idea is not clear, I'd like to extend a GWT class where I could have a method somehow like

 public  void createWidget( Class widgetClass, Widget parent, String uiField ) 

then rebind the default factory interface with mine in the module definition.


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

Re: GWT for a quiz application

First, you should choose a framework like Grails, Spring MVC, etc. 

Currently, your question is to broad to answer.


Am Mittwoch, 28. Mai 2014 17:00:49 UTC+2 schrieb Alexander Fischer:
Are there tutorials to programm with java on the server side? and for the RPCs?

Am Mittwoch, 28. Mai 2014 11:01:04 UTC+2 schrieb Jens:
Can u explain with which technologies i can handle the MySQL db and the serverside programming?

Whatever you like. GWT does not force you to use specific server side technologies. It is totally fine to use perl, php, ruby, node.js, whatever on your server. However if you use a Java backend you can easily share Java classes between client/server and you can use things like GWT-RPC / GWT RequestFactory for client <-> server communication out of the box.

-- J.

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

Re: Access OutputStream of HttpServlet within GWT Client

What's different between them?  Are you using the return value of getText() from the Response given to your RequestCallback?  If the HTML looks slightly different after you put it into the DOM when you examine it, that's just the browser reformatting your HTML code.  If it's completely different there may be something with the way the response is given (headers and such) or there's something wrong with your request.

On Wednesday, May 28, 2014 9:42:22 AM UTC-5, Ben wrote:
Hi,

we have the following scenario:

We want to show an html output from our reporting framework within the gwt client.
We have access to this generated html content via an HttpServlet that writes its output to
HttpServletResponse.getOutputStream()

We already had a look at RequestBuilder. But the response does not look like the one from the HttpServlet.

Is there any chance to access data from a HttpServlet response in GWT?

Regards
Ben

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

Re: ListBox how set selected item by value

Create a Widget that extends (or wrap) ListBox that implements setValue(value)

On Wednesday, May 20, 2009 8:32:22 AM UTC+1, zeroonea wrote:
when i load data to form to edit, how i set selected item in listbox
by value

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

Strange behavior of Chrome 35.0.1916 on Windows 7 when add/remove style of HTMLPanel

Hi,

I ran into very strange behaviour, which happens only in chrome 35/win 7. I use ListBox to change color of HTMLPanel with CssResource. When we change the value in the ListBox, the color of the panel should be changed but nothing happens, when we check the style via "Inspect Element"  the style was changed but visually not applied. Everything works fine until update to version Chrome 35.

Is anyone encounter the same problem? Any Ideas why when we change the style using addStyle()/removeStyle() the new style does not take affect?


I have no problems with Firefox


I use UIBibder.


public class SelectorImpl extends Composite {




 
@UiField

   
ListBox listBox;


 
@UiField

 
HTMLPanel panel;


 
interface Style extends CssResource {

   
String red();


   
String green();

 
}


 
@UiField

 
Style style;


 
private Map<Integer, String> colorsMap = new HashMap<Integer, String>();

 
private String currentColor;


 
public EmployeeAttendanceSchedulerViewImpl() {

       
...


      colorsMap
.put(1, style.red()) ;

      colorsMap
.put(2, style.green());


      currentColor
= style.red();

      panel
.addStyleName(currentColor);

 
}



 
@UiHandler("listBox")

 
public void onListSelected(ChangeEvent event){

    panel
.removeStyleName(currentColor);

    currentColor
=  colorsMap.get(listBox.getSelectedIndex());

    panel
.addStyleName(currentColor);

 
}

}


In ui.xml


<ui:style type="com.SelectorImpl.Style">



    .red {

      background-color: #FF0000;

    }


    .green {

       background-color: #00FF00;

    }


    .panelBoxStyle {

      box-sizing: border-box;

      border: solid 1px;

      width: 40px;

      height: 19px;

    }


 
</ui:style>


 
<g:HTMLPanel>

   
<g:ListBox ui:field="listBox"/>

   
<g:HTMLPanel ui:field="panel" styleName="{style.panelBoxStyle}"/>

 
</g:HTMLPanel>



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