Hi,

I think the easiest way would be to copy from struts2-core-xx.jar the validation.js based on the theme and put it in your source package folder . So example I took template/css_xhtml/validation.js from struts.jar and I modified the javascript function:
function addError(e, errorText)
{
}
Here the 'e' is the form element so you can easily style it with javascript.
This applies to the Struts 2.0.11.2, I don't know about newer versions but I think you can do the same.

See here about Overriding Templates:
http://struts.apache.org/2.0.12/docs/template-loading.html

Best regards,
Andras.


Adam Lister wrote:
I took a look around, and I can't seem to find any way to select an input that has an error associated with it using css. The samples I've looked at have ways to style the error message text, the label, etc, but no way to style an input. I'm not seeing this "red border" either... does anyone recall which theme provides this?

Thanks,
-Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to