CustomLayout doesn't respect Vaadin Servlet custom static location path
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Originally by blackbeltdev
Setting a custom vaadin resource location doesn't work with custom layouts.
vaadinServlet.setInitParameter(Constants.PARAMETER_VAADIN_RESOURCES, "/static");
I know that this can be worked around using classloader and inputstream but would be nice if this worked out of the box with non-default static file locations.
Imported from https://dev.vaadin.com/ issue #12349
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how custom layouts resolve static resources when the servlet parameter Constants.PARAMETER_VAADIN_RESOURCES is set to "/static". Verify the behavior with a custom layout and confirm that resources are loaded from the configured non-default location rather than only the default path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100