Hi all,

I am not sure this is the right place to post technical questions - if
not, where should I do it? - But I am facing this problem:

I have a class called LoginBean with two Strings, username and
password.
Before I import it in the class that implements EntryPoint, the UI
shows correctly. As soon as I import it, the interface stops working.
Also, if Login is created as inner class then it all works again

here is the login class:

----------

package com.monkee.beans;

public class Login
{
        private String name;
        private String password;

        public Login ( String n, String p )
        {
                this.name       = n;
                this.password   = p;
        }

        Login () {}

        public String getName() {
                return name;
        }
        public void setName(String name) {
                this.name = name;
        }
        public String getPassword() {
                return password;
        }
        public void setPassword(String password) {
                this.password = password;
        }
}


and the beginning of the class implementing it

---------

package com.monkee.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

import com.monkee.beans.Login;

public class Monkee implements EntryPoint
{
        private TextBox                 loginName                       = new 
TextBox ();
        private PasswordTextBox loginPassword           = new PasswordTextBox 
();
        private Label                   loginLabel                      = new 
Label ( "User name" );
        private Label                   loginPasswordLabel      = new Label ( 
"Password" );
        private Button                  loginButton             = new Button ( 
"Login" );
        private Label                   failedNameValLabel      = new Label ();
        private Label                   failedPwdValLabel       = new Label ();
        private FlexTable               loginTable                      = new 
FlexTable ();
        private HorizontalPanel loginPanel                      = new 
HorizontalPanel ();
        Login loginDetails                                                      
= new Login ();

        public void onModuleLoad()
        {

.........

---------

Do I need to implement some particular interface to make it work as
public class?

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