From dacc31e3d31527f2fbd75122bb75ffb24758a2a8 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 26 May 2016 19:18:30 +0200 Subject: [PATCH] For attribute is not actually required Issue: SPR-14287 --- .../org/springframework/web/servlet/tags/form/LabelTag.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/LabelTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/LabelTag.java index f8dd7f28e8..cf1e2e6c90 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/LabelTag.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/LabelTag.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ import org.springframework.util.StringUtils; * Databinding-aware JSP tag for rendering an HTML '{@code label}' element * that defines text that is associated with a single form element. * - *

The {@link #setFor(String) 'for'} attribute is required. - * *

See the "formTags" showcase application that ships with the * full Spring distribution for an example of this class in action. *