SpringSource/spring-framework — pull request #297 by beamerblvd (2013-06-03 23:33:43+00:00)
Title: Added <spring:argument> subtag for message/theme

Added a new `` tag meant for nesting within
`` and ``. The tag is based on the
`` tag and uses conventions found throughout other Spring tags.
Ten new unit tests and over a dozen changed unit tests accompany the
changes, which are detailed below.

Itemized Changes:
- Incremented version number of tag libraries to 4.0.
- Added `` tag to `spring.tld`.
- Updated documentation for message and theme tags in `spring.tld`.
- Added `o.s.web.servlet.tags.ArgumentTag` class to handle tag. Added 5
unit tests to test behavior.
- Added `o.s.web.servlet.tags.ArgumentAware` to mark tags supporting
arguments.
- Updated `o.s.web.servlet.tags.MessageTag` to implement `ArgumentAware`
and permit either nested argument tags or the `arguments` attribute, but
not both. Also updated JavaDoc. Added three unit tests to test behavior.
Updated over a dozen other unit tests to test behavior.
- Updated `o.s.web.servlet.tags.ThemeTag` JavaDoc.
- Fixed an `@link` error in the JavaDoc for `o.s.web.servlet.tags.UrlTag`
- `o.s.web.servlet.tags.ParamTag` was susceptible to problems in
containers that pool tags. It wasn't resetting values when the
release method was called, so if a user used multiple ``
tags and mixed using the `value` attribute and tag body, it's possible
that the value used might not be correct. This would be very
difficult to duplicate. I just noticed it while making the similar
`ArgumentTag` and decided it should be fixed while I was in there.
I also added two additional unit tests to test this behavior change.

Issue: SPR-9678