UserLogin
which also represents my entrypoint . I ask for a password and login to the user, I make my server side check and I get a response in the form of a string representing an xml file
that I must parse and generate the widget with the coded information this xml
.onModuleLoad ()
method that will parse the response from the server and display the desired elements.GWT is Single Page Web Application,to Navigating one Screen to other screen just clear layout Container and add the newly created Container to RootPanel
.See example code,
HorizontalPanel hp=new HorizontalPanel();
Button btn=new Button("Login");
hp.add(new TextBox());
hp.add(new PasswordTextBox());
hp.add(btn);
RootPanel.get().add(hp);
btn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
RootPanel.get().clear();
RootPanel.get().add(new screen());
}
});