Re: Transfer problem from clien side to server side

2010-05-11 Thread Emeric Heneffe
Hello,
The fact is that normally I had to use gilead to save pojos in a db.
But, before using this, I had to transfer
these pojo to server side. To do this, I use a simple rpc request with
my classes that extend Serializable (and not
IsSerializable because I don't want that my core package has
dependencies with gwt)... But when I transfer some pojo
coming from my core package, there is a problem and I can't transfer
it, no exception but at server side, all reference
of the transfered object are null.. However, if I want to transfer a
class that is present in client package (see my organization
in first post), there is no problem...

On 10 mai, 20:32, Sorinel C  wrote:
> Why not using the simple GWT RPC to send objects from the server to
> client?
>
> You have just to extend the IsSerializable interface and that's your
> kind of  POJO :-)
>
> [code]
> public class MyObject extends IsSerializable {
>
>    /* mandatory constructor to be serializable */
>    public MyObject () {
>    }
>
> }
>
> [/code]
>
> See more hints about GWT and more here:http://ui-programming.blogspot.com/
>
> Cheers!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Transfer problem from clien side to server side

2010-05-10 Thread Sorinel C
Why not using the simple GWT RPC to send objects from the server to
client?

You have just to extend the IsSerializable interface and that's your
kind of  POJO :-)

[code]
public class MyObject extends IsSerializable {

   /* mandatory constructor to be serializable */
   public MyObject () {
   }

}
[/code]

See more hints about GWT and more here: http://ui-programming.blogspot.com/

Cheers!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Transfer problem from clien side to server side

2010-05-09 Thread Emeric Heneffe
Still no ideas?

On 5 mai, 10:42, Emeric Heneffe  wrote:
> Hello,
> I'm using a gwt application and I have a problem when I send pojo from
> core module (not client package) to server side. Indeed, when I send
> any pojo with properties, in server side, all properties become
> null... Here is the configuration and the package I use :
>
> core.lib -> librairies
> core.src.java.core.datamodel -> all Pojos
> core.src.java.core.dao -> all dao
>
> web.lib -> librairies used for gxt, gilead...
> web.src.java.web.client -> some classes of gxt
> web.src.java.web.server -> server classes
> web.src.resources.web -> gwt.xml file :
>
> Here is the gwt.xml file
> [code]
>  EN" "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-
> source/core/src/gwt-module.dtd"> EN"
> "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-
> source/core/src/gwt-module.dtd">
> 
> 
> 
> 
> 
>  
> 
> 
>
> 
> 
>
> 
> 
>
> 
> 
>
> 
> [/code]
>
> In web.src.resources, we can find core.gwt.xml, defining bind with
> pojo :
>
> [code]
>  EN"
> "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-
> source/core/src/gwt-module.dtd">
> 
> <-source path='core/datamodel'/>
> 
> 
> [/code]
>
> web.web.WEB-INF -> web.xml, applicationContext.xml, handler-
> servlet.xml
>
> Here is my web.xml
>
> [code]
>  http://www.w3.org/2001/
> XMLSchema-instance" xsi:schemaLocation="ht[code]
> 
> http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> version="2.5">
>
> 
> 
> contextConfigLocation
> 
> classpath:/spring-config-web.xml
> classpath:dao-config-test.xml
> /WEB-INF/handler-servlet.xml
> /WEB-INF/applicationContext.xml
> 
> 
> 
> org.springframework.web.context.ContextLoaderListener listener-class>
> 
>
> 
> org.springframework.web.util.Log4jConfigListener listener-class>
> 
>
> 
> handler
> org.springframework.web.servlet.DispatcherServlet servlet-class>
> 1
> 
> 
> handler
> /argf/service/*
> 
> 
> [/code]
>
> And here is my handler-servlet
>
> [code]
>   xmlns="http://www.springframework.org/schema/beans"; 
> xmlns:xsi="http://www.w3.org/
> 2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/
> schema/p" xmlns:context="http://www.springframework.org/schema/
> context" xmlns:tx="http://www.springframework.org/schema/tx";
> xmlns:aop="http://www.springframework.org/schema/aop";
> xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.5.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>
>   id="urlMapping[code]
> 
> http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:p="http://www.springframework.org/schema/p";
> xmlns:context="http://www.springframework.org/schema/context";
> xmlns:tx="http://www.springframework.org/schema/tx";
> xmlns:aop="http://www.springframework.org/schema/aop";
> xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.5.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>
>
>      class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
>         
>             
>                 
>             
>         
>     
>
>      class="org.gwtwidgets.server.spring.GWTRPCServiceExporter">
>         
>          value="web.client.ARGFService"/>
>     
> 
> [/code]
>
> I don't put exactly the complete path of package.
>
> The fact is that, if I put my datamodel in web.client, everything
> works and my pojos are correctly transfered. But I want to have no
> dependencies between datamodel and gwt, so I prefere use a core
> package independant...
>
> Regards,
> Emeric
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.c