When a validation error occurs with the css_xhtml theme, the CSS class for a form input does not have the correct class attributes, if a "cssClass" has been supplied. Instead of class "inputError" joining the existing "class" which is specified by the "cssClass" form tag attribute, two separate class attributes are added to the element. Google Chrome only sees the first CSS class.
AKA: Given the following struts2 freemarker snippet: <@s.textfield name="port" value=port key="service.port" maxsize="5" cssClass="prop-port" /> When a validation error occurs, I end up with a form input element like: <input type="text" name="port" class="inputError" value="" class="prop-port"/> I would expect one single class attribute containing both class values separated by a space, like class="prop-port inputError" I'm using Struts 2.2.1. I do see code meant to handle this in simple/css.ftl, but I'm not sure why that isn't being used. Instead, I seem to be getting the code from simple/text.ftl, which blindly adds a "class" attribute without checking about errors. Does anyone have any suggestions? -Roland