How to show a window on page load and another related question.

Hi,

I have been trying out Vaadin for past couple of days to build a demo application. Its a simple application, with user login and then show some tabs.

My questions are:

  1. When the users visits http://localhost:8080/DemoApp/vaadin, how to show a login window rather than the user clicking on a ‘Click to Login’ link (I am currently doing this) which then shows the login window with username and password textfields along with a button.

  2. Next question is related to first one. So when user successfully logs in, I want to show a tabsheet. How do I remove/hide the Login window and show the tabsheet to the user after successful login.
    I am able to remove the login window

by using mainwindow.removeWindow(loginWindow); but don’t know how to show the tabsheet/ or any other component.

Tips, sample code will be very helpful.

Thanks.

Cheers!
jAY

Hi Jay,
there is tutorial on the vaddin wiki about authenticating vaadin based apps.


http://vaadin.com/wiki/-/wiki/Main/Authenticating%20Vaadin-based%20applications

Greets
Stefan

Thanks a lot Stefan. That article is very good. :slight_smile: Thanks again. :slight_smile: