Tuesday, April 1, 2014

Re: Send data (keep alive probe) across GWT RPC connection



On Tuesday, April 1, 2014 6:16:34 AM UTC+2, Jeffrey Argo wrote:
I have a web application running on an Amazon server using a Elastic load balancer and when I make a RPC call between my client and the server it is timing out after 1 minute, because there is no activity on the RPC connection for more then a minute. The reason there is no activity on the connection is because the process invoked by the client takes 2-3 minutes to run on the server. I have 2 solutions to this problem which are 1) have amazon increase the idle timeout to 2-3 minutes, or 2) send data ever 50 seconds over the RPC.  I am in the process of getting Amazon to increase the idle timeout, but in the meantime does anyone know how to do option 2.  I know how to send a message every 50 seconds between the client and server after the RPC is made, but this does not solve the problem because the message is not sent across the original RPC connection and it has to be in order to keep the connection up. I'm new to GWT and JAVA and don't know if option 2 is even doable, but I would really appreciate any suggestions or help with this that anyone can give me.

I doubt option 2 is doable: sending any data (e.g. from the server to the client) would likely break decoding of the response on the client-side.

You have option 3 though: have your server spawn the processing in an asynchronous task and respond early to the client (if possible, you could also possibly wait for the task to complete, but no more than 50 seconds; if it's shorter then you'll send the task result right to the browser, otherwise you'll tell the browser that it's being processed asynchronously). The client then makes another request for the status of the task.
This is a major refactoring though…

--
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/d/optout.

Re: The method isCompleteHtml(String) is undefined for the type SafeHtmlHostedModeUtils

isCompleteHtml is public since 2.5.0. Make sure you don't have some pre-2.5.0 libraries (e.g. gwt-servlet.jar) in your classpath that could conflict with your updated GWT 2.6.0 libs.

On Tuesday, April 1, 2014 10:06:17 AM UTC+2, Adrian Bastholm wrote:
Hi everyone,
I just upgraded GWT to 2.6 and I'm trying to use the SafeHtml utilities. Under debug the following message is thrown: 
Uncaught exception: java.lang.Error: Unresolved compilation problem: 
The method isCompleteHtml(String) is undefined for the type SafeHtmlHostedModeUtils

Eclipse Kepler doesn't find the SafeHtml classes on Open Resource, but the editor is finding them. What am I doing wrong ?
/A

--
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/d/optout.

Re: Cell Table Styling



On Tuesday, April 1, 2014 11:02:53 AM UTC+2, Zbyněk Kočí wrote:
Hello, every single hint from you all for apply own style for this is about the same and causes an error:
"Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a required module?)"

There must be other errors up in the log. There's a reason why deferred binding failed.

--
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/d/optout.

Re: Cell Table Styling

Hello, every single hint from you all for apply own style for this is about the same and causes an error:
"Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a required module?)"

There is no solution yet, just one post about it but still isnt solved or even answered. Could anyone help me with this because you didnt say a word about changing or implementing something else... confused

gwt.xml:
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.resources.Resources"/>

Dne středa, 21. září 2011 9:06:03 UTC+2 Sudhakar Abraham napsal(a):
To change the property of  .cellTableEvenRow , .cellTableOddRow  in
CellTableStyle.css. Inject your CellTableStyle.css in client side
code.

//client side code
interface TableResources extends CellTable.Resources
  {
    @Source(value = { CellTable.Style.DEFAULT_CSS,
"CellTableStyle.css" })
    CellTable.Style cellTableStyle();
  }

CellTable table = new CellTable<String>(15, GWT.<TableResources>
create(TableResources.class));

//CellTableStyle.css

.cellTableCell {
    height: 35px;
    cursor: pointer;
    padding: 2px 25px;
}
.cellTableEvenRow {
background: #fffaf0;
font-size:12px;
}

.cellTableOddRow {
    background: #fff8e8;
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 21, 7:04 am, gangurg gangurg <gang...@gmail.com> wrote:
> I am trying to come up with styling of Cell Table . However  not able to
> figure out how .
>
> Trying to achieve
> 1. Should be able to Style any given row of a Cell table
> 2, Any Column of a Cell table
> 3. dynamically style any particular cell of a cell table .
>
> I tried to do the style sheet injection means by using resource , but its
> not helping me . I would appreciate any working example for the same .

--
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/d/optout.

Re: Responsive Web App

Hav a look at  GWT Bootstrap 


2014-03-31 18:48 GMT+02:00 omar elouafi <omarelouafi2@gmail.com>:
Hi everybody,

How can i build a responsive design with GWT? and is it possible to integrate a GWT components into a responsive template?.

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/d/optout.

--
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/d/optout.

The method isCompleteHtml(String) is undefined for the type SafeHtmlHostedModeUtils

Hi everyone,
I just upgraded GWT to 2.6 and I'm trying to use the SafeHtml utilities. Under debug the following message is thrown: 
Uncaught exception: java.lang.Error: Unresolved compilation problem: 
The method isCompleteHtml(String) is undefined for the type SafeHtmlHostedModeUtils

Eclipse Kepler doesn't find the SafeHtml classes on Open Resource, but the editor is finding them. What am I doing wrong ?
/A

--
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/d/optout.

Re: How to access a web page in Frame

Perhaps you have cross domain problem. Is URL in your iframe from the same domain as main application? If not you need something like proxy servlet to simulate you getting data from your server side.

On Monday, March 31, 2014 7:23:17 PM UTC-7, Leon wrote:

com.google.gwt.dom.client.Document.getElementsByTagName("body") returns one Node. I can cast it into Element and do some style changes in Java code. Any style changes in Java code is not reflected in html code that is confirmed by Firebug.


com.google.gwt.dom.client.Document.getElementsByTagName("div") still returns an empty NodeList.




On Monday, March 31, 2014 9:26:31 PM UTC-4, Leon wrote:
I don't know why 
com.google.gwt.dom.client.Document.getElementsByTagName("div") returns an empty NodeList.

Is there a solution how to get a element in terms of tag name?

Leon


On Monday, March 31, 2014 5:59:47 AM UTC-4, Jens wrote:
Document iframeDoc = ((IFrameElement) frame.getElement()).getContentDocument();

If you need that more often then you should probably extend GWTs Frame class and make a public method to access the content document.

Keep in mind that you should wait until the frame is loaded using frame.addLoadHandler().

-- 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/d/optout.