Re: MVP : model and duplicate

2010-07-07 Thread SimonM
My bad, you're right. I was confused and forgot about Serialization.

Thank you for pointing it out !

Simon


On 7 juil, 16:19, Stefan Bachert  wrote:
> Hi Simon,
>
> One question is what do you mean with "duplicate"?
>
> In a client-server environment there is an absolute need to duplicate
> the value of an object.
> Because you need it on server and client side. The process is called
> serialization.
> However, you can use the same class on both sides.
>
>  When you client just need a smaller set of attributes than your
> domain object offers, you need different classes.
> The latter happens when multiple applications are working on the same
> domain objects.
>
> There are a lot of object/classes which are some how similar but used
> in different technical context( e.g with/without lazy loading from
> database)
> - objects representing database entities (ENTITES)
> - objects representing domain objects/model objects (DomainObject,
> Business Objects)
> - objects representing a snapshot of domain objects
> (DataTransferObjects, ValueObject)
>
> Stefan Bacherthttp://gwtworld.de
>
> On 7 Jul., 11:10, SimonM  wrote:
>
>
>
> > Hi,
>
> > I have some troubles with MVP : as I have understood, the model should
> > just be business objects which are present in a shared package, so
> > client and server can access them from a GWT point of view.
>
> > In a three layered application how do you not duplicate these business
> > objects, while you have beans used in the business layer ? From what I
> > understand they are the same objects but in two different layers, so
> > we need two different classes.
>
> > Where is my mistake ?
>
> > Simon

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



MVP : model and duplicate

2010-07-07 Thread SimonM
Hi,

I have some troubles with MVP : as I have understood, the model should
just be business objects which are present in a shared package, so
client and server can access them from a GWT point of view.

In a three layered application how do you not duplicate these business
objects, while you have beans used in the business layer ? From what I
understand they are the same objects but in two different layers, so
we need two different classes.

Where is my mistake ?

Simon

-- 
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: Problem with Eclipse, Google plugin and WTP

2010-07-07 Thread SimonM
Hey Rajeev,

The WAR folder is set to WebContent.
The box was checked, so I unchecked it, but it didn't change the fact
the libs weren't copied/deployed correctly.


Thanks for helping,

Simon

On 2 juil, 19:18, Rajeev Dayal  wrote:
> Hey Simon,
>
> If you navigate to the smart-ui project properties -> Google -> Web
> Application, what is the WAR folder set to? Is the "Launch and Deploy From
> this Directory" box checked? In your case, it should not be.
>
> Rajeev
>
>
>
> On Wed, Jun 30, 2010 at 7:29 AM, SimonM  wrote:
> > Hello,
>
> > I have troubles with WTP and Google plugin for Eclipse.
>
> > I have one Dynamic Web Application Project, and I use GWT in this
> > project. It's smart-ui.
>
> > I have a Java Project which contains all business logic, it's smart-
> > business : smart-ui depends on smart-business. All is correctly
> > exported in Java EE Module Dependencies.
>
> > Now I use WTP to deploy on a local JBoss, and all is working except
> > one thing : the libraries of project-ui are not deployed in WEB-INF/
> > lib. The project itself is compiled, packaged and deployed in this
> > directory.
>
> > I have found after investigating several hours I can deploy correctly
> > if I set in the Java Build Path (in Eclipse)  the Default output
> > folder to build/classes (and not WebContent/WEB-INF/classes). All libs
> > are present in WEB-INF/lib. I can even set the folder to build/
> > classes for example, it works.
>
> > Meanwhile I have a new error in my project :
> > The output directory for the project should be set to /smart-ui/
> > WebContent/WEB-INF/classes      smart-ui-gxt            Unknown Google Web
> > App
> > Problem
>
> > If I set the Default output folder back to WebConten/WEB-INF/classes,
> > I don't have the error anymore but the libs aren't exported to WEB-INF/
> > lib.
>
> > I think there are some incompatibilities between WTP and Google plugin
> > there.
>
> > Am I missing something ? Is this a know issue and does a workaround
> > exist ?
>
> > Thanks for helping.
>
> > Simon
>
> > --
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://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: Problem with Eclipse, Google plugin and WTP

2010-07-02 Thread SimonM
Hi,

That's what we did as a fix, but it's not the way it should work.
Otherwise we have to copy libs each time we add some in our business
project which is not the way to go imho.



On 1 juil, 15:04, Sebastian Rothbucher
 wrote:
> Hi, can you not copy all libs to WEB-INF/lib and include them from
> there? Let me know if this helps...
>
> On Jun 30, 1:29 pm, SimonM  wrote:
>
>
>
> > Hello,
>
> > I have troubles with WTP and Google plugin for Eclipse.
>
> > I have one Dynamic Web Application Project, and I use GWT in this
> > project. It's smart-ui.
>
> > I have a Java Project which contains all business logic, it's smart-
> > business : smart-ui depends on smart-business. All is correctly
> > exported in Java EE Module Dependencies.
>
> > Now I use WTP to deploy on a local JBoss, and all is working except
> > one thing : the libraries of project-ui are not deployed in WEB-INF/
> > lib. The project itself is compiled, packaged and deployed in this
> > directory.
>
> > I have found after investigating several hours I can deploy correctly
> > if I set in the Java Build Path (in Eclipse)  the Default output
> > folder to build/classes (and not WebContent/WEB-INF/classes). All libs
> > are present in WEB-INF/lib. I can even set the folder to build/
> > classes for example, it works.
>
> > Meanwhile I have a new error in my project :
> > The output directory for the project should be set to /smart-ui/
> > WebContent/WEB-INF/classes      smart-ui-gxt            Unknown Google Web 
> > App
> > Problem
>
> > If I set the Default output folder back to WebConten/WEB-INF/classes,
> > I don't have the error anymore but the libs aren't exported to WEB-INF/
> > lib.
>
> > I think there are some incompatibilities between WTP and Google plugin
> > there.
>
> > Am I missing something ? Is this a know issue and does a workaround
> > exist ?
>
> > Thanks for helping.
>
> > Simon

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



Problem with Eclipse, Google plugin and WTP

2010-06-30 Thread SimonM
Hello,

I have troubles with WTP and Google plugin for Eclipse.

I have one Dynamic Web Application Project, and I use GWT in this
project. It's smart-ui.

I have a Java Project which contains all business logic, it's smart-
business : smart-ui depends on smart-business. All is correctly
exported in Java EE Module Dependencies.

Now I use WTP to deploy on a local JBoss, and all is working except
one thing : the libraries of project-ui are not deployed in WEB-INF/
lib. The project itself is compiled, packaged and deployed in this
directory.

I have found after investigating several hours I can deploy correctly
if I set in the Java Build Path (in Eclipse)  the Default output
folder to build/classes (and not WebContent/WEB-INF/classes). All libs
are present in WEB-INF/lib. I can even set the folder to build/
classes for example, it works.

Meanwhile I have a new error in my project :
The output directory for the project should be set to /smart-ui/
WebContent/WEB-INF/classes  smart-ui-gxtUnknown Google Web App
Problem

If I set the Default output folder back to WebConten/WEB-INF/classes,
I don't have the error anymore but the libs aren't exported to WEB-INF/
lib.


I think there are some incompatibilities between WTP and Google plugin
there.

Am I missing something ? Is this a know issue and does a workaround
exist ?


Thanks for helping.

Simon

-- 
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: Google Plugin for Eclipse 1.3 Preview is now available

2010-03-18 Thread SimonM
I got it working (Eclipse 3.5, WTP 3.1, GPE 1.3) and it's working fine
except two things.

- I deploy onTomcat, and the devmode tells me to use a bad url :
http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997, while it
should be http://127.0.0.1:8080/test/index.html?gwt.codesvr=127.0.0.1:9997

- when I load the webpage or refresh it, I got a ton of error messages
like this one :
18:46:54.380 [ERROR] [openpronos] Errors in 'file:/C:/OP/workspace/
test-core/src/main/java/org/zanton/test/business/
ClassementService.java'
  18:46:54.450 [ERROR] [openpronos] Line 12: No source code is
available for type org.zanton.test.exception.EmptyPronosticException;
did you forget to inherit a required module?

It doesn't prevent the page from correctly loading but it's strange. I
looked at the launch configuration, and the sources are in the
Classpath and Source tabs.


Thanks for helping.

On 17 mar, 11:22, andreas  wrote:
> Hi Keith,
>
> I'm looking for the classpath settings now. Here's what "mvn gwt:run"
> uses:
>
> /bin/sh -c /usr/lib/jvm/java-6-sun-1.6.0.15/jre/bin/java -Xmx512m -
> classpath "/home/ahorst/workspace/App/src/main/java":"/home/ahorst/
> workspace/App/src/main/resources":"/home/ahorst/workspace/App/war/WEB-
> INF/classes":"/home/ahorst/.m2/repository/com/google/gwt/gwt-servlet/
> 2.0.3/gwt-servlet-2.0.3.jar":"/home/ahorst/.m2/repository/com/google/
> gwt/gwt-user/2.0.3/gwt-user-2.0.3.jar":"/home/ahorst/.m2/repository/
> com/google/gwt/gwt-dev/2.0.3/gwt-dev-2.0.3.jar"
> com.google.gwt.dev.DevMode -war "/home/ahorst/workspace/App/war" -gen
> "/home/ahorst/workspace/App/target/.generated" -logLevel INFO -port
>  -startupUrl "com.my.example.App.Application/Application.html"
> com.my.example.App.Application
>
> While the run configuration of GEP lists the following entries:
>
> - Bootstrap Entries
>   - JRE System Library [JavaSE-1.6]
> - User Entries
>   - java - /App/src/main/
>   - resources - /App/src/main/
>   - java - /App/src/test/
>   - App (default classpath)
>     - App
>     - Maven Dependencies
>     - GWT SDK [GWT - 2.0.3]
>
> The java source folder is the first entry, but no code changes
> reflected on refresh with the GEP run configuration. "mvn gwt:run"
> though does it. Are the Bootstrap Entries conflicting here?
>
> On 15 Mrz., 21:05, Keith Platfoot  wrote:
>
>
>
> > @Andreas: Forgot to mention that if you're *not* using Eclipse for Java
> > EE, when you make changes to server-side code, you will also need to restart
> > GWT embedded Jetty instance.  For GWT 2.0+, click the Restart Server button
> > in the Development Mode view, or for older versions of GWT, the Reload
> > Server button on the Hosted Mode shell toolbar.
>
> > Keith
>
> > On Mon, Mar 15, 2010 at 2:27 PM, Keith Platfoot wrote:
>
> > > Hi Andreas,
>
> > > It looks like you're following the correct procedure, and you indicated
> > > that you were able to load the application in devmode, but you're not 
> > > seeing
> > > code changes reflected when you Refresh the browser.  It might help if I
> > > explain briefly how changes are *supposed* to be reflected, and suggest a
> > > few ideas for things to check if refresh is not working:
>
> > > - Client-side code changes should *always* be reflected when you click
> > > Refresh in your browser during a devmode session, regardless of your 
> > > source
> > > folders' build output paths.  This is because GWT devmode is actually 
> > > using
> > > your .java source files, not the compiled .class files.  Double-check in
> > > your launch configuration's Classpath tab that your source folders appear 
> > > at
> > > the top of the User Entries section.  If your gwt:run goal 
> > > *does*correctly reflect code changes in devmode when you Refresh, it 
> > > would be
> > > useful to compare the devmode process arguments in that case to the 
> > > devmode
> > > process created by the Eclipse launch configuration (you can find the
> > > arguments in Eclipse by right-click > Properties the "java" process in the
> > > stacktrace view in the Debug perspective).  Let me know if there are
> > > differences between the two sets of arguments.
>
> > > - Server-side code changes will only be reflected if the compiled .class
> > > files are propagated to your runtime WAR directory's WEB-INF/classes
> > > directory.  As you mentioned, one way to do this is to set your source
> > > folders' build output paths to your runtime WAR directory's 
> > > WEB-INF/classes
> > > directory.  Of course, Eclipse must also be configured to build
> > > automatically (Project > Build Automatically).  If server-side code 
> > > refresh
> > > is still not working, you might try making a change, and then manually
> > > verifying that the runtime WAR directory is getting the new .class file in
> > > WEB-INF/classes.
>
> > > - Changes to your HTML/CSS/other static resources will need to be mirrored
> > > in your runtime WAR directory (similar to server-side code changes).  I'm
> > > not aware of any out-of-the-box