I don’t understand why classes (beans) which are located inside “clent” package work fine on server side? In GWT module “client” package I set as <source path='client'/>
I always think that I need to locate my classes into Shared package.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s just a convention really. If the class is just a bean and can be used on the server too, then sure, put it in
shared.Some beans may not actually be used on the server in some cases however, so putting them in a
shareddirectory may be a premature optimization.