Skip to content

docs: stop calling the deprecated download handler inline() - #6819

Merged
peholmst merged 3 commits into
mainfrom
docs/drop-deprecated-download-inline
Dec 2, 2026
Merged

peholmst merged 3 commits into
mainfrom
docs/drop-deprecated-download-inline

Conversation

@totally-not-ai

@totally-not-ai totally-not-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two pages still chained the deprecated AbstractDownloadHandler.inline() (deprecated for removal in 25.4). This removes those calls.

What changed

  • Map, "Styling Clusters": the custom cluster icon example no longer calls .inline(). Map serves icon images inline by itself in 25.4.
  • Building Apps, "Handle Downloads": the "Inline rendering" bullet no longer points to inline(). It says that components that show content, such as Image, already serve it inline, and that an Anchor takes AttachmentType.INLINE (with a 25.4 badge).

The same deprecated call on the Downloads reference page is handled in #6758.

Test summary

  • Checked against Flow and Flow Components 25.4: the inline() deprecation note, and the Map serializer registering icon images with DownloadDisposition.INLINE.

Working on behalf of Petter

AbstractDownloadHandler.inline() is deprecated for removal. A Map icon is
served inline without it, and an Anchor takes AttachmentType.INLINE
instead.
@peholmst
peholmst marked this pull request as ready for review December 2, 2026 09:06

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes — left 1 comment.

Finding
💬 "Components that show content, such as Image, already do" hides the actual point


- *Progress tracking* — show a progress bar during large downloads using the fluent `whenStart()`, `onProgress()`, and `whenComplete()` callbacks
- *Inline rendering* — display content in the browser instead of downloading it by calling `inline()` on the handler
- *Inline rendering* — display content in the browser instead of downloading it. Components that show content, such as `Image`, already do. [since:com.vaadin:vaadin@V25.4]#For an `Anchor`, pass `AttachmentType.INLINE`#.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 "Components that show content, such as Image, already do" hides the actual point

The sentence reads as a tautology: components that show content show content. The fact the reader needs is that a DownloadHandler passed to such a component is served inline without any extra call — Image.setSrc(DownloadHandler) registers the resource with DownloadDisposition.INLINE (flow-html-components/.../Image.java:256-261), as does IFrame.

Suggested rewrite:

A component that shows the content of a DownloadHandler, such as Image, already serves it inline.

handle-downloads.adoc:127 · clarity

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded as suggested: "A component that shows the content of a DownloadHandler, such as Image, already serves it inline."

@peholmst
peholmst merged commit be54054 into main Dec 2, 2026
10 of 11 checks passed
@peholmst
peholmst deleted the docs/drop-deprecated-download-inline branch December 2, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants