This is a wonderful framework, It is very useful to develop colorful web apps. However, I’m totally frustrated by some unexpected things happening in it. I know it is hard to create such a framework where client and server side coding can be done at the same time. It saved me time.
But, I donno why I’m getting communication error, session expired notification, app freeze in the server environment. However, Everything works perfectly fine in my local environment.
Can anyone please tell me why I’m facing these issues?
Session expired message? (I set the session to expire after 300 minutes. But it happens before. But, not all the time)
App freezes sometimes. (I can click buttons, But no use… No actions… Only way is to restart)
Very bad performance in IE. (I know it is common for all web apps. But, my application when compared to other browser; IE totally sucks. Someone please talk with gates to stop IE…
Lazy loading in treetable will be really helpful for me.
Quite many questions, some of which would require much more details to consider. For example, if you have some app freezing problems, you should try to isolate the exact problem somehow. In the end, it may not have anything to do with Vaadin.
Your problems with different users could be caused by using invalid references in threads or with static variables, or something like that. It is important to know that all user sessions run in the same servlet, so you need to be careful with global references and threads.
To get rid of unhandled component exception error indicators, you can disable them altogether with:
UI.getCurrent().setErrorHandler(new DefaultErrorHandler() {
@Override
public void error(com.vaadin.server.ErrorEvent event) {
// Do not call the default error handling in doDefault()
}
});
However, you might want to at least log such errors, as they usually indicate that errors have not been handled properly in your UI code.
For the bad performance of IE, i would like to share my experience.
At the beginning, i used Vaadin 7 designer to draw screen with the absolute layout. But the loading time in IE8 was very slow. nearly 8 seconds.
Later i gave up the designer and rebuilt the screen using vertical layout and horizontal layout. The speed become acceptable in IE8, arround 2 seconds. Hope this can help you.