Skip to content

Commit 96fc926

Browse files
committed
Polish
Closes gh-14849
1 parent 56c1247 commit 96fc926

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,10 @@ public class ThymeleafProperties {
102102
private boolean enableSpringElCompiler;
103103

104104
/**
105-
* Whether hidden form inputs acting as markers for checkboxes (which are omitted from
106-
* form submission when unchecked) should be rendered before or after the rendered
107-
* checkbox element itself for better integration with some CSS frameworks. Default is
108-
* "false" (hiddens will be rendered after checkboxes).
105+
* Whether hidden form inputs acting as markers for checkboxes should be rendered
106+
* before the checkbox element itself.
109107
*/
110-
private boolean renderHiddenMarkersBeforeCheckboxes;
108+
private boolean renderHiddenMarkersBeforeCheckboxes = false;
111109

112110
/**
113111
* Whether to enable Thymeleaf view resolution for Web frameworks.
@@ -215,7 +213,7 @@ public void setEnableSpringElCompiler(boolean enableSpringElCompiler) {
215213
}
216214

217215
public boolean isRenderHiddenMarkersBeforeCheckboxes() {
218-
return renderHiddenMarkersBeforeCheckboxes;
216+
return this.renderHiddenMarkersBeforeCheckboxes;
219217
}
220218

221219
public void setRenderHiddenMarkersBeforeCheckboxes(
@@ -239,10 +237,8 @@ public static class Servlet {
239237
private MimeType contentType = MimeType.valueOf("text/html");
240238

241239
/**
242-
* Whether Thymeleaf should start sending partial output to the server's output
243-
* buffers as soon as it becomes available (default), or instead wait until
244-
* template processing is finished, keeping all rendered results in memory until
245-
* that moment and sending them to the server's output buffers in a single call.
240+
* Whether Thymeleaf should start writing partial output as soon as possible or
241+
* buffer until template processing is finished.
246242
*/
247243
private boolean producePartialOutputWhileProcessing = true;
248244

@@ -255,7 +251,7 @@ public void setContentType(MimeType contentType) {
255251
}
256252

257253
public boolean isProducePartialOutputWhileProcessing() {
258-
return producePartialOutputWhileProcessing;
254+
return this.producePartialOutputWhileProcessing;
259255
}
260256

261257
public void setProducePartialOutputWhileProcessing(

spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ content into your application. Rather, pick only the properties that you need.
512512
spring.thymeleaf.reactive.full-mode-view-names= # Comma-separated list of view names (patterns allowed) that should be executed in FULL mode even if a max chunk size is set.
513513
spring.thymeleaf.reactive.max-chunk-size=0B # Maximum size of data buffers used for writing to the response.
514514
spring.thymeleaf.reactive.media-types= # Media types supported by the view technology.
515+
spring.thymeleaf.render-hidden-markers-before-checkboxes= # Whether hidden form inputs acting as markers for checkboxes should be rendered before the checkbox element itself.
515516
spring.thymeleaf.servlet.content-type=text/html # Content-Type value written to HTTP responses.
517+
spring.thymeleaf.servlet.produce-partial-output-while-processing # Whether Thymeleaf should start writing partial output as soon as possible or buffer until template processing is finished.
516518
spring.thymeleaf.suffix=.html # Suffix that gets appended to view names when building a URL.
517519
spring.thymeleaf.template-resolver-order= # Order of the template resolver in the chain.
518520
spring.thymeleaf.view-names= # Comma-separated list of view names (patterns allowed) that can be resolved.

0 commit comments

Comments
 (0)