Re: How to access a web page in Frame

2014-04-01 Thread Slava Pankov
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+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.


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

2014-04-01 Thread Adrian Bastholm
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+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.


Responsive Web App

2014-04-01 Thread omar elouafi
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+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: Responsive Web App

2014-04-01 Thread Alain Ekambi
Hav a look at  GWT Bootstrap


2014-03-31 18:48 GMT+02:00 omar elouafi :

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

-- 
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: Cell Table Styling

2014-04-01 Thread Zbyněk Kočí
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:



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(15, GWT. 
> 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  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+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: Cell Table Styling

2014-04-01 Thread Thomas Broyer


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+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: The method isCompleteHtml(String) is undefined for the type SafeHtmlHostedModeUtils

2014-04-01 Thread Thomas Broyer
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+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: Send data (keep alive probe) across GWT RPC connection

2014-04-01 Thread Thomas Broyer


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+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: Cell Table Styling

2014-04-01 Thread Zbyněk Kočí
Log:
onModuleLoad() threw an exception

Exception while loading module *com.rpc.client.mainEntryPoint*. See 
Development Mode for details.
java.lang.reflect.InvocationTargetException at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:606) at 
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411) at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
 
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
 
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
 
at java.lang.Thread.run(Thread.java:724) *Caused by: 
java.lang.RuntimeException: Deferred binding failed for 
'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a 
required module?) at 
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at 
com.google.gwt.core.shared.GWT.create(GWT.java:72) at 
com.google.gwt.core.client.GWT.create(GWT.java:86) at 
com.rpc.client.mainEntryPoint.onModuleLoad(mainEntryPoint.java:150) ... 9 
more Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see 
previous log entries) at 
com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:610) at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470) 
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... 
12 more*

Is it ok now? Or need something exactly from Devmode? BTW thanks for your 
fast response

Dne úterý, 1. dubna 2014 11:06:13 UTC+2 Thomas Broyer napsal(a):
>
>
>
> 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+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: Cell Table Styling

2014-04-01 Thread Thomas Broyer
Look at the Development Mode window (or the equivalent view in Eclipse if 
that's what you're using), the answer must be there.
(feel free to copy/paste the whole log if you need help understanding it)

On Tuesday, April 1, 2014 11:16:09 AM UTC+2, Zbyněk Kočí wrote:
>
> Log:
> onModuleLoad() threw an exception
>
> Exception while loading module *com.rpc.client.mainEntryPoint*. See 
> Development Mode for details.
> java.lang.reflect.InvocationTargetException at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
> at java.lang.reflect.Method.invoke(Method.java:606) at 
> com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411) at 
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
>  
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
>  
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>  
> at java.lang.Thread.run(Thread.java:724) *Caused by: 
> java.lang.RuntimeException: Deferred binding failed for 
> 'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a 
> required module?) at 
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at 
> com.google.gwt.core.shared.GWT.create(GWT.java:72) at 
> com.google.gwt.core.client.GWT.create(GWT.java:86) at 
> com.rpc.client.mainEntryPoint.onModuleLoad(mainEntryPoint.java:150) ... 9 
> more Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see 
> previous log entries) at 
> com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:610) at 
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470) 
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... 
> 12 more*
>
> Is it ok now? Or need something exactly from Devmode? BTW thanks for your 
> fast response
>
> Dne úterý, 1. dubna 2014 11:06:13 UTC+2 Thomas Broyer napsal(a):
>>
>>
>>
>> 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+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.


GWT, ORM and jpa-cloner

2014-04-01 Thread Mic L
HI,
I have found a nice article "using gwt with hibernate 
example". 
However, GWT-RPC and Hibernate did not understand each other well.

Apparently, jpa-cloner  can solve 
this problem. Would it be possible to use the first version of the code 
describe in the above article together with JPA-cloner and Hibernate?

How the code would look like?

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: Cell Table Styling

2014-04-01 Thread Zbyněk Kočí
Im using NetBeans
00:43:37,382 [DEBUG] Rebinding com.rpc.client.mainEntryPoint.TableResources 

 00:43:37,393 [DEBUG] Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
 00:43:37,394 [DEBUG] Preparing method cellTableStyle 
 00:43:37,396 [DEBUG] Finding resources 
 00:43:37,396 [ERROR] Resource CellTable.css not found. Is 
the name specified as ClassLoader.getResource() would expect? 

I understand this so I need to know where should I save my own 
CellTable.css which is actually in root of webpages.

00:43:37,400 [ERROR] Deferred binding failed for 
'com.rpc.client.mainEntryPoint.TableResources'; expect subsequent failures  
00:43:37,425 [ERROR] Unable to load module entry point class 
com.rpc.client.mainEntryPoint (see associated exception for details) 

java.lang.RuntimeException: Deferred binding failed for 
'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a 
required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.shared.GWT.create(GWT.java:72)
at com.google.gwt.core.client.GWT.create(GWT.java:86)
at com.rpc.client.mainEntryPoint.onModuleLoad(mainEntryPoint.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log 
entries)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:610)
at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.shared.GWT.create(GWT.java:72)
at com.google.gwt.core.client.GWT.create(GWT.java:86)
at com.rpc.client.mainEntryPoint.onModuleLoad(mainEntryPoint.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)

 at java.lang.Thread.run(Thread.java:724)
00:43:37,426 [ERROR] Failed to load module 'com.rpc.main' from user agent 
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/33.0.1750.117 Safari/537.36' at localhost:51831 

Hope this helps you 
 

Dne úterý, 1. dubna 2014 11:30:18 UTC+2 Thomas Broyer napsal(a):
>
> Look at the Development Mode window (or the equivalent view in Eclipse if 
> that's what you're using), the answer must be there.
> (feel free to copy/paste the whole log if you need help understanding it)
>
> On Tuesday, April 1, 2014 11:16:09 AM UTC+2, Zbyněk Kočí wrote:
>>
>> Log:
>> onModuleLoad() threw an exception
>>
>> Exception while loading module *com.rpc.client.mainEntryPoint*. See 
>> Development Mode for details.
>> java.lang.reflect.InvocationTargetException at 
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>  
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  
>> at java.lang.reflect.Method.invoke(Method.java:606) at 
>> com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411) at 
>> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
>>  
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
>>  
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>>  
>> at java.lang.Thread.run(Thread.java:724) *Caused by: 
>> java.lang.RuntimeException: Deferred binding failed for 
>> 'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a 
>> required module?) at 
>> c

Re: GWT, ORM and jpa-cloner

2014-04-01 Thread Alain Ekambi
Personally I would avoid using RPC and go with RequestFactory or Rest.


2014-04-01 11:47 GMT+02:00 Mic L :

> HI,
> I have found a nice article "using gwt with hibernate 
> example".
> However, GWT-RPC and Hibernate did not understand each other well.
>
> Apparently, jpa-cloner  can solve
> this problem. Would it be possible to use the first version of the code
> describe in the above article together with JPA-cloner and Hibernate?
>
> How the code would look like?
>
> 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.
>

-- 
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: Cell Table Styling

2014-04-01 Thread Alberto Mancini
Hi,
try to place the css file in the same package where  TableResources is;
com.rpc.client if i understand well.

Hope it helps.
   Alberto


On Tue, Apr 1, 2014 at 11:50 AM, Zbyněk Kočí  wrote:

> Im using NetBeans
> 00:43:37,382 [DEBUG] Rebinding
> com.rpc.client.mainEntryPoint.TableResources
>  00:43:37,393 [DEBUG] Invoking generator
> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>  00:43:37,394 [DEBUG] Preparing method cellTableStyle
>  00:43:37,396 [DEBUG] Finding resources
>  00:43:37,396 [ERROR] Resource CellTable.css not found. Is
> the name specified as ClassLoader.getResource() would expect?
>
> I understand this so I need to know where should I save my own
> CellTable.css which is actually in root of webpages.
>
> 00:43:37,400 [ERROR] Deferred binding failed for
> 'com.rpc.client.mainEntryPoint.TableResources'; expect subsequent failures
> 00:43:37,425 [ERROR] Unable to load module entry point class
> com.rpc.client.mainEntryPoint (see associated exception for details)
>
> java.lang.RuntimeException: Deferred binding failed for 
> 'com.rpc.client.mainEntryPoint$TableResources' (did you forget to inherit a 
> required module?)
>   at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>   at com.google.gwt.core.shared.GWT.create(GWT.java:72)
>   at com.google.gwt.core.client.GWT.create(GWT.java:86)
>   at com.rpc.client.mainEntryPoint.onModuleLoad(mainEntryPoint.java:150)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
>   at 
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous 
> log entries)
>   at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:610)
>   at 
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
>   at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>   at com.google.gwt.core.shared.GWT.create(GWT.java:72)
>   at com.google.gwt.core.client.GWT.create(GWT.java:86)
>   at com.rpc.client.mainEntryPoint.onModuleLoad(mainEntryPoint.java:150)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
>   at 
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>
>  at java.lang.Thread.run(Thread.java:724)
> 00:43:37,426 [ERROR] Failed to load module 'com.rpc.main' from user agent
> 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/33.0.1750.117 Safari/537.36' at localhost:51831
>
> Hope this helps you
>
>
> Dne úterý, 1. dubna 2014 11:30:18 UTC+2 Thomas Broyer napsal(a):
>
>> Look at the Development Mode window (or the equivalent view in Eclipse if
>> that's what you're using), the answer must be there.
>> (feel free to copy/paste the whole log if you need help understanding it)
>>
>> On Tuesday, April 1, 2014 11:16:09 AM UTC+2, Zbyněk Kočí wrote:
>>>
>>> Log:
>>> onModuleLoad() threw an exception
>>>
>>> Exception while loading module *com.rpc.client.mainEntryPoint*. See
>>> Development Mode for details.
>>> java.lang.reflect.InvocationTargetException at sun.reflect.
>>> NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.
>>> NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:43) at 
>>> java.lang.reflect.Method.invoke(Method.java:606)
>>> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411) at
>>> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
>>> at 
>>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
>>> at 
>>> com.google.gwt.dev.shell.BrowserChannelServer.run(Browser

Using GWTTestCase to do integration testing on GWT-RPC calls

2014-04-01 Thread stuckagain
Hi,
 
I'm trying to create an integration test that checks if a GWT-RPC service 
is working with our integration test servers.
My initial thought was to just use a GWTTestCase and point the GWT-RPC 
ServiceDefTarget to the real server.
 
It did not work:

32 [JS executor for com.gargoylesoftware.htmlunit.WebClient@3afb2359] ERROR 
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl 
- Job run failed with unexpected 
RuntimeException: Wrapped java.lang.RuntimeException: No permitted 
"Access-Control-Allow-Origin" header. 
net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped java.
lang.RuntimeException: No permitted "Access-Control-Allow-Origin" header. 

 at net.sourceforge.htmlunit.corejs.javascript.Context.
throwAsScriptRuntimeEx(Context.java:1889) 
 at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(
XMLHttpRequest.java:681) 
 at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access0
(XMLHttpRequest.java:94) 
 at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(
XMLHttpRequest.java:603) 
 at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602
) 
 at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(
ContextFactory.java:507) 
 at com.gargoylesoftware.htmlunit.javascript.background.
JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 
 at com.gargoylesoftware.htmlunit.javascript.background.
JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:328) 
 at com.gargoylesoftware.htmlunit.javascript.background.
DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:162) 
 at java.lang.Thread.run(Thread.java:724) 
Caused by: 
java.lang.RuntimeException: No permitted "Access-Control-Allow-Origin"header
. 
 ... 9 more
 
I tried using a Filter that sets the Access-Control-Allow-Origin header to 
*, but it does not seem to work.
Is there a better way to perform this kind of integration test with GWT 
code ? Or is there a way to disable this check in HtmlUnit ?
 

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


Responsive design with GWT

2014-04-01 Thread omar elouafi
Hi everybody,
how can i build a responsive web application with GWT?

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+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: Responsive design with GWT

2014-04-01 Thread Marteijn Nouwens
Hi omar,

Yes it's possible. We do :-),  But we build a lot of our components our 
selves. The backward support for ie caused a lot of components to be ugly 
html wyse. SInce we dropped ie8 support a lot more is possible.

We like gwt because of the technology. The components are ok but we addded 
a lot :-)

Marteijn

Op dinsdag 1 april 2014 13:46:11 UTC+2 schreef omar elouafi:
>
> Hi everybody,
> how can i build a responsive web application with GWT?
>
> 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+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: Responsive design with GWT

2014-04-01 Thread omar elouafi
thanks for help :)


2014-04-01 14:32 GMT+01:00 Marteijn Nouwens :

> Hi omar,
>
> Yes it's possible. We do :-),  But we build a lot of our components our
> selves. The backward support for ie caused a lot of components to be ugly
> html wyse. SInce we dropped ie8 support a lot more is possible.
>
> We like gwt because of the technology. The components are ok but we addded
> a lot :-)
>
> Marteijn
>
> Op dinsdag 1 april 2014 13:46:11 UTC+2 schreef omar elouafi:
>
>> Hi everybody,
>> how can i build a responsive web application with GWT?
>>
>> Thanks in advance .
>>
>  --
> 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/egRXm0bEXWA/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Omar EL OUAFI
Elève-ingénieur à l'Ecole Nationale Supérieure de l'Informatique et
d'Analyse des Systèmes (ENSIAS)
Option Génie Logiciel
GSM : +212 (0)  6 33 50 14 64
Email: omareloua...@gmail.com

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


MouseOver events flickering issue in Chrome & Mozilla

2014-04-01 Thread Smiley
 

Hi,

I am using a CellTree to display the data which I receive from the backend.

Items in a Cell

1.   Image

2.   Image

3.   Text

Requirement:

On mouseOver event on the Cell I need to show a button and on mouseout 
event I need to remove the button.

 When I move the mouse on the cell I could notice that multiple 
mouseover/mouseout events are getting fired and it creates a flickering 
effect in chrome and in Mozilla version above 18.0.

 I need some assistance in resolving this issue.

 

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


GWT Runtime Plugins - Is it on the Roadmap?

2014-04-01 Thread Thanos
I was wondering if GWT Runtime Plugins are on the roadmap yet?

We have GWT compile time plugins working quite nicely, each plugin is a 
maven module. After the number of plugins gets large, this really starts to 
bog down the compiler. So it would be great if plugins where pre-compiled 
and "linked" at runtime in the browser. 

I know this sacrifices .js size, as it can't prune as aggressively. But for 
our type of application, an extensible workbench, it would really help; and 
would probably be an acceptable tradeoff. Both to improve development 
speed, but also as we have a requirement to allow 3rd party plugins to be 
added at runtime.

For those interested in our extensible Workbench work, you can see a number 
of videos here:
http://blog.athico.com/2013/12/drools-60-workbench-and-editor-videos.html

I know there are hacks, such as loading lots of GWT applications on a 
single page, and bridging them. But i'd like to avoid any painful hacks. I 
was hoping that the new closure compiler, with it's support of symbol 
tables, might make this possible?

Our main choice for choosing GWT is re-factorable development in an IDE, 
and less so about absolute minimum .js size (although of course we don't 
want too much bloat).

Mark


-- 
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, ORM and jpa-cloner

2014-04-01 Thread Mic L
Thank you, I will look at RequestFactory.

On Tuesday, April 1, 2014 7:57:46 PM UTC+10, Alain wrote:
>
> Personally I would avoid using RPC and go with RequestFactory or Rest.
>
>
> 2014-04-01 11:47 GMT+02:00 Mic L >:
>
>> HI,
>> I have found a nice article "using gwt with hibernate 
>> example". 
>> However, GWT-RPC and Hibernate did not understand each other well.
>>
>> Apparently, jpa-cloner  can solve 
>> this problem. Would it be possible to use the first version of the code 
>> describe in the above article together with JPA-cloner and Hibernate?
>>
>> How the code would look like?
>>
>> 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-we...@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+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-04-01 Thread Leon
I used a proxy servlet so the url for Frame is the same origin (same 
scheme, host, and port) as widget. But Document.getElementsByTagName("div") 
still returns an empty NodeList.

Please help!

Leon

On Tuesday, April 1, 2014 3:29:43 AM UTC-4, Slava Pankov wrote:
>
> 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+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.