window namespace in super-dev-mode

2014-03-31 Thread Klemens Schrage
Hello,

I'm experiencing some problems when debugging (especially) static methods 
in super-dev-mode in Chrome. When I have inspected / unfolded the this-node 
in the scope variables view on a previous breakpoint the devtools-window 
begins to hang when entering a breakpoint in a static method. Chrome 
automatically unfolds the static method's this-node which seems to be the 
window-node. The scope variables view is filled with a huge number (all?) 
of functions. Obviously too much for the devtools. 

Would it be possible to enclose those methods in an additional subnode / 
container variable to avoid the performance problem? Besides the problem 
for static methods it would also help with "normal" inspecting the window 
namespace. Correct me if I'm wrong, but one doesn't need those functions 
for debugging purposes.

Best regards
Klemens Schrage

-- 
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+unsubscr...@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: GWT Application not showing in Safari

2014-03-31 Thread Magnus
I have a iPad Air available, but I cannot even show the source of the host 
page.

What about the promise of GWT:
http://www.gwtproject.org/doc/latest/FAQ_GettingStarted.html

"GWT supports the following browsers:


   - Firefox
   - Internet Explorer 6, 7, 8, 9
   - Safari 5, 6
   - Chromium and Google Chrome
   - Opera latest version"
   

I would expect that an app looks different, but not that it doesn't show at 
all...

Magnus

-- 
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+unsubscr...@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.


How to access a web page in Frame

2014-03-31 Thread Leon
I open a web page in Frame. I need to access its dom from another widget. 
How do I do it?

Thanks,

Leon

-- 
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+unsubscr...@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: GWT Application not showing in Safari

2014-03-31 Thread Thomas Broyer


On Monday, March 31, 2014 10:37:34 AM UTC+2, Magnus wrote:
>
> What about the promise of GWT:
> http://www.gwtproject.org/doc/latest/FAQ_GettingStarted.html
>
> "GWT supports the following browsers:
>
>
>- Firefox
>- Internet Explorer 6, 7, 8, 9
>- Safari 5, 6
>- Chromium and Google Chrome
>- Opera latest version"
>
>
> I would expect that an app looks different, but not that it doesn't show 
> at all...
>

You'll note that this page doesn't talk about mobile browsers, and iPad's 
Safari is actually "Mobile Safari".

(and the page needs updating for IE10 and IE11, and deprecation of IE6/7 
and Opera 12.x –which is still the latest version on Linux– support) 

But still, there's no reason (apart from browser bugs, as Jens said 
already) it wouldn't work.

-- 
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+unsubscr...@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.


DateTimeFormat is not showing the locales specific formatting.

2014-03-31 Thread Mohammad Al Quraian
Hi,

I am using the DateTimeFormat and it's working fine for English, however, 
in Arabic it's showing the exact value as shown for the English locale!

Here's the code:

public static String getFormattedDate(String date) {
final DateTimeFormat formatter = 
DateTimeFormat.getFormat("-MM-dd'T'HH:mm:ss");

try {
final Date parsedDate = formatter.parse(date);
return 
DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_MEDIUM).format(parsedDate);
} catch (IllegalArgumentException e) {
e.printStackTrace();
return date;
}

}

-- 
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+unsubscr...@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: GWT Application not showing in Safari

2014-03-31 Thread Jens

>
> I have a iPad Air available, but I cannot even show the source of the host 
> page.
>

Can you install Google Chrome on the iPad and see if your app works in 
Google Chrome? 

On iOS every browser is forced to use the same rendering engine as mobile 
Safari but they are not allowed to use JIT. So if your app works in Chrome 
but not in Safari then it is most likely a Safari JIT issue.

-- 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+unsubscr...@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: window namespace in super-dev-mode

2014-03-31 Thread Klemens Schrage
Nevermind... It seems to be solved already...

https://gwt.googlesource.com/gwt.git/+/7ed2e49921fb67ac4998186a7b33f421d2b42729


Am Montag, 31. März 2014 09:34:50 UTC+2 schrieb Klemens Schrage:
>
> Hello,
>
> I'm experiencing some problems when debugging (especially) static methods 
> in super-dev-mode in Chrome. When I have inspected / unfolded the this-node 
> in the scope variables view on a previous breakpoint the devtools-window 
> begins to hang when entering a breakpoint in a static method. Chrome 
> automatically unfolds the static method's this-node which seems to be the 
> window-node. The scope variables view is filled with a huge number (all?) 
> of functions. Obviously too much for the devtools. 
>
> Would it be possible to enclose those methods in an additional subnode / 
> container variable to avoid the performance problem? Besides the problem 
> for static methods it would also help with "normal" inspecting the window 
> namespace. Correct me if I'm wrong, but one doesn't need those functions 
> for debugging purposes.
>
> Best regards
> Klemens Schrage
>

-- 
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+unsubscr...@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: Why “word-wrap” css style doesn't work inside a (GWT)?

2014-03-31 Thread Tom
i did but it look really ugly. Ex: I got a DockLayoutPanel & in the 
 I have a HTMLPanel that hold . So if i use  then some how the text inside the table were 
centralised like this

|  Aa   
|---> this is the edge of the 
   aa   
 |
   aa

Am i doing right?

I want the text to go through all the spaces, ex it should look like this:
Aa|
aa

even i use but it didn't work.

Do you know how to fix it?

On Monday, March 31, 2014 1:34:59 AM UTC+11, Jens wrote:
>
> You have to use table-layout:fixed in your CSS for the table element.
>
> -- 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+unsubscr...@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

2014-03-31 Thread Jens
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+unsubscr...@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: Why “word-wrap” css style doesn't work inside a (GWT)?

2014-03-31 Thread Jens

>
> Do you know how to fix it?
>

The most basic example works: http://jsfiddle.net/84dsH/

So investigate your CSS using your browsers Dev Tools.

-- 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+unsubscr...@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: using gwt with hibernate example

2014-03-31 Thread Mic L
Thank you it was that problem and now it works.

On Saturday, March 29, 2014 11:30:06 PM UTC+10, Mic L wrote:
>
> HI,
> I have found a nice article "using gwt with hibernate 
> example". 
> However, I have trouble to import this 
> codeinto
>  Eclipse. I always get the following warnings, but the app does not 
> start:
> [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' 
> could not be found in the web app, but was found on the system classpath
>[WARN] Adding classpath entry 
> 'file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar'
>  
> to the web app classpath for this session
>For additional info see: 
> file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
> [WARN] No startup URLs supplied and no plausible ones found -- use 
> -startupUrl
>
> How is it possible to import the code into Eclipse and would 
> ActiveJDBCsolves Hibernates problems?
>
> Thank you in advance.
>
> Mic
>
>
>
>
>

-- 
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+unsubscr...@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

2014-03-31 Thread Leon
 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+unsubscr...@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

2014-03-31 Thread Leon

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+unsubscr...@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.


Send data (keep alive probe) across GWT RPC connection

2014-03-31 Thread Jeffrey Argo
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.

-- 
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+unsubscr...@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: Why “word-wrap” css style doesn't work inside a (GWT)?

2014-03-31 Thread Tom
I couldn't fix the  tag so I start to use Grid. But Grid din't 
recognize the *break-word*
 

   

   
   Subject
   
   
   

  
 

in Css
.myBreakWord{
word-wrap:break-word; 
table-layout:fixed;
}

Is there anything wrong with my code?

On Monday, March 31, 2014 9:58:13 PM UTC+11, Jens wrote:
>
> Do you know how to fix it?
>>
>
> The most basic example works: http://jsfiddle.net/84dsH/
>
> So investigate your CSS using your browsers Dev Tools.
>
> -- 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+unsubscr...@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.