-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vaadin-Spring + Spring security prevents WidgetSet addSessionInitListener #7
Comments
Is there any workaround on this one ? |
Could you try with Vaadin 7.7.0.alpha3 (and its CDD mode for widgetset) ? That don't use web listener anymore, so it might work without workarounds. |
I'm using like below but it doesnt compile the widgetset ? What am i missing?
|
btw, I removed |
I think both update and compile should(/can) be there. fetch mode just compiles the widgetset in the cloud, but hosts in from your war file. Do you have some small example project I could try and debug? |
Just preparing a small example. But please correct me if I understand correctly:
|
Update: I managed to make it work:
Please see attched picture |
I looked to the source code. I suppose |
That " |
It works, it is just that the logging is invalid when the mode "fetch" is used. |
I created an issue about this: https://dev.vaadin.com/ticket/19944 |
Matti, You sad it worked. In which folder the widgetset downloaded ?? And how can I control it ? Because it's a spring-boot setup, my app, it should be in a |
Those are generated resources and should NOT go under src directory . By default those go to target/classes/, where they are served by the VaadinServlet, also in Spring Boot based app. |
Remove your warSourceDirectory configuration and execute "mvn clean install" |
Below is the current config. It's still same. widgetset created/downloaded to anywhere.
|
You are missing the compile goal:
|
Perfect. Now it's working. Thanks for help & advice. Hope to see 7.7.0 GA in near future. |
I'm using vaadin-spring, Spring security 4. I have an HTML login page, after successfull login, my Vaadin app. is loading. Problem is, When WidgetSet init. after session creation, Vaadin Service is null. it's initialized after login.
What I did, I extended SpringVaadinServlet and override servletInitialized() method & added the listener and other params from WidgetSet.
Is there a better way to do it?
The text was updated successfully, but these errors were encountered: