Re: Client side vs Server side models

2009-06-08 Thread mnenchev
What if the persistence layer is ejb for example? Miroslav Genov wrote: You don't have any problems to access client classes from server side code. Just put all your model classes into client package and use them in the persistence layer. Kwhit wrote: I'm building my first serious

Re: Client side vs Server side models

2009-06-08 Thread Keith Whittingham
From an architectural point of view I don't think it's very clean to have classes that belong to the server side on the client side. Sooner or later I'd regret it I'm sure. No, the more I play around, the more I like the model I proposed. The OO model on the client side is likely to be

Re: Client side vs Server side models

2009-06-08 Thread TazmanianD
Sharing classes on both the server and client has advantages and disadvantages. Some of the advantages are that you don't have to write special transport or serialization code to translate from server to client objects. Another is that you can then write code that works on both the client and

Re: Client side vs Server side models

2009-06-08 Thread nellyville
Think about performance too. If you have a bunch of unecessary data being transferred across the wire your app will be slower. On Jun 8, 1:25 am, Keith Whittingham kwhitting...@gmail.com wrote:  From an architectural point of view I don't think it's very clean to   have classes that belong to

Re: Client side vs Server side models

2009-06-08 Thread Eduardo Nunes
How do you organize your gwt mvc application? - gwt on the view - some java pojos (or ejb3) on the model - ?? on the controller Considering that you have to show the first name, last name and e-mail address and your User entity has many other fields, do you have a service method getUserInfo that

Re: Client side vs Server side models

2009-06-07 Thread TazmanianD
Actually, GWT doesn't impose any requirements as to where you put your source files, it just defaults to client. You just need to make sure you have a GWT module.xml that references the specific directories containing the files you want to include for the client that the module represents.

Client side vs Server side models

2009-06-06 Thread Kwhit
I'm building my first serious GWT app and am looking for a 'template' model to structure things. On the client side I need much the same objects to populate the UI as on the server side to handle persistence. Let's say I need Employee on the client side to edit employee details and then I need

Re: Client side vs Server side models

2009-06-06 Thread Miroslav Genov
You don't have any problems to access client classes from server side code. Just put all your model classes into client package and use them in the persistence layer. Kwhit wrote: I'm building my first serious GWT app and am looking for a 'template' model to structure things. On the client