vaadin / vaadin/framework

CustomLayout doesn't respect Vaadin Servlet custom static location path

Open
#4,295 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.