Re: Differences between DevMode and Production mode related to trim()

2014-01-14 Thread Thomas Broyer
On Monday, January 13, 2014 8:38:49 PM UTC+1, Jens wrote: It does look like there is a real difference between Java's trim() and the following JavaScript: 1. var r1 = this.replace(/^(\s*)/, ''); 2. var r2 = r1.replace(/\s*$/, ''); A JavaScript whitespace character can be: -

Best practice for rich contnent (pictures and text) presentation in (m)gwt

2014-01-14 Thread marian lux
I developed an mgwt client and want to present rich content there. Today I have a HTML file in my src directory and on client-side the HTML-file is loaded via TextResource ClientBundle. This solution is resource saving and the resource is offline available (HTML5 manifest enabled) but has some

How to implement client plugins?

2014-01-14 Thread Jochen Wiedmann
Hi, in what follows, I assume a basic understanding of Eclipse plugins and extension points, as described on http://wiki.eclipse.org/FAQ_What_are_extensions_and_extension_points%3F I am currently building a UI, which will hopefully run on several customers sites. Naturally, the customers

Re: How can I set correct size of widgets in a SplitLayoutPanel ?

2014-01-14 Thread Jostein
Thank you Jens. Again, your advice solved my problem. Jostein kl. 14:06:29 UTC+1 mandag 13. januar 2014 skrev Jens følgende: Thats a basic CSS problem. Your FlowPanel f1 has a height (which one is not important, can be 100% or 400px) and that height is fully occupied by the DataGrid because

Re: Displaying validation errors ?

2014-01-14 Thread kibu Kuhn
@Nicolas thanks for your detailed response. I will see over it. kibu Am Montag, 13. Januar 2014 08:59:02 UTC+1 schrieb Nicolas Weeger: Hello. when validating user input, each ui control that holds a faulty value should signal this by displaying a red border or something like this.

Clickable labels inside a FocusPanel

2014-01-14 Thread hriess
I programmatically add some Label widgets to a FlowPanel that is inside a FocusPanel. I've registered a ClickHandler with the FocusPanel and with the labels. The task is to start an action if a label is clicked and another (default) action if outside the labels somewhere in the FocusPanel is

Passing hashmap as parameter from client to server by rpc

2014-01-14 Thread Leung
Hi, I need to pass a hashmap from client to server by rpc. I get the following exception. unexpected exception: java.lang.UnsatisfiedLinkError: com.google.gwt.user.client.Cookies.loadCookies(Ljava/util/HashMap;)V I have tried to put the hashmapString, String in a serializable class as a

Re: Clickable labels inside a FocusPanel

2014-01-14 Thread Jens
In your Label's ClickHandler you have to call event.stopPropagation() so that the click event will not bubble up to the parent FocusPanel. Search for JavaScript event bubbling and JavaScript event capture for more information. -- J. -- You received this message because you are subscribed to

Re: Passing hashmap as parameter from client to server by rpc

2014-01-14 Thread Jens
HashMaps can be send using RPC without problems. What does not work is using GWT's Cookies class on server side, which is probably what happens. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop

Re: gwt app freezes on android

2014-01-14 Thread Timo
I think I found the problem. After some debugging I think the problem is timer.scheduleRepeating(milliseconds) . It will run the timer only once after the device wakes up from sleep, but it takes a lot of time to catch up or something. I replaced timer.scheduleRepeating with

Re: Clickable labels inside a FocusPanel

2014-01-14 Thread hriess
Oh so simple - thanks a lot! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send

Re: How to implement client plugins?

2014-01-14 Thread Jens
Runtime plugins: You need to publish a stable JavaScript API so your customers can write plugins against that API. gwt-exporter might come in handy to export such a JavaScript API. Compile time plugins: GWT can't do reflection so you need to write a generator to generate your

Re: How can I set correct size of widgets in a SplitLayoutPanel ?

2014-01-14 Thread Jostein
Thank you for your answer May I ask what you would recommend to achieve the same as I want? I need in each of the child panels (West, North and center) to have a header containing title, buttons to add data etc. and a table below to view the data. What kind of panels and widgets would you

GWT 2.6.0-rc1 Super Dev Mode on Windows 8 and Eclipse

2014-01-14 Thread Sebastian Metzger
Getting this error message, when starting Super Dev Mode with GWT 2.6.0-rc1: Exception in thread main java.lang.VerifyError: class com.google.gwt.dev.codeserver.Options$NoPrecompileFlag overrides final method getPurpose.()Ljava/lang/String; at java.lang.ClassLoader.defineClass1(Native Method)

Re: GWT 2.6.0-rc1 Super Dev Mode on Windows 8 and Eclipse

2014-01-14 Thread Thomas Broyer
You're probably using the gwt-codeserver.jar from GWT 2.5.1 against a gwt-dev.jar from GWT 2.6.0-rc1. That was one of the change between them: https://gwt.googlesource.com/gwt/+/3e58fbfe033b5040d56bfba0b8cad39c5faba254%5E%21/#F1 On Tuesday, January 14, 2014 2:07:21 PM UTC+1, Sebastian Metzger

Re: GWTBridgeImpl throws com.google.gwt.core.ext.UnableToCompleteException exception

2014-01-14 Thread Jonathon Lamon
David, In the IDE, to debug, if you are running in hosted mode on the internal jetty server using a plugin that compile the source (IE Google Plugin for Eclipse), if you make a modification while debugging, then run maven compile while still running debug, it could cause multiple compilations of

Re: How can I set correct size of widgets in a SplitLayoutPanel ?

2014-01-14 Thread Patrick Tucker
jaga was pointing out that your FlowPanel is not equipped to resize the DataGrid. If you look at DataGrid it implements RequiresResize indicating that whatever its parent Widget is must tell it when to resize itself. You could replace the FlowPanel with a LayoutPanel, DockLayoutPanel,

GPE - com.google.gdt.eclipse.core.prefs - lastWarOutDir; Any way to make this a variable?

2014-01-14 Thread Shawn Johnson
Is there a way to use or pass a variable to the Google Plugin for GWT Compile? We keep this file in source control (maybe a mistake?), and I'd like to remove the user specific value for lastWarOutDir. -- You received this message because you are subscribed to the Google Groups Google Web

Re: Passing hashmap as parameter from client to server by rpc

2014-01-14 Thread Leung
Do hashmap relate to Cookies? On Tuesday, January 14, 2014 3:56 AM, Jens jens.nehlme...@gmail.com wrote: HashMaps can be send using RPC without problems. What does not work is using GWT's Cookies class on server side, which is probably what happens. -- J. -- You received this message

Re: Differences between DevMode and Production mode related to trim()

2014-01-14 Thread Michael Prentice
Thanks a lot Thomas. I've submitted this issue here: https://code.google.com/p/google-web-toolkit/issues/detail?id=8534 On Tuesday, January 14, 2014 4:06:28 AM UTC-5, Thomas Broyer wrote: Maybe worth a bug entry. +1 The emulation should read: var r1 = this.replace(/^[\0- ]*/, '');

[gwt-contrib] Run single GWTTestSuite on trunk

2014-01-14 Thread Danilo Reinert
How could I run a single TestSuite (or module) of gwt/trunk using ant? -- D. Reinert -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop

[gwt-contrib] Re: Run single GWTTestSuite on trunk

2014-01-14 Thread Thomas Broyer
On Tuesday, January 14, 2014 4:06:48 PM UTC+1, Danilo Reinert wrote: How could I run a single TestSuite (or module) of gwt/trunk using ant? From memory, pass -Dgwt.junit.testcase.includes=**/MyTest.class to Ant (you might have to run it from the user/ subfolder). That said, running tests

[gwt-contrib] IntelliJ IDEA set-up

2014-01-14 Thread Danilo Reinert
Has anyone set-up gwt project in IDEA 12+ ? -- D. Reinert -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it,