Skip to content

Support rendering multiple fragments  #33162

Closed
@rstoyanchev

Description

@rstoyanchev

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.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions