spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.65k stars 38.14k forks source link

form:errors not allowed in a nested JSP outside the scope of form:form [SPR-2775] #7462

Closed spring-projects-issues closed 12 years ago

spring-projects-issues commented 18 years ago

Mark Smith opened SPR-2775 and commented

The assertion in ErrorsTag.java: onWriteTagContent() is assuming that the form:form tag is in the same document as the one being processed. This effectively disallows JSP nesting and reuse when it is necessary to have the form:form tag outside the nested page.

I'm not sure if this really IS a bug. I know it is a safety mechanism but the case can also be made it gets in the way.


Affects: 2.0 final

Issue Links:

spring-projects-issues commented 18 years ago

Mark Smith commented

I forgot to point out that form field tags (form:input, etc). work fine spread across child JSPs but only the form:errors do not. The more I think about it the more I'm convinced this enforcement must be dropped.

spring-projects-issues commented 18 years ago

Rick Evans commented

Fixed. The ErrorsTag no longer does an explicit check... I guess folks will have to read the documentation that states that the \ tag must be used nested within a \

tag now.

Thanks for taking the time to report this.