In my vaadin application, I'm trying to create a login form. If I use default login form provided by vaadin framework. I can set the posting of the user entered data via .setAction() method to spring security.
private LoginForm login = new LoginForm();
public Login(){
addClassName("login-view");
setSizeFull();
setAlignItems(Alignment.CENTER);
setJustifyContentMode(JustifyContentMode.CENTER);
**login.setAction("login");**
add(new H1("Vaadin CRM"), login);
}
However, I don't want to use this login form, rather use the custom designed form created by horizontal layout or whatever. Problem is, any of these components or layouts don't have this .setAction() method where I can submit the data post to "login" location. I also couldn't find solution or source about this on their website. Because of this, spring security doesn't retrieve these username password data. How can I overcome this problem? Thanks in advance.