Wrong RPC typeSignature

2011-04-07 Thread Fernando Barbat
Hi, I'm having this exception when receiving a complex JPA Entity from server using RPC: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized I tried debugging serialization on server and deserialization on client and found that the generated

Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Fernando Barbat
Hi, I tried to update an existing 2.1.1 project to 2.2 without success. The compiler throws a lot of errors and exceptions. I found in another post that we should update Gin to 1.5 and tried it, but it wasn't helpful. Any idea? Thanks. This is the compiler's log: Compiling module

Re: Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Fernando Barbat
I think I know what's happening. I'm using Ext GWT in my project, and for now it isn't compatible with GWT 2.2. http://www.sencha.com/forum/showthread.php?124026-GXT-2.2.2-compilation-error-with-GWT-2.2 On 23 feb, 08:47, Fernando Barbat fbar...@gmail.com wrote: Hi, I tried to update

Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

2011-02-12 Thread Fernando Barbat
Yes, it has a zero argument constructor. As I said, once I recompile, undeploy and deploy again, the problem goes away. I'm using Eclipse and deploy an EAR in Glasfish v3. This EAR contains an EJB jar, a GWT WAR and other jars. I noted that IncompatibleRemoteServiceException sometimes raises up

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

2011-02-11 Thread Fernando Barbat
Hi, I'm having an IncompatibleRemoteServiceException very often in development mode. It looks like it raises every time I change my EJB server code, which is in a project referenced by my GWT project. Error: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type

Re: GWT 2.1 hellomvp using GIN

2010-10-20 Thread Fernando Barbat
I had the exactly same doubt. And I thought about it, but couldn't find out how you can do that mapping with GIN. In fact, Roo's generated projects don't use a GIN-based mapping although they use GIN in other parts. So I'm interested to know the answer to this question too. :P On 20 oct, 07:42,

Simulate low bandwith

2010-10-19 Thread Fernando Barbat
Are there any tools which allow us to test our GWT application in low bandwith or high latency environments? I've read this post: http://stackoverflow.com/questions/473465/firefox-plugin-to-simulate-slow-internet-connection-or-limit-bandwidth Anyway, I want to know if there is any tool or

Re: Ejb and gwt..?!

2010-10-10 Thread Fernando Barbat
Yes, you can do that. I tried it a few days ago and it worked. In my case, I implemented a servlet which would act as a bridge between RPC services and an EJB. I based on this : http://dobesland.wordpress.com/2007/08/01/gwt-to-ejb-bridging/ Basiically, don’t implement the GWT service’s interface

Re: Ejb and gwt..?!

2010-10-10 Thread Fernando Barbat
I know maybe it's not easy to understand what I did from what I wrote there, but I think I have gotten off th track. :P I if you are interested in that, you can read the post I mentioned, or just ask me. On 10 oct, 13:11, Fernando Barbat fbar...@gmail.com wrote: Yes, you can do that. I tried

Re: Registering events with Custom widgets..

2010-08-24 Thread Fernando Barbat
Maybe this could help: http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem On 24 ago, 04:47, Aditya 007aditya.b...@gmail.com wrote: Hello,          I m trying to design a custom widget for which i m trying to handle some events such as onFocus etc. But i dnt know how

Re: Instantiate composite on the server side

2010-08-06 Thread Fernando Barbat
You can do that on the client side. Although you don't have reflections, you can have a helper class which can do that work for you. That helper class could have a big if, else if, else if clause and compare classes using instance.getClass(). Every time you add a new class you want to use

Re: Instantiate composite on the server side

2010-08-06 Thread Fernando Barbat
(); else if (class == MyClass2.class) return new MyClass2(); else throw new CouldntInstanceClassException(); } } It is type safe, although you can have a CouldntInstanceClassException() if you forget to add the corresponding comparison. On 6 ago, 08:19, Fernando Barbat fbar

Re: Instantiate composite on the server side

2010-08-06 Thread Fernando Barbat
) return new Button(); else throw new RuntimeException(); } } On 6 ago, 12:58, Fernando Barbat fbar...@gmail.com wrote: I was't so clear so I want to put it with an example. Let's suppose your helper class is named Reflector. This class could

Re: Firing native events in GWT?!

2010-08-03 Thread Fernando Barbat
I don't have the answer to your question but maybe this could help: http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem On 3 ago, 06:40, Blaze baze...@gmail.com wrote: Hi all, I have one question...how can we fire a native event in gwt...?? by native event I think on let

IE8 problem when using Singleton and DockLayoutPanel

2010-07-25 Thread Fernando Barbat
Hi everyone, I have a Welcome Screen which is made by hand from the entry point. On the other side, I have Widget named Main which uses the Singleton pattern: this Widget encapsulates the application funcionality and there should be only one instance in the application. This Widget is a composite

Centering a panel inside a ScrollPanel

2010-07-25 Thread Fernando Barbat
Is there any way to center a panel inside a ScrollPanel? When I have to center a panel inside any other panel that is not a ScrollPanel, I use CSS: Parent position: relative; Child position: absolute; left: 50%; top: 50%; margin-left: -(panelWidth/2) margin-top: -(panelHeight/2)