Client side source code must reside under the client sub-package. You should
move the DAO's from the com.entities.* package to
com.extjs.gxt.samples.desktop.client.entities.* package.

If you don't like the client sub-package, you can add additional packages
using the <source path="">. Refer to Organize
Projects<http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html>chapter
in the documentation for more information.

> Modules can specify which subpackages contain translatable *source*,
> causing the named package and its subpackages to be added to the *source
> path*. Only files found on the source path are candidates to be translated
> into JavaScript, making it possible to mix 
> client-side<http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasics.html#DevGuideClientSide>and
> server-side<http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideServerSide>code
>  together in the same classpath without conflict. When module inherit
> other modules, their source paths are combined so that each module will have
> access to the translatable source it requires.
>

--Sri



On 28 April 2010 13:32, efsiken <[email protected]> wrote:

> Hi, I'm working on MyEclipse Enterprise workbench 6.5 and java5. I
> added hibernate capabilities to my gwt project and generated some
> classes through reverse engineering from the database. Then I created
> a class in which I used the generated classes. Here is the code of the
> class:
>
> package
> com.extjs.gxt.samples.desktop.client.widget;
>
> import
> com.entities.Evuti;
> import
> com.entities.Evlang;
> import
> com.entities.*;
>
> import
> java.util.ArrayList;
>
> public
> class Connection {
>
> protected String login;
>
> protected String password;
>
> ArrayList<String> loginList = new ArrayList<String>();
>
> ArrayList<String> passwordList =new ArrayList<String>();
>
> ArrayList<String> nameList =new ArrayList<String>();
>
> ArrayList<String> langList = new ArrayList<String>();
>
> ArrayList<Evuti> list = new ArrayList<Evuti>();
>
> ArrayList<Evlang> list1 = new ArrayList<Evlang>();
>
> EvlangDAO langDAO = new EvlangDAO();
>
> Evlang lang = new Evlang();
>
> EvutiDAO usersDAO = new EvutiDAO();
>
> Evuti users = new Evuti();
>
> @SuppressWarnings({ "unchecked", "unchecked" })
> public ArrayList<String> getLogin(){
> list = (ArrayList<Evuti>) usersDAO.findAll();
> for(int i=0; i<list.size();i++){
> loginList.add(list.get(i).getCuti());
> }
> return loginList;
> }
>
> @SuppressWarnings("unchecked")
> public ArrayList<String> getPassword(){
> list = (ArrayList<Evuti>) usersDAO.findAll();
> for(int i=0; i<list.size();i++){
> passwordList.add(list.get(i).getMotp());
> }
> return passwordList;
> }
>
> @SuppressWarnings("unchecked")
> public ArrayList<String> getNames(){
> list = (ArrayList<Evuti>) usersDAO.findAll();
> for(int i=0; i<list.size();i++){
> nameList.add(list.get(i).getNomu());
> }
> return nameList;
> }
>
> public boolean connect(String login, String password){
> boolean correct = false;
> ArrayList<String> logins = this.getLogin();
> ArrayList<String> passwords = this.getPassword();
>
> if((logins.contains(login)&&(passwords.contains(password))&&(logins.indexOf(login)==passwords.indexOf(password))))
> {
> correct = true;
> }
> return correct;
> }
>
> @SuppressWarnings("unchecked")
> public ArrayList<String> getLanguage() {
> list = (ArrayList<Evuti>) usersDAO.findAll();
> for(int i=0; i<list.size();i++){
> nameList.add(list.get(i).getNomu());
> }
>
> return langList;
> }
> }
>
> here is the error:
>
>
> [ERROR] Errors in 'file:/C:/Projets/java/webtop/src/com/extjs/gxt/
> samples/desktop/client/widget/Connection.java'
> [ERROR] Line 24: No source code is available for type
> com.entities.Evuti; did you forget to inherit a required module?
> [ERROR] Line 26: No source code is available for type
> com.entities.Evlang; did you forget to inherit a required module?
> [ERROR] Line 28: No source code is available for type
> com.entities.EvlangDAO; did you forget to inherit a required module?
> [ERROR] Line 32: No source code is available for type
> com.entities.EvutiDAO; did you forget to inherit a required module?
>
> tnx
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to