On Sat, Dec 10, 2011 at 12:02 PM, xcoder wrote: > suppose there is a <s:form> within which there is a <s:textfield > cssErrorClass="myerrorclass" name="name" label="Enter your name"/> > > When the form is submitted and there is a validation error, which results in > adding a fielderror associated with the name field, then the css of that > fielderror is errorMessage rather that what I have specified "myerrorclass". > > I guess this is a bug in struts2.2.3. Any help is appreciated on why the > cssErrorClass is not working.
As currently implemented, the `cssErrorClass` attribute is meant for the input element itself, not the error message. IMO having them be the same class could lead to issues; for example, it's common to outline the input element in red, but outlining the message itself in red would be undesirable. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org