mlottmann / vstepper Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi Matthias,
When I include VStepper in my WAR, my application will no longer start correctly in Tomcat. It gives the following error:
Caused by: java.lang.IllegalStateException: Unable to find ServletContextHandler for provided ServletContext
at org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer.onStartup(NativeWebSocketServletContainerInitializer.java:120)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5140)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 43 more
I build my application as WAR to easily deploy it to Heroku. Without VStepper, my application works as expected. To isolate the issue, have varied also the Vaadin version, the Spring Boot version and the Tomcat version, but this did not have any effect and gave me the same error with VStepper and no error without VStepper.
I tried to see if I could find anything that could explain this behaviour in the VStepper-1.0.7.jar
, e.g. an extra server.xml
file, but I did not find anything strange.
I have no problem when I start my application locally via main Application extends SpringBootServletInitializer
.
I am using:
Vaadin 14.1.25
Spring Boot 2.2.6.RELEASE
Tomcat 9.0.33
Your thoughts are highly appreciated. ๐๐ป
build-frontend target fails on production-mode with NullPointerException.
See https://stackoverflow.com/questions/76331952/why-am-i-getting-cannot-invoke-java-lang-class-isinterface-error-during-vaad
It would be nice (if possible) to have at the Step a button SKIP with the respective Override
i.e.
@Override protected void onSkip() { doSomething(); }
Suppose we want to create a user but the address is not mandatory, instead of just enabling the "Next" when everything is correct, we could have a Skip button which is more 'user friendly' right before the "Next" button, have the Step enabled with skip (i.e. on create) so that the button is not shown on Steps are do not need the Skip button,
public class AddressStep extends Step{ public AddressStep(){ setHeader(2,"Address"); setContent(xxxxx); setSkipEnabled(true); } }
and if the user presses the "Skip" button , we could handle that and move on to the next step.
With ValidationMode.ON_NEXT all steps are validated on next click, but for the first step the validation is executed one time when adding the first step on initalisation because the validationMode isn't checked.
The Validation shouldn't be executed in that case.
Very nice component, thanks...!
Unfortunately, it seems the visuals are off when integrating in a non-white background, see:
I am trying to fix with little CSS experience, see:
The issue is that the greyscale backgrounds add up and become darker, which conflicts in the .number-wrapper style, which is used to move the line ends to the background. Any thoughts on this would be much appreciated.
Would you be able to support a Full Stack App / Bakery demo App style look...?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.