Spring MVC form tag library and template support

A really useful UI feature of Webwork (now Struts 2) was templates. ASP.NET also provides similar functionality through CSS Control Adapters.Templates allow you to customize the HTML output by the form tag libraries. This feature was really useful for my development team because it allowed everyone to generate accessible (508 compliant) HTML for forms without having to know anything about accessibility. Just implement the templates once and make sure the whole team uses the accessible theme.


Spring MVC has the idea of themes, but does not allow for customizing the HTML output by the form tags. I created an issue in Spring JIRA describing what should be included in the feature. Templates would be a nice addition, but I would settle for a hook to provide custom HTML. A template mechanism could be implemented if that functionality is added.


If you are reading this, vote for the feature.