Skip to content
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

Support rendering multiple fragments #33162

Closed
rstoyanchev opened this issue Jul 8, 2024 · 0 comments
Closed

Support rendering multiple fragments #33162

rstoyanchev opened this issue Jul 8, 2024 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

rstoyanchev commented Jul 8, 2024

HTML focused libraries such as htmx.org and @hotwired/turbo with HTML-over-the-wire support use of multiple HTML fragments to update the page. The current assumption in Spring MVC and WebFlux, however, is that HTML rendering is with a single top-level view and model. There is no explicit support for rendering multiple fragments, each with its own model and view.

It is possible to do, and it is supported for example in htmx-spring-boot, but it is something we can help with to make it easier to write HTML-over-the-wire applications.

Originally this was requested in #27652. For this issue the goal is to add support for multiple fragments in a single response. After that can add support for rendering fragments over an Server-Sent Events stream.

@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Jul 8, 2024
@rstoyanchev rstoyanchev added this to the 6.2.0-M5 milestone Jul 8, 2024
@rstoyanchev rstoyanchev self-assigned this Jul 8, 2024
@rstoyanchev rstoyanchev changed the title Support multi-view rendering Support rendering multiple fragments Jul 8, 2024
rstoyanchev added a commit that referenced this issue Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant