Wednesday, July 31, 2013

Help With Editable CellView Cell

I've got a CellView containing several columns one of which is editable. However, am unable to enter text into the said cell because it results in an error in the GWT console.
I have pasted the code and the resultant error here http://ur1.ca/eufjo . Please how do I fix it.

--
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/groups/opt_out.
 
 

Video player for IE8

I'm looking for a video player I can use for IE8. I have solutions for the other platforms we support, but IE8 has been problematic, the Flash player we use doesn't want to load.

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/groups/opt_out.
 
 

Re: detect sop violation from gwt rpc client

Ooops I am sorry too :)

I mixed RequestFactory with GWT-RPC. For GWT-RPC you need to create a custom RpcRequestBuilder and call ServiceDefTarget.setRpcRequestBuilder().

In your custom RpcRequestBuilder you probably want to override RpcRequestBuilder.doSetCallback() like:

protected void doSetCallback(final RequestBuilder rb, final RequestCallback callback) {
  rb.setCallback(new RequestCallback() {
     void onResponseReceived(Request request, Response response) {
        //add custom logic
        callback.onResponseReceived(request, response);
     }
     void onError(Request request, Throwable throwable) {
        //add custom logic
        callback.onError(request, throwable);
     }
  });
}


-- 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/groups/opt_out.
 
 

my GWT application doesn't open in chrome or firefox.

Hi,

My GWT application doesn't work with the chrome or firefox. It works only in IE explorer. I was thinking if it has to do anything with the meta tag definition in the html
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

this is how I defined it currently. Please let me know. 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/groups/opt_out.
 
 

Re: detect sop violation from gwt rpc client

Sorry I'm so very new at this--I'm not sure I quite understand: once I have my CustomRequestTransport, how do I make my GWT-RPC services use it by casting them into ServiceDefTarget?

I'm using gwt-2.5.1, and when I look here, I don't see how ServiceDefTarget has something that takes a RequestTransport:

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html

On Tuesday, July 30, 2013 7:25:20 AM UTC-6, Jens wrote:
You can extend DefaultRequestTransport to gain access to the raw server response. You then have to set your custom RequestTransport into your GWT-RPC services by casting them into ServiceDefTarget.

You should check if all browsers supported by your app set the location header in case of a SOP violation. Maybe some don't. Maybe some other browsers also sets the location header in cases of network outage. Your solution may not be 100% reliable. 

-- 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/groups/opt_out.
 
 

Re: Clarification needed on SimpleRemoteLogHandler



On Wednesday, July 31, 2013 8:56:50 PM UTC+2, QC wrote:
Hi everyone,

Recently I came across a rare incident where a client kept retrying on a URL that looks related to SimpleRemoteLogHandler.  But after I scrutinize the code, I believe it has nothing to do with the retry behavior. However, the doc below for this handler is a bit ambiguous (especially ''nor does it disable when the RPC calls fail repeatedly") --- making one of my teammate feel it does retry upon failures. 

/**
 * A very simple handler which sends messages to the server via GWT RPC to be
 * logged. Note that this logger does not do any intelligent batching of RPC's,
 * nor does it disable when the RPC calls fail repeatedly.
 */


It does not; look at the code. 

--
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/groups/opt_out.
 
 

Clarification needed on SimpleRemoteLogHandler

Hi everyone,

Recently I came across a rare incident where a client kept retrying on a URL that looks related to SimpleRemoteLogHandler.  But after I scrutinize the code, I believe it has nothing to do with the retry behavior. However, the doc below for this handler is a bit ambiguous (especially ''nor does it disable when the RPC calls fail repeatedly") --- making one of my teammate feel it does retry upon failures. 

/**
 * A very simple handler which sends messages to the server via GWT RPC to be
 * logged. Note that this logger does not do any intelligent batching of RPC's,
 * nor does it disable when the RPC calls fail repeatedly.
 */

--
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/groups/opt_out.
 
 

Re: Window.addWindowClosingHandler

Works nicely for us. What version of GWT? What browers? Does nothing happen at all?

On Wednesday, July 31, 2013 12:09:45 PM UTC+1, al1975e wrote:
Window.addWindowClosingHandler only works well in googlechrome.In other browsers may not work at all.Help to resolve this issue, please.

--
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/groups/opt_out.
 
 

ERROR: to help protect your security internet explorer blocked this site from downloading

In my application I will be downloading a csv file. When the run the GWT application in dev mode and copy the url to IE it shows this message. I was told to add the dev mode url to the trusted sites but in the trusted sites it won't accept http portals. How can I change the dev mode URL to https? if else is there anyway i can overcome this issue. And one more thing is my URL won't work on google chrome or firefox. It only works in IE. Is there any reason?

--
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/groups/opt_out.
 
 

Re: GWT website moved to gwtproject.org

I'll put in 100GBP (don't tell the wife)

--
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/groups/opt_out.
 
 

Re: GWT website moved to gwtproject.org

Perhaps we could collect a small bounty (probably even 1k would be enough?), and start a competition for the community to submit designs with the best design being chosen by some judges.



On Wed, Jul 31, 2013 at 4:18 PM, salk31 <salk31@gmail.com> wrote:
They have typesafe behind them so presumably some cash to throw at it?

I'd be willing to put up a bit of cash but presumably would be 5k+GBP  to get it done the commercial way?


On Wednesday, July 31, 2013 2:45:57 PM UTC+1, Alex opn wrote:
I thought the same when I saw Scala's new page for the first time yesterday ;-)

Am Dienstag, 30. Juli 2013 17:59:24 UTC+2 schrieb RyanZA:
Something like this would be great:
 http://scala-lang.org/


On Saturday, July 27, 2013 8:03:07 PM UTC+2, salk31 wrote:
Anyone like this one?

http://html5up.net//uploads/demos/minimaxing/

Might need to replace the jquery code ;)


--
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/-YmZuKDLdS4/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/groups/opt_out.
 
 

--
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/groups/opt_out.
 
 

Re: GWT website moved to gwtproject.org

They have typesafe behind them so presumably some cash to throw at it?

I'd be willing to put up a bit of cash but presumably would be 5k+GBP  to get it done the commercial way?

On Wednesday, July 31, 2013 2:45:57 PM UTC+1, Alex opn wrote:
I thought the same when I saw Scala's new page for the first time yesterday ;-)

Am Dienstag, 30. Juli 2013 17:59:24 UTC+2 schrieb RyanZA:
Something like this would be great:
 http://scala-lang.org/


On Saturday, July 27, 2013 8:03:07 PM UTC+2, salk31 wrote:
Anyone like this one?

http://html5up.net//uploads/demos/minimaxing/

Might need to replace the jquery code ;)


--
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/groups/opt_out.
 
 

Re: GWT website moved to gwtproject.org

I thought the same when I saw Scala's new page for the first time yesterday ;-)

Am Dienstag, 30. Juli 2013 17:59:24 UTC+2 schrieb RyanZA:
Something like this would be great:
 http://scala-lang.org/


On Saturday, July 27, 2013 8:03:07 PM UTC+2, salk31 wrote:
Anyone like this one?

http://html5up.net//uploads/demos/minimaxing/

Might need to replace the jquery code ;)


--
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/groups/opt_out.
 
 

Re: Is there a way to share the service layer between GWT and Android

We used flamenco for that. Works ok with hessian protocol.We however moved the native android a to more gwt components loaded over the web. Betters in maintaince.

Op woensdag 31 juli 2013 02:38:34 UTC+2 schreef nestorjb het volgende:
Hi

Is there a way to create the service layer so I can share it with an
GWT and Android Application?

Regatds,

Néstor

--
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/groups/opt_out.
 
 

Re: Is there a way to share the service layer between GWT and Android

All the examples I've read say:

"This is experimental, unsupported code"



On Wed, Jul 31, 2013 at 4:19 AM, Thomas Broyer <t.broyer@gmail.com> wrote:
>
> On Wednesday, July 31, 2013 2:38:34 AM UTC+2, nestorjb wrote:
>>
>> Hi
>>
>> Is there a way to create the service layer so I can share it with an
>> GWT and Android Application?
>
>
> Use RequestFactory? GWT.create() in GWT, RequestFactorySource on Android.
>
> --
> 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/groups/opt_out.
>
>

--
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/groups/opt_out.

Window.addWindowClosingHandler

Window.addWindowClosingHandler only works well in googlechrome.In other browsers may not work at all.Help to resolve this issue, please.

--
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/groups/opt_out.
 
 

Re: Is there a way to share the service layer between GWT and Android


On Wednesday, July 31, 2013 2:38:34 AM UTC+2, nestorjb wrote:
Hi

Is there a way to create the service layer so I can share it with an
GWT and Android Application?

Use RequestFactory? GWT.create() in GWT, RequestFactorySource on Android. 

--
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/groups/opt_out.
 
 

Tuesday, July 30, 2013

请问gwt的学习应该是怎样的步骤呢

我现在是大一的学生,只学习了Java和C,仅仅是书本知识,如果想学gwt的话,应该怎样安排呢,我看到gwt不仅仅涉及了Java,请各位长辈给点意见,十分感谢。

--
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/groups/opt_out.
 
 

Is there a way to share the service layer between GWT and Android

Hi

Is there a way to create the service layer so I can share it with an
GWT and Android Application?

Regatds,

Néstor

--
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/groups/opt_out.

Re: my application doesn't compile

Were you ever able to resolve this, I'm having the same issue? 

--
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/groups/opt_out.
 
 

Re: remove handler of event bus

 same instance again, I mean new object of same class not a singleton instance.

On Tuesday, 30 July 2013 10:47:37 UTC-7, Bhumika Thaker wrote:

Hi All,

My problem is with remove event handler. as I got solution for Dialog box.


but it does not work for case where one instance already open and try to open same instance again.
 Just example: A below scroll panel has handler initialized. it used for document preview.
  class TestScroll extends ScrollPanel
  {
     public TestScroll(){
      
     }
     implemented onload()
      {
         // eventBus.addHandler code here.
       //here some preview related code
      }
     
         unload() method
        {
           //eventBus remove handler code
        }
  }

This preview contain some links which open different preview but with same code and different data structure,
Now  The problem is like  onUnload ( which contains code of remove handler) event does not load ,  because other panel opened. that does not mean previous panel unload.
So in that case, twice event handler registered. when one event fired then other event also fired. 

Due to that, Preview 1 data shows properly, but after that Preview2 opened and when I close it, I find Preview1=Preview2. 

so how can I handle such situation?

As per every event fired as no of instance created. but I have to check some unique document id with if condition in event itself.
is there any ways to stop unrelated event firing?

Thanks,
Bhumika

--
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/groups/opt_out.
 
 

remove handler of event bus


Hi All,

My problem is with remove event handler. as I got solution for Dialog box.


but it does not work for case where one instance already open and try to open same instance again.
 Just example: A below scroll panel has handler initialized. it used for document preview.
  class TestScroll extends ScrollPanel
  {
     public TestScroll(){
      
     }
     implemented onload()
      {
         // eventBus.addHandler code here.
       //here some preview related code
      }
     
         unload() method
        {
           //eventBus remove handler code
        }
  }

This preview contain some links which open different preview but with same code and different data structure,
Now  The problem is like  onUnload ( which contains code of remove handler) event does not load ,  because other panel opened. that does not mean previous panel unload.
So in that case, twice event handler registered. when one event fired then other event also fired. 

Due to that, Preview 1 data shows properly, but after that Preview2 opened and when I close it, I find Preview1=Preview2. 

so how can I handle such situation?

As per every event fired as no of instance created. but I have to check some unique document id with if condition in event itself.
is there any ways to stop unrelated event firing?

Thanks,
Bhumika

--
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/groups/opt_out.
 
 

Re: GWT website moved to gwtproject.org

Something like this would be great:
 http://scala-lang.org/


On Saturday, July 27, 2013 8:03:07 PM UTC+2, salk31 wrote:
Anyone like this one?

http://html5up.net//uploads/demos/minimaxing/

Might need to replace the jquery code ;)


--
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/groups/opt_out.
 
 

Re: GWT mobile : Virtual keyboard hides focused input

Issue can be seen also on the mobile smartgwt framework on this example: http://smartgwt-mobile.smartclient.com/#Widgets/Forms/Inputs

On Monday, July 29, 2013 7:43:02 PM UTC+2, Marius Grama wrote:
If, within the mobile browser (Chrome) the user taps on an input text element in order to gain focus the virtual keyboard will appear.
When the phone is used in landscape mode, the keyboard will take a big part of the screen and will cover also the focused text box, even though the text box finds itself within a scroll panel and the user would expect that it remains displayed in the viewport (so that he sees what he is typing).

I tried the same scenario when writing by hand a simple html page (where the top container has overflow:auto) and there when the focus is made on a text box, it will be displayed in the middle of the viewport (in the case when the virtual keyboard would hide it).

Issue seems to have been reported also for mgwt framework : https://code.google.com/p/mgwt/issues/detail?id=30

If anybody has experienced the same issue and found in the meantime a solution, please share it with me.

Thanks in advance,
Marius.

--
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/groups/opt_out.
 
 

Re: detect sop violation from gwt rpc client

You can extend DefaultRequestTransport to gain access to the raw server response. You then have to set your custom RequestTransport into your GWT-RPC services by casting them into ServiceDefTarget.

You should check if all browsers supported by your app set the location header in case of a SOP violation. Maybe some don't. Maybe some other browsers also sets the location header in cases of network outage. Your solution may not be 100% reliable. 

-- 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/groups/opt_out.
 
 

Re: detect sop violation from gwt rpc client

Viewing through firebug, I see that it is indeed sop violation.

I also see that only during this error is the location header set (in the response headers).

Is there any way I can have access to the response headers? I can't see a way from the RPC onFailure().

--
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/groups/opt_out.

Re: only RPC call completes rest of my code should execute - how should I do it - very urgent please

If I understand you correctly, your app sends instructions to the server to create a CSV which you then wish to retrieve.

If the CSV is small, you could always use GWT RPC and return it as a string to your app. However if you want to return it as a file so the browser can, say, open it in a spreadsheet app, you can follow this generic description for file creation and downloading:

https://groups.google.com/d/msg/google-web-toolkit/nZsQYKTLxH0/SVVGJIusog8J

I use this technique for many sorts of files, usually directing the servlet to an IFRAME so I don't get an unwanted new tab or, worse, blow away my GWT app with a new URL.

On Monday, July 29, 2013 6:00:33 PM UTC-4, fedex wrote:
Hi everyone,

I have an interface where the user selects the values and upon clicking the download button the selected values runs in the sql query and the obtained data is written to csv file. 

I am doing an RPC call to send the user selected values from the interface to the server. And on the server side I am storing these values in the http session variable. And I am retrieving these values in the servlet class which has a funtionality to write a data to csv file. Because the values send to the server is a RPC call, my initial session value remains zero ( first download click) and it writes nothing to the csv file though i have selected values from the user. On second click of download button it writes the data of the first selected values. How can expedite the RPC call or how can I make a RPC to synchronize call ? Can someone please suggest a possible to overcome this? Thanks a lot in advance 

--
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/groups/opt_out.
 
 

Monday, July 29, 2013

Re: GWT load issues on ios 3G device

The inlined script is running, but it's failing because it needs its own source attribute, which is removed during inlining.

I just noticed you're using a different linker than me, so that may be why the baseUrl property isn't working. If your linker doesn't have a way to override the base url for the scripts, you'll have to modify the nocache script in some way or switch linkers. Maybe you could write a simple script that loads the nocache script?
You could also contact Sprint and have them whitelist your site.


On Jul 29, 2013, at 2:51 PM, Paul Mazzuca wrote:

I actually haven't used the web inspector.  This is a huge help.  So by using the web inspector, it turns out that my nocache.js is completely inlined into the html head section when using 3G via Virgin Mobile USA (Sprint), while when connecting via wifi, the nocache.js is downloaded separate, though referenced in the html head section -- and it does not work on 3G. The question is why doesn't the inline js run, or if it is running, where is it failing? 
 
… inlined js on 3G connection

<script type="text/javascript" language="javascript" style="display:none">
<!--
function myprojname(){…;
//-->
</script>

Just a few observations for others: 
- The inline javascript is surrounded by html comment tags, which I believe enables old browser compatibility
- The HTML is rendered (which makes sense since I can use the Web Inspector)
- I still do see the reference to the cache.js script which is not inline. 

Also, I am still playing with the gwt:property workaround that you mentioned.  no luck with it yet. 




On Jul 29, 2013, at 11:56 AM, David Feshbach <djfeshbach@gmail.com> wrote:

Have you tried using the web inspector? It's really useful for debugging web apps on iOS devices. There's also a way to do it with android/Chrome using adb but I don't know it off the top of my head.
Things I noticed when debugging our app that indicated the network: it worked over https but not http, the host page received was different from what the server sent. You may also be able to replicate the problem in a desktop browser by enabling tethering on your phone.
That tag looks right. I think if it's wrong it would stop working over wifi too. It's used for the script element that gets added to the DOM so it should be easy to check.

On Jul 28, 2013, at 10:51 AM, Paul Mazzuca wrote:

Well, the test iPhone is using Virgin Mobile USA which I believe piggybacks on Sprint's network so that would make sense.   The onModuleLoad method is not even being called, so I suspect the js files are no where to be found.  Just to confirm, I edited my html file to include the meta tag <meta name="gwt:property" content="baseUrl=myprojectname"> given that my project js file is typically located at
<script type="text/javascript" language="javascript" src="myprojectname/myprojectname.nocache.js">?

On Friday, July 26, 2013 2:14:04 PM UTC-7, David wrote:
We had an issue with Sprint "optimizing" the page by inlining scripts. As a result, there was no source attribute for the nocache script which prevented it from loading the other scripts (which are on a different server from the host page). We got around this by adding a "gwt:property" meta element that set the "baseUrl" property.

On Jul 26, 2013, at 1:53 PM, Paul Mazzuca wrote:

I have an IPhone 4 which I am testing my GWT app on.  In Chrome or Mobile Safari, my application will only load when connected to WIFI.  This behavior seems to be consistent, but I wanted to get a sanity check from the community to see if anyone else has experienced this?  I am using code splitting and the xsiframe linker.  My initial download size is around 100k, even with code splitting... ya I know still pretty hefty. 

My thoughts are that the cause may be related to the initial download size being too large, something weird with the xsilinker, or just something bogus that only happens with 3G.   Of note, this does not seem to occur with 4G connections. 

Any thoughts?

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


--
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/groups/opt_out.
 
 


--
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/RU2WC0R9I3g/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/groups/opt_out.
 
 


--
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/groups/opt_out.
 
 

only RPC call completes rest of my code should execute - how should I do it - very urgent please

Hi everyone,

I have an interface where the user selects the values and upon clicking the download button the selected values runs in the sql query and the obtained data is written to csv file. 

I am doing an RPC call to send the user selected values from the interface to the server. And on the server side I am storing these values in the http session variable. And I am retrieving these values in the servlet class which has a funtionality to write a data to csv file. Because the values send to the server is a RPC call, my initial session value remains zero ( first download click) and it writes nothing to the csv file though i have selected values from the user. On second click of download button it writes the data of the first selected values. How can expedite the RPC call or how can I make a RPC to synchronize call ? Can someone please suggest a possible to overcome this? Thanks a lot in advance 

--
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/groups/opt_out.
 
 

only RPC call completes rest of my code should execute - how should I do it

I am storing the values in the session by making an rpc call. So, to get the values of this first the rpc call has to omplete and there by i can get the sored values and write my own condition. I can I acheive this? What condition can I have to make sure that first RPC call completes and execute later?

--
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/groups/opt_out.
 
 

Re: GWT load issues on ios 3G device

I actually haven't used the web inspector.  This is a huge help.  So by using the web inspector, it turns out that my nocache.js is completely inlined into the html head section when using 3G via Virgin Mobile USA (Sprint), while when connecting via wifi, the nocache.js is downloaded separate, though referenced in the html head section -- and it does not work on 3G. The question is why doesn't the inline js run, or if it is running, where is it failing? 
 
… inlined js on 3G connection

<script type="text/javascript" language="javascript" style="display:none">
<!--
function myprojname(){…;
//-->
</script>

Just a few observations for others: 
- The inline javascript is surrounded by html comment tags, which I believe enables old browser compatibility
- The HTML is rendered (which makes sense since I can use the Web Inspector)
- I still do see the reference to the cache.js script which is not inline. 

Also, I am still playing with the gwt:property workaround that you mentioned.  no luck with it yet. 




On Jul 29, 2013, at 11:56 AM, David Feshbach <djfeshbach@gmail.com> wrote:

Have you tried using the web inspector? It's really useful for debugging web apps on iOS devices. There's also a way to do it with android/Chrome using adb but I don't know it off the top of my head.
Things I noticed when debugging our app that indicated the network: it worked over https but not http, the host page received was different from what the server sent. You may also be able to replicate the problem in a desktop browser by enabling tethering on your phone.
That tag looks right. I think if it's wrong it would stop working over wifi too. It's used for the script element that gets added to the DOM so it should be easy to check.

On Jul 28, 2013, at 10:51 AM, Paul Mazzuca wrote:

Well, the test iPhone is using Virgin Mobile USA which I believe piggybacks on Sprint's network so that would make sense.   The onModuleLoad method is not even being called, so I suspect the js files are no where to be found.  Just to confirm, I edited my html file to include the meta tag <meta name="gwt:property" content="baseUrl=myprojectname"> given that my project js file is typically located at
<script type="text/javascript" language="javascript" src="myprojectname/myprojectname.nocache.js">?

On Friday, July 26, 2013 2:14:04 PM UTC-7, David wrote:
We had an issue with Sprint "optimizing" the page by inlining scripts. As a result, there was no source attribute for the nocache script which prevented it from loading the other scripts (which are on a different server from the host page). We got around this by adding a "gwt:property" meta element that set the "baseUrl" property.

On Jul 26, 2013, at 1:53 PM, Paul Mazzuca wrote:

I have an IPhone 4 which I am testing my GWT app on.  In Chrome or Mobile Safari, my application will only load when connected to WIFI.  This behavior seems to be consistent, but I wanted to get a sanity check from the community to see if anyone else has experienced this?  I am using code splitting and the xsiframe linker.  My initial download size is around 100k, even with code splitting... ya I know still pretty hefty. 

My thoughts are that the cause may be related to the initial download size being too large, something weird with the xsilinker, or just something bogus that only happens with 3G.   Of note, this does not seem to occur with 4G connections. 

Any thoughts?

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


--
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/groups/opt_out.
 
 


--
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/RU2WC0R9I3g/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/groups/opt_out.
 
 

Re: rpc call - static methods is not working

 I tried changing all the senddomestic values to static but it won't allow me to do so? why? 

Because RemoteServiceServlet needs to invoke your service methods somehow and the implementation expects instance methods. But this shouldn't prevent you from assigning the method data to static fields. Just be aware of multi threading.

-- 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/groups/opt_out.
 
 

Re: rpc call - static methods is not working

sorry correction , at the end I mean the senddomesticdata method 

On Monday, July 29, 2013 2:17:17 PM UTC-5, fedex wrote:
Hi everyone,

I am trying to define a static method in the service interface to make an rpc call. But it doesn't allow me to do so. here I am pasting my code

Client class 

public void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics) {
String url = GWT.getModuleBaseURL() + "domesticservice";
domesticServiceAsync = (DomesticServiceAsync) GWT
.create(DomesticService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) domesticServiceAsync;
endpoint.setServiceEntryPoint(url);
domesticServiceAsync.sendDomesticData(product,dma,yrmnths,dist,metrics,new Domestichandler<Void>() );
}

public class Domestichandler<Void> implements AsyncCallback<Void> {

@Override
public void onFailure(Throwable caught) {
String error = caught.getMessage();
System.out.println(error);
}

public void onSuccess(Void result) {
System.out.println("perfect");
}
}

Service 
public interface DomesticService extends RemoteService {
public  void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics);

}

public interface DomesticServiceAsync {
void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics,AsyncCallback<Void> callback);
}

server side -

public  void sendDomesticData(String product, String dma,
String yrmnths, String dist, String metrics) {
System.out.println(product);
}

Basically I am trying to send the values from the front interface to the  server side and I don't want any return value. But the values passed to the server side should be stored globally in the server class so i can access those values in different method. I tried changing all the senddomestic values to static but it won't allow me to do so? why? 

--
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/groups/opt_out.
 
 

rpc call - static methods is not working

Hi everyone,

I am trying to define a static method in the service interface to make an rpc call. But it doesn't allow me to do so. here I am pasting my code

Client class 

public void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics) {
String url = GWT.getModuleBaseURL() + "domesticservice";
domesticServiceAsync = (DomesticServiceAsync) GWT
.create(DomesticService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) domesticServiceAsync;
endpoint.setServiceEntryPoint(url);
domesticServiceAsync.sendDomesticData(product,dma,yrmnths,dist,metrics,new Domestichandler<Void>() );
}

public class Domestichandler<Void> implements AsyncCallback<Void> {

@Override
public void onFailure(Throwable caught) {
String error = caught.getMessage();
System.out.println(error);
}

public void onSuccess(Void result) {
System.out.println("perfect");
}
}

Service 
public interface DomesticService extends RemoteService {
public  void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics);

}

public interface DomesticServiceAsync {
void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics,AsyncCallback<Void> callback);
}

server side -

public  void sendDomesticData(String product, String dma,
String yrmnths, String dist, String metrics) {
System.out.println(product);
}

Basically I am trying to send the values from the front interface to the  server side and I don't want any return value. But the values passed to the server side should be stored globally in the server class so i can access those values in different method. I tried changing all the senddomestic values to static but it won't allow me to do so? why? 

--
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/groups/opt_out.
 
 

Re: GWT load issues on ios 3G device

Have you tried using the web inspector? It's really useful for debugging web apps on iOS devices. There's also a way to do it with android/Chrome using adb but I don't know it off the top of my head.
Things I noticed when debugging our app that indicated the network: it worked over https but not http, the host page received was different from what the server sent. You may also be able to replicate the problem in a desktop browser by enabling tethering on your phone.
That tag looks right. I think if it's wrong it would stop working over wifi too. It's used for the script element that gets added to the DOM so it should be easy to check.

On Jul 28, 2013, at 10:51 AM, Paul Mazzuca wrote:

Well, the test iPhone is using Virgin Mobile USA which I believe piggybacks on Sprint's network so that would make sense.   The onModuleLoad method is not even being called, so I suspect the js files are no where to be found.  Just to confirm, I edited my html file to include the meta tag <meta name="gwt:property" content="baseUrl=myprojectname"> given that my project js file is typically located at
<script type="text/javascript" language="javascript" src="myprojectname/myprojectname.nocache.js">?

On Friday, July 26, 2013 2:14:04 PM UTC-7, David wrote:
We had an issue with Sprint "optimizing" the page by inlining scripts. As a result, there was no source attribute for the nocache script which prevented it from loading the other scripts (which are on a different server from the host page). We got around this by adding a "gwt:property" meta element that set the "baseUrl" property.

On Jul 26, 2013, at 1:53 PM, Paul Mazzuca wrote:

I have an IPhone 4 which I am testing my GWT app on.  In Chrome or Mobile Safari, my application will only load when connected to WIFI.  This behavior seems to be consistent, but I wanted to get a sanity check from the community to see if anyone else has experienced this?  I am using code splitting and the xsiframe linker.  My initial download size is around 100k, even with code splitting... ya I know still pretty hefty. 

My thoughts are that the cause may be related to the initial download size being too large, something weird with the xsilinker, or just something bogus that only happens with 3G.   Of note, this does not seem to occur with 4G connections. 

Any thoughts?

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


--
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/groups/opt_out.
 
 

Implementation of flextable resize row explicitly

Hi,

I want to implement a flex table whch rows height can be explicitly changable by dragging.
Please help me.

--
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/groups/opt_out.
 
 

GWT mobile : Virtual keyboard hides focused input

If, within the mobile browser (Chrome) the user taps on an input text element in order to gain focus the virtual keyboard will appear.
When the phone is used in landscape mode, the keyboard will take a big part of the screen and will cover also the focused text box, even though the text box finds itself within a scroll panel and the user would expect that it remains displayed in the viewport (so that he sees what he is typing).

I tried the same scenario when writing by hand a simple html page (where the top container has overflow:auto) and there when the focus is made on a text box, it will be displayed in the middle of the viewport (in the case when the virtual keyboard would hide it).

Issue seems to have been reported also for mgwt framework : https://code.google.com/p/mgwt/issues/detail?id=30

If anybody has experienced the same issue and found in the meantime a solution, please share it with me.

Thanks in advance,
Marius.

--
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/groups/opt_out.
 
 

Re: (very) small typo in online documentation


BORIS BRUDNOY
Web Software Developer (Careers 2.0LinkedIn)
Founder and Application Architect, Healthometry.com



On Mon, Jul 29, 2013 at 12:34 PM, Rutger van der Eijk <4ruggi@gmail.com> wrote:
Hi,

I think I've found a very small typo on


In this section the code snippet has a small typo. I.e.
    TextBox dataEntry;      // Set the focus on the widget after setup completes.    Scheduler.get().scheduleDeferred(new Command() {      public void execute () {        dataEntry.setFocus();      }    }      dataEntry = new TextBox();  
should IMO be
      TextBox dataEntry;      // Set the focus on the widget after setup completes.    Scheduler.get().scheduleDeferred(new Command() {      public void execute () {        dataEntry.setFocus();      }    });      dataEntry = new TextBox();  
Very small. But than again as we say in Dutch; "every little bit helps".

Who can adjust this?


--
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/groups/opt_out.
 
 

--
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/groups/opt_out.
 
 

Re: (very) small typo in online documentation

The GWT folks are very helpful (and patient in my case) if you want to supply a patch? 


gerrit etc is a bit of a pain at first but OK after that.

Cheers

Sam

--
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/groups/opt_out.
 
 

(very) small typo in online documentation

Hi,

I think I've found a very small typo on


In this section the code snippet has a small typo. I.e.
  TextBox dataEntry;      // Set the focus on the widget after setup completes.    Scheduler.get().scheduleDeferred(new Command() {      public void execute () {        dataEntry.setFocus();      }    }      dataEntry = new TextBox();  
should IMO be
    TextBox dataEntry;      // Set the focus on the widget after setup completes.    Scheduler.get().scheduleDeferred(new Command() {      public void execute () {        dataEntry.setFocus();      }    });      dataEntry = new TextBox();  
Very small. But than again as we say in Dutch; "every little bit helps".

Who can adjust this?


--
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/groups/opt_out.
 
 

Re: Uncaught exception gwt exception.

please format the stack trace correctly. no one can read this wall of text. I would assume you have forgot to add a no arg default constructor to any of your serializable classes that go through GWT-RPC.

-- 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/groups/opt_out.
 
 

Sunday, July 28, 2013

Uncaught exception gwt exception.

gwt problem:
 
  Help me for solve this problem. I'm use gwt version 1.7.0, when i try to start my app, it throws me exception:

Uncaught exception: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method) at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64) at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493) at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417) at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:68) at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:153) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:453) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:231) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(transient source for com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.MethodDispatch.invoke(MethodDispatch.java:97) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method) at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64) at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493) at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417) at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:68) at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:153) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:453) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:231) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at ru.acs.fts.webconsole.expertScvv.process.p4.client.rpc.Process4Service_TypeSerializer.instantiate(transient source for ru.acs.fts.webconsole.expertScvv.process.p4.client.rpc.Process4Service_TypeSerializer) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:114) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:199) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:264) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:236) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:227) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) 

--
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/groups/opt_out.
 
 

Re: GWT - Tree - Replace the cross event by clicking on the parent item

It works very well, thank you for your precious help!

Le dimanche 28 juillet 2013 13:12:25 UTC+2, michelin pierre a écrit :

Hello, I want to replace the cross event by clicking on the parent item: It is possible to open the menu on click on the treeitem parent (like click on the little cross on the left)?

Concretely in the example below, by clicking on "Item 1" will open the menu, by clicking a second time closes the menu.

Is there a solution?

String[] composers = new String[]{"Item 1","Item 2","Item 3"};    Resources treeResource = GWT.create(TreeResources.class);     Tree staticTree = new Tree(treeResource);    TreeItem item1 = staticTree.addTextItem(composers[0]);              TreeItem item2 = staticTree.addTextItem(composers[1]);    // add sub items  addItemSection(item1, "item 1 - 1",new String[]{});  addItemSection(item1, "item 1 - 2", new String[]{});    addItemSection(item2, "item 2 - 1",new String[]{});  addItemSection(item2, "item 2 - 2", new String[]{});  addItemSection(item2, "item 2 - 3", new String[]{});    TreeItem item = new TreeItem();  item1.addItem(item);  item2.addItem(item);    Tree t = new Tree();  t.addItem(item1);  t.addItem(item2);    private void addItemSection(TreeItem parent, String label, String[] composerWorks)   {     TreeItem section = parent.addTextItem(label);               for (String work : composerWorks) {      section.addTextItem(work);     }  }

The result:

  + Item 1
   
Item 1-1
    Item
1-2

ANd it would be nice if could hide the cross in the left.

Thanks in advance

--
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/groups/opt_out.