Generic way to acess a entityProxy properties

2016-03-04 Thread Fernando Castro
Good night. As i have a dozen entities in my system, and pretty much the same layout for their display, i'm trying to create a generic panel, wich could receive any entityProxy and a set of parameters, those parameters would be the path of the attribute i'm trying to display. My ideas was to, f

Re: jsinterop

2016-03-04 Thread Eric Nissan
I don't know if this is the best way, but I got it to work by making my own implementation of jsArray. I changed the generic definition from public class JsArray extends JavaScriptObject { to public class JsArray extends JavaScriptObject which worked with my jsinterop interface. the prob

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Alain Ekambi
RequestBuilder will only work if the request is on the same domain. otherwise use a servlet to feth the HTML and send it back to the client. On 4 March 2016 at 16:19, Alberto Mancini wrote: > > Hi, > you can use RequestBuilder > > > http://www.gwtproject.org/doc/latest/DevGuideServerCommunicatio

Re: Device Type

2016-03-04 Thread Boris Brudnoy
For an app I'm working on I adapted form factor discovery from GWT's own MobileWebApp example. See here: https://gist.github.com/bbrudnoy/f98cff44572d26913f11. I'm sure more UA string variations could be added to conditional detection, but it's a start. To use, introduce the code as FormFactor.gwt

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Alberto Mancini
Hi, you can use RequestBuilder http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideHttpRequests A. On Fri, Mar 4, 2016 at 3:30 PM Davide Micheletti wrote: > i need to get it in GWT so i can comunicate with other GWT app. > > 2016-03-04 15:29 GMT+01:00 Davide Michele

Re: Regarding RpcService,HybridServiceServlet and ClientOracle

2016-03-04 Thread Thomas Broyer
On Thursday, March 3, 2016 at 6:07:23 PM UTC+1, MANTU KUMAR wrote: > > Hi Thomas, > > I want to ask one thing that ClientOracle is in deRPC and deRPC has been > removed from 2.7 then instead of ClientOracle what is using in GWT 2.7 and > What is the use of ClientOracle?. and in my existing ap

Re: jsinterop

2016-03-04 Thread Ümit Seren
AFAIK you can't serialize an array directly. You have to put it into a wrapper object. On Fri, Mar 4, 2016 at 2:18 PM Eric Nissan wrote: > I tried that also, but > > Data[] thing = JsonUtils.safeEval(response.getText()).cast(); > > does not compile as Data[] is not a JavaScriptObject > > > > > O

Re: Compiling only what is needed to run?

2016-03-04 Thread Jens
GWT compiler does dead code removal automatically when doing a production compile. In SuperDevMode no optimizations are done though because compilation time in SuperDevMode should be as fast as possible. Take a look at http://gwtcreate.com/2013/videos/#compiler-deep-dive -- J. -- You received

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
i need to get it in GWT so i can comunicate with other GWT app. 2016-03-04 15:29 GMT+01:00 Davide Micheletti : > i need to get the HTML of the page where there is the link for the > download. And i need to get it in GWT. > > i need the equivalent of PHP code > $html = file_get_contents('www.examp

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
i need to get the HTML of the page where there is the link for the download. And i need to get it in GWT. i need the equivalent of PHP code $html = file_get_contents('www.example.com'); 2016-03-04 15:18 GMT+01:00 Alain Ekambi : > Ok but I m having a hard time understanding the relation with you

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Alain Ekambi
Ok but I m having a hard time understanding the relation with your original question or with GWT at all. On 4 Mar 2016 15:13, "Davide Micheletti" wrote: > not exactly, i mean download the files when i need it. > i run the app and it downloads the files. > There are many directory with many files,

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
not exactly, i mean download the files when i need it. i run the app and it downloads the files. There are many directory with many files, i need to download the last files created/modified. 2016-03-04 15:05 GMT+01:00 Alain Ekambi : > You mean download the file everytime is created on the server

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Alain Ekambi
You mean download the file everytime is created on the server ? On 4 March 2016 at 14:05, Davide Micheletti wrote: > I've an ever open VPN and a webserver generates some CSV files. > What i need to do is download the file automaticaly. > > 2016-03-04 13:57 GMT+01:00 Alain Ekambi : > >> Can you e

Compiling only what is needed to run?

2016-03-04 Thread Bruno Salmon
Hello, I would like to know if it's possible to tell the compiler to not compile all sources provided but only the classes and methods that are actually used. I already used another java to javascript transpiler that has a per-method dependency analyser from the initial entry point, that deter

Re: Do changes to UI.XML files require a build?

2016-03-04 Thread Alberto Mancini
Hi, ui.xml (aka UiBinder files) files are processed at compile time and are not even part of the compiled application so you should recompile. A. On Fri, Mar 4, 2016 at 2:21 PM Matthew McLarty wrote: > I was wondering, if I just make text changes to a ui.xml files can I > deploy them without

Re: Do changes to UI.XML files require a build?

2016-03-04 Thread Matthew McLarty
Thank you! That is exactly what I needed to know :) On Friday, March 4, 2016 at 8:48:26 AM UTC-5, Jens wrote: > > These xml files are used to generate Java code which then gets compiled to > Javascript and that Javascript is what you deploy. So if you change the xml > you need to rebuild your ap

Re: Do changes to UI.XML files require a build?

2016-03-04 Thread Jens
These xml files are used to generate Java code which then gets compiled to Javascript and that Javascript is what you deploy. So if you change the xml you need to rebuild your app. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubsc

Do changes to UI.XML files require a build?

2016-03-04 Thread Matthew McLarty
I was wondering, if I just make text changes to a ui.xml files can I deploy them without rebuilding the application? -- 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 t

Re: jsinterop

2016-03-04 Thread Eric Nissan
I tried that also, but Data[] thing = JsonUtils.safeEval(response.getText()).cast(); does not compile as Data[] is not a JavaScriptObject On Friday, March 4, 2016 at 2:02:34 AM UTC-5, Ümit Seren wrote: > > I think you you have to use a normal array: Data[] > > Eric Nissan > schrieb am Fr., 4

Re: Add as a frd

2016-03-04 Thread Marteijn Nouwens
Thanks, Is there a wrapper. But it is what we need. But iw would like to see it a part of gwt in the future :-) That would be best. Will look into this. Op vrijdag 4 maart 2016 11:23:53 UTC+1 schreef Frank: > > https://github.com/kaimallea/isMobile -- You received this message because you are

Re: Device Type

2016-03-04 Thread Marteijn Nouwens
No. That could be an option. But surely we are hardly the first :-) Op vrijdag 4 maart 2016 08:32:38 UTC+1 schreef Kirill Prazdnikov: > > Do you know how to do that in JS ? > > On Friday, March 4, 2016 at 9:27:58 AM UTC+3, Marteijn Nouwens wrote: >> >> Hello, >> >> I have a question. >> >> Curren

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
I've an ever open VPN and a webserver generates some CSV files. What i need to do is download the file automaticaly. 2016-03-04 13:57 GMT+01:00 Alain Ekambi : > Can you elaborate on what you are trying to do ? > > One way could be to do it through ajax. senf the url of the page to the > server h

Re: How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Alain Ekambi
Can you elaborate on what you are trying to do ? One way could be to do it through ajax. senf the url of the page to the server have a servlet read the page send the result back to your client. On 4 March 2016 at 13:28, Davide Micheletti wrote: > Hi all, > i'm using GWT 2.6 and i need to get

How do I get the HTML code of a web page in GWT?

2016-03-04 Thread Davide Micheletti
Hi all, i'm using GWT 2.6 and i need to get the HTML code of a web page. How can i do this? Thanks in advance. Best regards Davide -- 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,

Re: Add as a frd

2016-03-04 Thread Frank
https://github.com/kaimallea/isMobile -- 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 group, send e

Add as a frd

2016-03-04 Thread k.balaji k.bala
Sir I want chat with u On Mar 4, 2016 11:58 AM, "Marteijn Nouwens" wrote: > Hello, > > I have a question. > > Currently In all projects we are using mgwt to do device type detection. > So we can find out if we the application is loaded on a phone, table or > desktop. > > But mgwt is a bit of over