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, from the proxy, read the value based on a path, like the 
"with" from the request context. 

Something like this:
Person has a Address
Address has a street_name

String name = person.getAttribute("address.streetName");

Has someone ever did something similar?

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 problem I see is that although the documentation says an interface 
market JsType will be treated as a JavaScriptObject when casting, that does 
not help for using it in place of a generic.

I don't know what will blow up from this, but it seems to work for me.  If 
there is a better way to do this, I am all ears :)

Thanks,
Eric

On Friday, March 4, 2016 at 9:36:44 AM UTC-5, Ümit Seren wrote:
>
> 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
>>
>>
>>
>>
>> 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. März 2016, 04:35:
>>>
>> Thanks a ton!  that worked.
 followup, how do I set a List?
 I tried to use JsArray but that requires a JavaScriptObject, which Data 
 is not.

 Thanks,
 Eric

 On Wednesday, March 2, 2016 at 9:36:43 AM UTC-5, Ümit Seren wrote:
>
> This works: 
>
> {'somecollection':['String1','String2'],'somestring':'text'}
>
> @JsType(isNative = true,namespace = JsPackage.GLOBAL,name="Object")public 
> interface Data {
> @JsProperty
> String[] getSomecollection();
> @JsProperty
> String getSomestring();
> }
>
> Data data = JsonUtils.safeEval(json).cast();
>
> On Tuesday, March 1, 2016 at 9:03:03 PM UTC+1, Eric Nissan wrote:
>
> sorry if this has been answered, I just started using jsinterop in gwt 
>> 2.8.  What is the recommended way populate data into a jsinterop 
>> javascript 
>> object from my server.  Assuming I have Json, do we still use 
>> OverlayTypes? 
>>  or is there a better way to do it?
>>
>> Always appreciative,
>> Eric
>>
> ​
>
 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "GWT Users" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-web-toolkit/nmBAOX4vcSo/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-web-toolkit+unsubscr...@googlegroups.com.

>>> To post to this group, send email to google-we...@googlegroups.com.
>>>
>>>
 Visit this group at https://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 a topic in the 
>> Google Groups "GWT Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/nmBAOX4vcSo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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/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 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 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, 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 ?
>>
>> 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 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 <
 d.michelett...@gmail.com> wrote:

> 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,
> send an email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



 --

 Alain Ekambi

 Co-Founder

 Ahomé Innovation Technologies

 http://www.ahome-it.com/ 

 --
 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 email to
 google-web-toolkit@googlegroups.com.
 Visit this group at
 https://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 "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 email to
>>> google-web-toolkit@googlegroups.com.
>>> Visit this group at
>>> https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Alain Ekambi
>>
>> Co-Founder
>>
>> Ahomé Innovation Technologies
>>
>> http://www.ahome-it.com/ 
>>
>> --
>> 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 email to
>> google-web-toolkit@googlegroups.com.
>> Visit this group at
>> https://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 "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-web-toolkit+unsubscr...@googlegroups.com.

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.xml and
import in your app's module XML file. You might also wish to remove
console.log statements introduced for troubleshooting.

On Fri, Mar 4, 2016 at 8:13 AM Marteijn Nouwens 
wrote:

> 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.
>>>
>>> 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 overkill just for this. Anybody any good reliable
>>> method on how to do this otherwise.?
>>>
>>> Marteijn Nouwens
>>>
>> --
> 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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
*BORIS BRUDNOY*
Web Application Developer, Java/GWT Enthusiast (LinkedIn
)

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 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, 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 ?
>
> 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 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 <
>>> d.michelett...@gmail.com> wrote:
>>>
 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,
 send an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-web-toolkit@googlegroups.com.
 Visit this group at
 https://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>>
>>> Alain Ekambi
>>>
>>> Co-Founder
>>>
>>> Ahomé Innovation Technologies
>>>
>>> http://www.ahome-it.com/ 
>>>
>>> --
>>> 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 email to
>>> google-web-toolkit@googlegroups.com.
>>> Visit this group at
>>> https://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 "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 email to
>> google-web-toolkit@googlegroups.com.
>> Visit this group at
>> https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ 
>
> --
> 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 email to
> google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to
 google-web-toolkit@googlegroups.com.
 Visit this group at https://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 "GWT Users" group.
>>> To 

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 application which is 
> GWT 2.0.3, i have used two method processCall(ClientOracle 
> clientOracle,String payload,OutputStream stream) and processCall(String 
> payload) so, what is use of two methods in GWT 2.0.3?
>

Impossible to answer without knowing what you're doing with ClientOracle. A 
typical application would not need to directly touch a ClientOracle, which 
means your application added some customizations; but not knowing what 
those customizations are, it's impossible to tell whether they're available 
in "standard" GWT-RPC.
 

> On Thu, Feb 25, 2016 at 4:08 PM, Thomas Broyer  wrote:
>
>>
>>
>> On Thursday, February 25, 2016 at 8:19:16 AM UTC+1, mant...@gmail.com 
>> wrote:
>>>
>>> Hi Thomas,
>>>
>>> I am new in GWT and I have to migrate version GWT 2.0.3 to GWT 2.7  
>>> but In GWT 2.0.3 , GWT-RPC is there and in  GWT 2.7,GWT-RPC is not there. 
>>> So,How can I resolve the RPC Related issue in GWT 2.7. When I migrated 
>>> older version(2.0.3) to Higher version(2.7) then I am getting error 
>>> like RpcService,HybridServiceServlet and ClientOracle. In my existing 
>>> Project RPC has used that's why I am migrating GWT 2.7 then These errors 
>>> are coming like   
>>> RpcService,HybridServiceServlet and ClientOracle. So,If RPC is not there 
>>> in GWT 2.7 then what is present in GWT 2.7 which resolve the Rpc related 
>>> issue and also confirm me that RPC is available in GWT 2.7 or not.
>>>
>>
>> Please re-read my previous mail, and possibly go read the documentation 
>> at http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html
>> RpcService, HybridServiceServlet and ClientOracle were part of 
>> "Direct-Eval RPC" (aka deRPC), which was experimental and discouraged for 
>> use in production.
>> deRPC has been removed in 2.7, but GWT-RPC is still there. deRPC and 
>> GWT-RPC are (were) two different things; deRPC aimed at being a "better 
>> GWT-RPC" and replacing it, but it failed, so GWT-RPC is still there and 
>> deRPC has been retired.
>>
>> Migrating (back) to GWT-RPC should hopefully be as easy as switching 
>> RpcService and HybridServiceServlet (and/or RpcServlet) to RemoteService 
>> and RemoteServiceServlet respectively; and remove the > name="com.google.rpc.RPC"/> from your gwt.xml.
>> You're talking about ClientOracle though, which means you possibly had 
>> some customization on top of the "out-of-the-box" deRPC, so migration 
>> *might* not be that easy (depending on the kind of customization you have).
>> Last, but not least, there must have been a reason to use the 
>> experimental deRPC over standard GWT-RPC, so maybe switching (back) to 
>> GWT-RPC might not be the solution for your case, but it's impossible to say 
>> without more information. If you don't know the reasons for using deRPC 
>> either, I'd suggest, given how easy it should be, to move (back) to GWT-RPC 
>> and see if that works. If it doesn't work, then I'm afraid you'll have to 
>> put quite some work in either "making it work", or migrating to something 
>> else entirely (e.g. JSON-RPC, or JSON-based RESTful services).
>>  
>>
>>>
>>>
>>>
>>> On Tuesday, February 23, 2016 at 4:27:16 PM UTC+5:30, Thomas Broyer 
>>> wrote:
>>>


 On Tuesday, February 23, 2016 at 11:47:25 AM UTC+1, mant...@gmail.com 
 wrote:
>
> Hi All,
>
> I am upgrading GWT 2.0.3 to GWT 2.7 then I am facing a lot of problem 
> like RpcService , HybridServiceServlet and ClientOracle error. can 
> someone 
> tell  me RpcService, HybridServiceServlet  and  ClientOracle is not 
> available then what is available instead of that in GWT 2.7?
>

 com.google.gwt.rpc (aka Direct-Eval RPC, or deRPC) was experimental 
 (the javadoc used to state “EXPERIMENTAL and subject to change. Do not use 
 this in production code.”), and didn't fulfill its expectations, so it was 
 removed in 2.7.0-RC1.
 You have to migrate to com.google.gwt.user.*.rpc ("standard" GWT-RPC), 
 or if that was a problem (that made you use deRPC in the first place), 
 then 
 migrate to RequestFactory or an entirely different protocol (JSON-RPC, or 
 some JSON-based RESTful protocol for example).

>>> -- 
>> 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 email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this mess

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
>
>
>
>
> 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. März 2016, 04:35:
>>
> Thanks a ton!  that worked.
>>> followup, how do I set a List?
>>> I tried to use JsArray but that requires a JavaScriptObject, which Data
>>> is not.
>>>
>>> Thanks,
>>> Eric
>>>
>>> On Wednesday, March 2, 2016 at 9:36:43 AM UTC-5, Ümit Seren wrote:

 This works:

 {'somecollection':['String1','String2'],'somestring':'text'}

 @JsType(isNative = true,namespace = JsPackage.GLOBAL,name="Object")public 
 interface Data {
 @JsProperty
 String[] getSomecollection();
 @JsProperty
 String getSomestring();
 }

 Data data = JsonUtils.safeEval(json).cast();

 On Tuesday, March 1, 2016 at 9:03:03 PM UTC+1, Eric Nissan wrote:

 sorry if this has been answered, I just started using jsinterop in gwt
> 2.8.  What is the recommended way populate data into a jsinterop 
> javascript
> object from my server.  Assuming I have Json, do we still use 
> OverlayTypes?
>  or is there a better way to do it?
>
> Always appreciative,
> Eric
>
 ​

>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "GWT Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/google-web-toolkit/nmBAOX4vcSo/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>>
>> To post to this group, send email to google-we...@googlegroups.com.
>>
>>
>>> Visit this group at https://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 a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/nmBAOX4vcSo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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.example.com');
>
>
> 2016-03-04 15:18 GMT+01:00 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, 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 ?

 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 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 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,
>>> send an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to
>>> google-web-toolkit@googlegroups.com.
>>> Visit this group at
>>> https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Alain Ekambi
>>
>> Co-Founder
>>
>> Ahomé Innovation Technologies
>>
>> http://www.ahome-it.com/ 
>>
>> --
>> 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 email to
>> google-web-toolkit@googlegroups.com.
>> Visit this group at
>> https://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 "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 email to
> google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit
> .
> For more options, visit https://groups.google.com/d/optout.
>



 --

 Alain Ekambi

 Co-Founder

 Ahomé Innovation Technologies

 http://www.ahome-it.com/ 

 --
 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 email to
 google-web-toolkit@googlegroups.com.
 Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at https://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
>> "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 email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You 

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 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, 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 ?
>>>
>>> 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 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 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,
>> send an email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to
>> google-web-toolkit@googlegroups.com.
>> Visit this group at
>> https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ 
>
> --
> 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 email to
> google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to
 google-web-toolkit@googlegroups.com.
 Visit this group at https://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>>
>>> Alain Ekambi
>>>
>>> Co-Founder
>>>
>>> Ahomé Innovation Technologies
>>>
>>> http://www.ahome-it.com/ 
>>>
>>> --
>>> 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 email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at https://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
>> "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 email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://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
> "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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-too

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, 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 ?
>>
>> 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 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 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, send
> an email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit
> .
> For more options, visit https://groups.google.com/d/optout.
>



 --

 Alain Ekambi

 Co-Founder

 Ahomé Innovation Technologies

 http://www.ahome-it.com/ 

 --
 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 email to
 google-web-toolkit@googlegroups.com.
 Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Alain Ekambi
>>
>> Co-Founder
>>
>> Ahomé Innovation Technologies
>>
>> http://www.ahome-it.com/ 
>>
>> --
>> 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 email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://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
> "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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 ?
>
> 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 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 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, send
 an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-web-toolkit@googlegroups.com.
 Visit this group at https://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>>
>>> Alain Ekambi
>>>
>>> Co-Founder
>>>
>>> Ahomé Innovation Technologies
>>>
>>> http://www.ahome-it.com/ 
>>>
>>> --
>>> 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 email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at https://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
>> "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 email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ 
>
> --
> 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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 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, send
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Alain Ekambi
>>
>> Co-Founder
>>
>> Ahomé Innovation Technologies
>>
>> http://www.ahome-it.com/ 
>>
>> --
>> 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 email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://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
> "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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/ 

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 determines the set 
of methods that are really needed to run the application.
It worked and could drastically reduce the translated code size especially 
when using third-party java libraries (it's not rare we actually use just 
some parts of them). 

It seems GWT doesn't have this feature. Is it right or did I miss a 
compiler option?

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 app.
>
> -- J.
>

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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. März 
> 2016, 04:35:
>
>> Thanks a ton!  that worked.
>> followup, how do I set a List?
>> I tried to use JsArray but that requires a JavaScriptObject, which Data 
>> is not.
>>
>> Thanks,
>> Eric
>>
>> On Wednesday, March 2, 2016 at 9:36:43 AM UTC-5, Ümit Seren wrote:
>>>
>>> This works: 
>>>
>>> {'somecollection':['String1','String2'],'somestring':'text'}
>>>
>>> @JsType(isNative = true,namespace = JsPackage.GLOBAL,name="Object")public 
>>> interface Data {
>>> @JsProperty
>>> String[] getSomecollection();
>>> @JsProperty
>>> String getSomestring();
>>> }
>>>
>>> Data data = JsonUtils.safeEval(json).cast();
>>>
>>> On Tuesday, March 1, 2016 at 9:03:03 PM UTC+1, Eric Nissan wrote:
>>>
>>> sorry if this has been answered, I just started using jsinterop in gwt 
 2.8.  What is the recommended way populate data into a jsinterop 
 javascript 
 object from my server.  Assuming I have Json, do we still use 
 OverlayTypes? 
  or is there a better way to do it?

 Always appreciative,
 Eric

>>> ​
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "GWT Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/nmBAOX4vcSo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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. 
>>
>> 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 overkill just for this. Anybody any good reliable 
>> method on how to do this otherwise.?
>>
>> Marteijn Nouwens
>>
>

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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 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, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Alain Ekambi
>
> Co-Founder
>
> Ahomé Innovation Technologies
>
> http://www.ahome-it.com/ 
>
> --
> 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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/ 

-- 
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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 overkill just for this. Anybody any good reliable
> method on how to do this otherwise.?
>
> Marteijn Nouwens
>
> --
> 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 email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.