Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
HttpRequest login method and Push
Hi all!
Latest Vaadin framework. I have application which use HttpRequest login metod.
@Theme("mytheme")
@Widgetset("org.mycompany.logintest.MyAppWidgetset")
@CDIUI("")
@PreserveOnRefresh
public class MyUI extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
try {
VaadinServletService.getCurrentServletRequest().login("user", "password");
} catch (ServletException ex) {
logger.info(MessageFormat.format("Login failed for user {0}", "user"));
}
}
}
All work fine. But if i add @Push annotation to my main class login method stop work. Just nothing happens!
Bug or feature?
Thanks.
Last updated on
You cannot reply to this thread.