Authenticating Vaadin based Applications
My application uses authentication mechanism using a LoginWindow described in
With that if I use confirmDialog, after successful login and application loading data in a table, as such
ConfirmDialog.show(getMainWindow(), "Delete Entry:", "Are you sure?", "Yes", "No",
new ConfirmDialog.Listener() {
public void onClose(ConfirmDialog dialog) {
if (dialog.isConfirmed()) {
table.removeItem(table.getValue());
close();
}
}
});
upon closing the dialog, it takes me back to the login window instead of the application window
My logical coding flow is -
- Launch login window
- On successful authentication,
[indent]
[/indent]create a new window w
[indent]
[/indent]setMainWindow(w)
[indent]
[/indent]build application layout
[indent]
[/indent]set layout to window w
[indent]
[/indent]load data
-
From the loaded table data, context menu “Delete Entry” invokes the confirmDialog as shown above
-
When confirming yes, the table removes the item, popup closes but the main page goes back to login window instead of application window and I am forced to restart my application
Any help is appreciated
Thanks
Nilesh