Re: JsInterop receipts for simple JSNI code ?

2016-05-25 Thread Paul Stockley
Eval is really slow. I would use JSNI. Eventually I think J2CL will have a way to execute javascript. Just isolate the JSNI in a helper class so it can easily be replaced. On Wednesday, May 25, 2016 at 3:35:07 PM UTC-4, Hristo Stoyanov wrote: > > Actually, it might be possible to do it with JsIn

Re: JsInterop receipts for simple JSNI code ?

2016-05-25 Thread Hristo Stoyanov
Actually, it might be possible to do it with JsInterop only: class Globals { @JsMethod(namespace=GLOBAL) public native Object eval(String expresion); @JsOverlay public native boolean isVariableDefined(String varName){ return Boolean.TRUE.equal

Re: JsInterop receipts for simple JSNI code ?

2016-05-25 Thread Hristo Stoyanov
Jens, Thanks, so apparently JsInterop cannot be a complete replacement of JSNI? I was hoping to be able to wrap in @JsType(native = true) something like Object.keys(window) On Tuesday, May 24, 2016 at

Re: GWT 2.8b1: "runAsyncCallback7 is not a function" - compiler error with GWT.runAsync(...)?

2016-05-25 Thread cloud450
I did add a custom linker in order to get HTTPS sort of working for SDM debugging. A very simple class derived from CrossSiteIframeLinker and only overriding getJsDevModeRedirectHookPermitted(...). No custom linker was used previously. Feels like a regression to me... I guess I'd need to check

Re: window.showModelDialog replacement

2016-05-25 Thread JonL
There is a new html5 dialog element that is being implemented in various browsers and a pollyfill that will give you what you need, cross posted from my reply on the GWT google+ community: This is the new html5 way: http://www.w3schools.com/jsref/dom_obj_dialog.asp http://www.w3schools.com/ta

Re: How to sort a list of objects from the shared folder on server-side?

2016-05-25 Thread Magnus
On Thursday, May 19, 2016 at 7:12:59 PM UTC+2, Jens wrote: > > Don't implement Comparable in your shared class but instead use > Collections.sort(List, Comparator) on your server. The comparator can then > only live on the server. > This works fine! Thank you! Magnus -- You received this m

Re: How to set Default value in Text Box?

2016-05-25 Thread Thomas Broyer
On Wednesday, May 25, 2016 at 3:31:01 PM UTC+2, Manjunath K wrote: > > How to set Default value in Text Box using GWT? > Assuming you mean setting a value that the box will reset to when used within a FormPanel and clicking on a ResetButton (I won't dive in here whether this is a good idea or

Re: window.showModelDialog replacement

2016-05-25 Thread Paul Stockley
What we did in our project to migrate these kind of modal windows on IE was as follows:- 1) Create a GWT modal dialog with an iframe in it and point this to the url for the window. 2) Add some code to the existing page to talk to the parent GWT window to close the dialog when the user clicks th

Re: window.showModelDialog replacement

2016-05-25 Thread David
How do I simulate IE window.showModalDialog to present a user with a widget (dialog) that blocks main thread till the user closes that widget, method return? On Wednesday, May 25, 2016 at 3:12:04 PM UTC+8, Thomas Broyer wrote: > > You won't find any equivalent. The platform has moved over to an

Re: Eclipse EE Servers

2016-05-25 Thread Mark Mark
Does the solution allows to "add gwt project's *.war to EAR" as a part of j2ee app including using jndi etc? On Friday, April 17, 2009 at 11:20:18 AM UTC-5, Jamie wrote: > > Got the new GWT 1.6, and the Eclipse plugin. Awesome. I like the new > deployment layout. > > One thing that I think is

Re: How to set Default value in Text Box?

2016-05-25 Thread Lothar Kimmeringer
Am 25.05.2016 um 15:15 schrieb Manjunath K: How to set Default value in Text Box using GWT? setText? Or what exactly do you mean with setting a default? Personally I do that on the server-side, i.e. if the textbox value is empty I use the default value. Cheers, Lothar -- You received this

How to set Default value in Text Box?

2016-05-25 Thread Manjunath K
How to set Default value in Text Box using GWT? -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 gro

Re: window.showModelDialog replacement

2016-05-25 Thread Thomas Broyer
You won't find any equivalent. The platform has moved over to an "all async" model so you'll have to rewrite this code to work asynchronously (including handling other events while waiting for the "return value" to be passed into a callback/event/whatever. This isn't really a GWT question thoug