bonjour

j'ai un problème dans mon code ,qui fait l'authentification
lorsque je tape login et acceuil il me cré une autre fenétre acceuil.html mais quand j'écris rien il va aussi a cette page alors je veux qu'il m'affiche une alerte :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
public class Example implements EntryPoint {
	private Label Bienvenue;
	//private SessionInfo sessionInfo = null;
	//private static PersonneInfoContext personneInfoContext;
	private String userId;
 
	      public void onModuleLoad() {
	            RootPanel rootPanel = RootPanel.get();
 
  final VerticalPanel verticalPanel = new VerticalPanel();
  rootPanel.add(verticalPanel);
  verticalPanel.setSize("100%", "100%");
  verticalPanel.setVerticalAlignment
   (HasVerticalAlignment.ALIGN_MIDDLE);
   verticalPanel.setHorizontalAlignment
  (HasHorizontalAlignment.ALIGN_CENTER);
   Bienvenue =new Label("Bienvenue");
   verticalPanel.add(Bienvenue);	  
 
  // Table dans laquelle on place les éléments
  final FlexTable flexTable = new FlexTable();
  verticalPanel.add(flexTable);
  flexTable.setStyleName("example-verticalpanel");
 
  // Bouton de validation
  final Button validateButton = new Button();
  flexTable.setWidget(2, 2, validateButton);
  validateButton.setText("Validate");
   // Login label + text box
  final Label loginLabel = new Label("Login");
  flexTable.setWidget(0, 0, loginLabel);
  final TextBox login = new TextBox();
  flexTable.setWidget(0, 1, login);
  login.setWidth("200px");
 
   // Password label + text box
  final Label passwordLabel = new Label("Password");
  flexTable.setWidget(1, 0, passwordLabel);
  final TextBox password = new TextBox();
  flexTable.setWidget(1, 1, password);
  password.setWidth("200px");
 
  final MyServiceAsync svc = (MyServiceAsync) GWT.create(MyService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) svc;
    endpoint.setServiceEntryPoint("/myService");
 
    Button closeButton = new Button("Deconnection");
 
 
 
   // CheckBox rememberMeOnCheckBox = new CheckBox();
	//flexTable.setWidget(2, 1, rememberMeOnCheckBox);
	//rememberMeOnCheckBox.setText("Remember me on this computer.");
 
 
     validateButton.addClickListener(new ClickListener() {
 
  public void onClick(Widget sender) {
 
  AsyncCallback callback = new AsyncCallback() { 
  public void onSuccess(Object result) {
	  Personne p;
	  p = new Personne();
 
	  com.google.gwt.user.client.Window.open("acceuil.html","login","paswword");
	  /*("acceuil.html?login=" + login.getText() +
               "&password=" + password.getText(), "", "");*/
	        	                                }
 
  public void onFailure(Throwable ex) {
 
	  com.google.gwt.user.client.Window.alert("erreur");
	     }
	 };
     svc.Login(login.getText(),password.getText(), callback);
	                	}
          });
 
 
	  closeButton.addClickListener(new ClickListener() {
 
	    	    public void onClick(Widget sender) {
 
	    	    Example.this.Deconnecte(); 
	    	    }
	    	    }); 
	  }
 
	public String Deconnecte(){
 
		return null;
	}